[2025-03-20 00:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:00:05 [end_date_ymd] => 2025-03-20 00:00:05 [RateCDR] => 1 ) [2025-03-20 00:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:00:05' and `end` < '2025-03-20 00:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:00:18] Production.INFO: count ==1093 [2025-03-20 00:00:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:00:05 - End Time 2025-03-20 00:00:05 [2025-03-20 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719024', 'tblTempUsageDetail_20' ) start [2025-03-20 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719024', 'tblTempUsageDetail_20' ) end [2025-03-20 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719024', 'tblTempVendorCDR_20' ) start [2025-03-20 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719024', 'tblTempVendorCDR_20' ) end [2025-03-20 00:00:18] Production.INFO: ProcessCDR(1,14719024,1,1,2) [2025-03-20 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719024', 'tblTempUsageDetail_20' ) start [2025-03-20 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719024', 'tblTempUsageDetail_20' ) end [2025-03-20 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:00:24] Production.INFO: ==19695== Releasing lock... [2025-03-20 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:00:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:01:06 [end_date_ymd] => 2025-03-20 00:01:06 [RateCDR] => 1 ) [2025-03-20 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:01:06' and `end` < '2025-03-20 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:01:19] Production.INFO: count ==762 [2025-03-20 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-19 21:01:06 - End Time 2025-03-20 00:01:06 [2025-03-20 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719029', 'tblTempUsageDetail_20' ) start [2025-03-20 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719029', 'tblTempUsageDetail_20' ) end [2025-03-20 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719029', 'tblTempVendorCDR_20' ) start [2025-03-20 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719029', 'tblTempVendorCDR_20' ) end [2025-03-20 00:01:19] Production.INFO: ProcessCDR(1,14719029,1,1,2) [2025-03-20 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719029', 'tblTempUsageDetail_20' ) start [2025-03-20 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719029', 'tblTempUsageDetail_20' ) end [2025-03-20 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:01:25] Production.INFO: ==19794== Releasing lock... [2025-03-20 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:01:25] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:02:05 [end_date_ymd] => 2025-03-20 00:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:02:18] Production.INFO: count ==762 [2025-03-20 00:02:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:02:05 - End Time 2025-03-20 00:02:05 [2025-03-20 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719034', 'tblTempUsageDetail_20' ) start [2025-03-20 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719034', 'tblTempUsageDetail_20' ) end [2025-03-20 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719034', 'tblTempVendorCDR_20' ) start [2025-03-20 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719034', 'tblTempVendorCDR_20' ) end [2025-03-20 00:02:18] Production.INFO: ProcessCDR(1,14719034,1,1,2) [2025-03-20 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719034', 'tblTempUsageDetail_20' ) start [2025-03-20 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719034', 'tblTempUsageDetail_20' ) end [2025-03-20 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:02:21] Production.INFO: ==19872== Releasing lock... [2025-03-20 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:02:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:03:05 [end_date_ymd] => 2025-03-20 00:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:03:22] Production.INFO: count ==762 [2025-03-20 00:03:22] Production.ERROR: pbx CDR StartTime 2025-03-19 21:03:05 - End Time 2025-03-20 00:03:05 [2025-03-20 00:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719039', 'tblTempUsageDetail_20' ) start [2025-03-20 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719039', 'tblTempUsageDetail_20' ) end [2025-03-20 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719039', 'tblTempVendorCDR_20' ) start [2025-03-20 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719039', 'tblTempVendorCDR_20' ) end [2025-03-20 00:03:22] Production.INFO: ProcessCDR(1,14719039,1,1,2) [2025-03-20 00:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719039', 'tblTempUsageDetail_20' ) start [2025-03-20 00:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719039', 'tblTempUsageDetail_20' ) end [2025-03-20 00:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:03:27] Production.INFO: ==19949== Releasing lock... [2025-03-20 00:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:03:27] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:04:05 [end_date_ymd] => 2025-03-20 00:04:05 [RateCDR] => 1 ) [2025-03-20 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:04:05' and `end` < '2025-03-20 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:04:31] Production.INFO: count ==756 [2025-03-20 00:04:32] Production.ERROR: pbx CDR StartTime 2025-03-19 21:04:05 - End Time 2025-03-20 00:04:05 [2025-03-20 00:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719044', 'tblTempUsageDetail_20' ) start [2025-03-20 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719044', 'tblTempUsageDetail_20' ) end [2025-03-20 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719044', 'tblTempVendorCDR_20' ) start [2025-03-20 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719044', 'tblTempVendorCDR_20' ) end [2025-03-20 00:04:32] Production.INFO: ProcessCDR(1,14719044,1,1,2) [2025-03-20 00:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719044', 'tblTempUsageDetail_20' ) start [2025-03-20 00:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719044', 'tblTempUsageDetail_20' ) end [2025-03-20 00:04:35] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:04:35] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:04:35] Production.INFO: ==20029== Releasing lock... [2025-03-20 00:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:04:35] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:05:05 [end_date_ymd] => 2025-03-20 00:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:05:26] Production.INFO: count ==748 [2025-03-20 00:05:26] Production.ERROR: pbx CDR StartTime 2025-03-19 21:05:05 - End Time 2025-03-20 00:05:05 [2025-03-20 00:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719049', 'tblTempUsageDetail_20' ) start [2025-03-20 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719049', 'tblTempUsageDetail_20' ) end [2025-03-20 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719049', 'tblTempVendorCDR_20' ) start [2025-03-20 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719049', 'tblTempVendorCDR_20' ) end [2025-03-20 00:05:26] Production.INFO: ProcessCDR(1,14719049,1,1,2) [2025-03-20 00:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719049', 'tblTempUsageDetail_20' ) start [2025-03-20 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719049', 'tblTempUsageDetail_20' ) end [2025-03-20 00:05:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:05:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:05:29] Production.INFO: ==20105== Releasing lock... [2025-03-20 00:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:05:29] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:06:05 [end_date_ymd] => 2025-03-20 00:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:06:26] Production.INFO: count ==748 [2025-03-20 00:06:26] Production.ERROR: pbx CDR StartTime 2025-03-19 21:06:05 - End Time 2025-03-20 00:06:05 [2025-03-20 00:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719054', 'tblTempUsageDetail_20' ) start [2025-03-20 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719054', 'tblTempUsageDetail_20' ) end [2025-03-20 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719054', 'tblTempVendorCDR_20' ) start [2025-03-20 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719054', 'tblTempVendorCDR_20' ) end [2025-03-20 00:06:26] Production.INFO: ProcessCDR(1,14719054,1,1,2) [2025-03-20 00:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719054', 'tblTempUsageDetail_20' ) start [2025-03-20 00:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719054', 'tblTempUsageDetail_20' ) end [2025-03-20 00:06:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:06:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:06:29] Production.INFO: ==20190== Releasing lock... [2025-03-20 00:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:06:29] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:07:05 [end_date_ymd] => 2025-03-20 00:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:07:18] Production.INFO: count ==742 [2025-03-20 00:07:19] Production.ERROR: pbx CDR StartTime 2025-03-19 21:07:05 - End Time 2025-03-20 00:07:05 [2025-03-20 00:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719059', 'tblTempUsageDetail_20' ) start [2025-03-20 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719059', 'tblTempUsageDetail_20' ) end [2025-03-20 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719059', 'tblTempVendorCDR_20' ) start [2025-03-20 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719059', 'tblTempVendorCDR_20' ) end [2025-03-20 00:07:19] Production.INFO: ProcessCDR(1,14719059,1,1,2) [2025-03-20 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719059', 'tblTempUsageDetail_20' ) start [2025-03-20 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719059', 'tblTempUsageDetail_20' ) end [2025-03-20 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:07:22] Production.INFO: ==20270== Releasing lock... [2025-03-20 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:07:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:08:05 [end_date_ymd] => 2025-03-20 00:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:08:17] Production.INFO: count ==742 [2025-03-20 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:08:05 - End Time 2025-03-20 00:08:05 [2025-03-20 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719064', 'tblTempUsageDetail_20' ) start [2025-03-20 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719064', 'tblTempUsageDetail_20' ) end [2025-03-20 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719064', 'tblTempVendorCDR_20' ) start [2025-03-20 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719064', 'tblTempVendorCDR_20' ) end [2025-03-20 00:08:18] Production.INFO: ProcessCDR(1,14719064,1,1,2) [2025-03-20 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719064', 'tblTempUsageDetail_20' ) start [2025-03-20 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719064', 'tblTempUsageDetail_20' ) end [2025-03-20 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:08:21] Production.INFO: ==20355== Releasing lock... [2025-03-20 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:08:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:09:05 [end_date_ymd] => 2025-03-20 00:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:09:17] Production.INFO: count ==742 [2025-03-20 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:09:05 - End Time 2025-03-20 00:09:05 [2025-03-20 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719069', 'tblTempUsageDetail_20' ) start [2025-03-20 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719069', 'tblTempUsageDetail_20' ) end [2025-03-20 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719069', 'tblTempVendorCDR_20' ) start [2025-03-20 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719069', 'tblTempVendorCDR_20' ) end [2025-03-20 00:09:18] Production.INFO: ProcessCDR(1,14719069,1,1,2) [2025-03-20 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719069', 'tblTempUsageDetail_20' ) start [2025-03-20 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719069', 'tblTempUsageDetail_20' ) end [2025-03-20 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:09:22] Production.INFO: ==20433== Releasing lock... [2025-03-20 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:09:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:10:06 [end_date_ymd] => 2025-03-20 00:10:06 [RateCDR] => 1 ) [2025-03-20 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:10:06' and `end` < '2025-03-20 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:10:18] Production.INFO: count ==749 [2025-03-20 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:10:06 - End Time 2025-03-20 00:10:06 [2025-03-20 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719075', 'tblTempUsageDetail_20' ) start [2025-03-20 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719075', 'tblTempUsageDetail_20' ) end [2025-03-20 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719075', 'tblTempVendorCDR_20' ) start [2025-03-20 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719075', 'tblTempVendorCDR_20' ) end [2025-03-20 00:10:18] Production.INFO: ProcessCDR(1,14719075,1,1,2) [2025-03-20 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719075', 'tblTempUsageDetail_20' ) start [2025-03-20 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719075', 'tblTempUsageDetail_20' ) end [2025-03-20 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:10:22] Production.INFO: ==20515== Releasing lock... [2025-03-20 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:10:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:11:05 [end_date_ymd] => 2025-03-20 00:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:11:17] Production.INFO: count ==752 [2025-03-20 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:11:05 - End Time 2025-03-20 00:11:05 [2025-03-20 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719080', 'tblTempUsageDetail_20' ) start [2025-03-20 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719080', 'tblTempUsageDetail_20' ) end [2025-03-20 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719080', 'tblTempVendorCDR_20' ) start [2025-03-20 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719080', 'tblTempVendorCDR_20' ) end [2025-03-20 00:11:18] Production.INFO: ProcessCDR(1,14719080,1,1,2) [2025-03-20 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719080', 'tblTempUsageDetail_20' ) start [2025-03-20 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719080', 'tblTempUsageDetail_20' ) end [2025-03-20 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:11:21] Production.INFO: ==20635== Releasing lock... [2025-03-20 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:11:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:12:05 [end_date_ymd] => 2025-03-20 00:12:05 [RateCDR] => 1 ) [2025-03-20 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:12:05' and `end` < '2025-03-20 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:12:17] Production.INFO: count ==750 [2025-03-20 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:12:05 - End Time 2025-03-20 00:12:05 [2025-03-20 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719085', 'tblTempUsageDetail_20' ) start [2025-03-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719085', 'tblTempUsageDetail_20' ) end [2025-03-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719085', 'tblTempVendorCDR_20' ) start [2025-03-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719085', 'tblTempVendorCDR_20' ) end [2025-03-20 00:12:18] Production.INFO: ProcessCDR(1,14719085,1,1,2) [2025-03-20 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719085', 'tblTempUsageDetail_20' ) start [2025-03-20 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719085', 'tblTempUsageDetail_20' ) end [2025-03-20 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:12:21] Production.INFO: ==20713== Releasing lock... [2025-03-20 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:12:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:13:05 [end_date_ymd] => 2025-03-20 00:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:13:17] Production.INFO: count ==755 [2025-03-20 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:13:05 - End Time 2025-03-20 00:13:05 [2025-03-20 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719090', 'tblTempUsageDetail_20' ) start [2025-03-20 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719090', 'tblTempUsageDetail_20' ) end [2025-03-20 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719090', 'tblTempVendorCDR_20' ) start [2025-03-20 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719090', 'tblTempVendorCDR_20' ) end [2025-03-20 00:13:18] Production.INFO: ProcessCDR(1,14719090,1,1,2) [2025-03-20 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719090', 'tblTempUsageDetail_20' ) start [2025-03-20 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719090', 'tblTempUsageDetail_20' ) end [2025-03-20 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:13:21] Production.INFO: ==20793== Releasing lock... [2025-03-20 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:13:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:14:05 [end_date_ymd] => 2025-03-20 00:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:14:18] Production.INFO: count ==745 [2025-03-20 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:14:05 - End Time 2025-03-20 00:14:05 [2025-03-20 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719095', 'tblTempUsageDetail_20' ) start [2025-03-20 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719095', 'tblTempUsageDetail_20' ) end [2025-03-20 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719095', 'tblTempVendorCDR_20' ) start [2025-03-20 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719095', 'tblTempVendorCDR_20' ) end [2025-03-20 00:14:18] Production.INFO: ProcessCDR(1,14719095,1,1,2) [2025-03-20 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719095', 'tblTempUsageDetail_20' ) start [2025-03-20 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719095', 'tblTempUsageDetail_20' ) end [2025-03-20 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:14:21] Production.INFO: ==20873== Releasing lock... [2025-03-20 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:15:04 [end_date_ymd] => 2025-03-20 00:15:04 [RateCDR] => 1 ) [2025-03-20 00:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:15:04' and `end` < '2025-03-20 00:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:15:16] Production.INFO: count ==741 [2025-03-20 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:15:04 - End Time 2025-03-20 00:15:04 [2025-03-20 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719100', 'tblTempUsageDetail_20' ) start [2025-03-20 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719100', 'tblTempUsageDetail_20' ) end [2025-03-20 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719100', 'tblTempVendorCDR_20' ) start [2025-03-20 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719100', 'tblTempVendorCDR_20' ) end [2025-03-20 00:15:17] Production.INFO: ProcessCDR(1,14719100,1,1,2) [2025-03-20 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719100', 'tblTempUsageDetail_20' ) start [2025-03-20 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719100', 'tblTempUsageDetail_20' ) end [2025-03-20 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:15:20] Production.INFO: ==20951== Releasing lock... [2025-03-20 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:15:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:16:05 [end_date_ymd] => 2025-03-20 00:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:16:17] Production.INFO: count ==735 [2025-03-20 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:16:05 - End Time 2025-03-20 00:16:05 [2025-03-20 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719105', 'tblTempUsageDetail_20' ) start [2025-03-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719105', 'tblTempUsageDetail_20' ) end [2025-03-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719105', 'tblTempVendorCDR_20' ) start [2025-03-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719105', 'tblTempVendorCDR_20' ) end [2025-03-20 00:16:17] Production.INFO: ProcessCDR(1,14719105,1,1,2) [2025-03-20 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719105', 'tblTempUsageDetail_20' ) start [2025-03-20 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719105', 'tblTempUsageDetail_20' ) end [2025-03-20 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:16:21] Production.INFO: ==21028== Releasing lock... [2025-03-20 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:16:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:17:06 [end_date_ymd] => 2025-03-20 00:17:06 [RateCDR] => 1 ) [2025-03-20 00:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:17:06' and `end` < '2025-03-20 00:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:17:18] Production.INFO: count ==729 [2025-03-20 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:17:06 - End Time 2025-03-20 00:17:06 [2025-03-20 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719110', 'tblTempUsageDetail_20' ) start [2025-03-20 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719110', 'tblTempUsageDetail_20' ) end [2025-03-20 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719110', 'tblTempVendorCDR_20' ) start [2025-03-20 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719110', 'tblTempVendorCDR_20' ) end [2025-03-20 00:17:18] Production.INFO: ProcessCDR(1,14719110,1,1,2) [2025-03-20 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719110', 'tblTempUsageDetail_20' ) start [2025-03-20 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719110', 'tblTempUsageDetail_20' ) end [2025-03-20 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:17:22] Production.INFO: ==21116== Releasing lock... [2025-03-20 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:17:22] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:18:05 [end_date_ymd] => 2025-03-20 00:18:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:18:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:18:18] Production.INFO: count ==731 [2025-03-20 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:18:05 - End Time 2025-03-20 00:18:05 [2025-03-20 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719115', 'tblTempUsageDetail_20' ) start [2025-03-20 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719115', 'tblTempUsageDetail_20' ) end [2025-03-20 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719115', 'tblTempVendorCDR_20' ) start [2025-03-20 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719115', 'tblTempVendorCDR_20' ) end [2025-03-20 00:18:18] Production.INFO: ProcessCDR(1,14719115,1,1,2) [2025-03-20 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719115', 'tblTempUsageDetail_20' ) start [2025-03-20 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719115', 'tblTempUsageDetail_20' ) end [2025-03-20 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:18:21] Production.INFO: ==21195== Releasing lock... [2025-03-20 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:18:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:19:05 [end_date_ymd] => 2025-03-20 00:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:19:18] Production.INFO: count ==729 [2025-03-20 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:19:05 - End Time 2025-03-20 00:19:05 [2025-03-20 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719120', 'tblTempUsageDetail_20' ) start [2025-03-20 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719120', 'tblTempUsageDetail_20' ) end [2025-03-20 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719120', 'tblTempVendorCDR_20' ) start [2025-03-20 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719120', 'tblTempVendorCDR_20' ) end [2025-03-20 00:19:18] Production.INFO: ProcessCDR(1,14719120,1,1,2) [2025-03-20 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719120', 'tblTempUsageDetail_20' ) start [2025-03-20 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719120', 'tblTempUsageDetail_20' ) end [2025-03-20 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:19:21] Production.INFO: ==21276== Releasing lock... [2025-03-20 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:19:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:20:06 [end_date_ymd] => 2025-03-20 00:20:06 [RateCDR] => 1 ) [2025-03-20 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:20:06' and `end` < '2025-03-20 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:20:18] Production.INFO: count ==735 [2025-03-20 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 21:20:06 - End Time 2025-03-20 00:20:06 [2025-03-20 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719125', 'tblTempUsageDetail_20' ) start [2025-03-20 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719125', 'tblTempUsageDetail_20' ) end [2025-03-20 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719125', 'tblTempVendorCDR_20' ) start [2025-03-20 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719125', 'tblTempVendorCDR_20' ) end [2025-03-20 00:20:19] Production.INFO: ProcessCDR(1,14719125,1,1,2) [2025-03-20 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719125', 'tblTempUsageDetail_20' ) start [2025-03-20 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719125', 'tblTempUsageDetail_20' ) end [2025-03-20 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:20:22] Production.INFO: ==21361== Releasing lock... [2025-03-20 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:21:06 [end_date_ymd] => 2025-03-20 00:21:06 [RateCDR] => 1 ) [2025-03-20 00:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:21:06' and `end` < '2025-03-20 00:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:21:18] Production.INFO: count ==735 [2025-03-20 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:21:06 - End Time 2025-03-20 00:21:06 [2025-03-20 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719131', 'tblTempUsageDetail_20' ) start [2025-03-20 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719131', 'tblTempUsageDetail_20' ) end [2025-03-20 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719131', 'tblTempVendorCDR_20' ) start [2025-03-20 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719131', 'tblTempVendorCDR_20' ) end [2025-03-20 00:21:18] Production.INFO: ProcessCDR(1,14719131,1,1,2) [2025-03-20 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719131', 'tblTempUsageDetail_20' ) start [2025-03-20 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719131', 'tblTempUsageDetail_20' ) end [2025-03-20 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:21:21] Production.INFO: ==21454== Releasing lock... [2025-03-20 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:22:05 [end_date_ymd] => 2025-03-20 00:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:22:17] Production.INFO: count ==731 [2025-03-20 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:22:05 - End Time 2025-03-20 00:22:05 [2025-03-20 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719136', 'tblTempUsageDetail_20' ) start [2025-03-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719136', 'tblTempUsageDetail_20' ) end [2025-03-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719136', 'tblTempVendorCDR_20' ) start [2025-03-20 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719136', 'tblTempVendorCDR_20' ) end [2025-03-20 00:22:18] Production.INFO: ProcessCDR(1,14719136,1,1,2) [2025-03-20 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719136', 'tblTempUsageDetail_20' ) start [2025-03-20 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719136', 'tblTempUsageDetail_20' ) end [2025-03-20 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:22:21] Production.INFO: ==21528== Releasing lock... [2025-03-20 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:22:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:23:05 [end_date_ymd] => 2025-03-20 00:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:23:18] Production.INFO: count ==727 [2025-03-20 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:23:05 - End Time 2025-03-20 00:23:05 [2025-03-20 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719141', 'tblTempUsageDetail_20' ) start [2025-03-20 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719141', 'tblTempUsageDetail_20' ) end [2025-03-20 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719141', 'tblTempVendorCDR_20' ) start [2025-03-20 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719141', 'tblTempVendorCDR_20' ) end [2025-03-20 00:23:18] Production.INFO: ProcessCDR(1,14719141,1,1,2) [2025-03-20 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719141', 'tblTempUsageDetail_20' ) start [2025-03-20 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719141', 'tblTempUsageDetail_20' ) end [2025-03-20 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:23:21] Production.INFO: ==21611== Releasing lock... [2025-03-20 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:23:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:24:05 [end_date_ymd] => 2025-03-20 00:24:05 [RateCDR] => 1 ) [2025-03-20 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:24:05' and `end` < '2025-03-20 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:24:17] Production.INFO: count ==726 [2025-03-20 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:24:05 - End Time 2025-03-20 00:24:05 [2025-03-20 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719146', 'tblTempUsageDetail_20' ) start [2025-03-20 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719146', 'tblTempUsageDetail_20' ) end [2025-03-20 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719146', 'tblTempVendorCDR_20' ) start [2025-03-20 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719146', 'tblTempVendorCDR_20' ) end [2025-03-20 00:24:18] Production.INFO: ProcessCDR(1,14719146,1,1,2) [2025-03-20 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719146', 'tblTempUsageDetail_20' ) start [2025-03-20 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719146', 'tblTempUsageDetail_20' ) end [2025-03-20 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:24:21] Production.INFO: ==21688== Releasing lock... [2025-03-20 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:24:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:25:05 [end_date_ymd] => 2025-03-20 00:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:25:18] Production.INFO: count ==725 [2025-03-20 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:25:05 - End Time 2025-03-20 00:25:05 [2025-03-20 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719151', 'tblTempUsageDetail_20' ) start [2025-03-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719151', 'tblTempUsageDetail_20' ) end [2025-03-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719151', 'tblTempVendorCDR_20' ) start [2025-03-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719151', 'tblTempVendorCDR_20' ) end [2025-03-20 00:25:18] Production.INFO: ProcessCDR(1,14719151,1,1,2) [2025-03-20 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719151', 'tblTempUsageDetail_20' ) start [2025-03-20 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719151', 'tblTempUsageDetail_20' ) end [2025-03-20 00:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:25:23] Production.INFO: ==21770== Releasing lock... [2025-03-20 00:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:25:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:26:05 [end_date_ymd] => 2025-03-20 00:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:26:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:26:17] Production.INFO: count ==728 [2025-03-20 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:26:05 - End Time 2025-03-20 00:26:05 [2025-03-20 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719156', 'tblTempUsageDetail_20' ) start [2025-03-20 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719156', 'tblTempUsageDetail_20' ) end [2025-03-20 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719156', 'tblTempVendorCDR_20' ) start [2025-03-20 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719156', 'tblTempVendorCDR_20' ) end [2025-03-20 00:26:17] Production.INFO: ProcessCDR(1,14719156,1,1,2) [2025-03-20 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719156', 'tblTempUsageDetail_20' ) start [2025-03-20 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719156', 'tblTempUsageDetail_20' ) end [2025-03-20 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:26:20] Production.INFO: ==21886== Releasing lock... [2025-03-20 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:26:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:27:05 [end_date_ymd] => 2025-03-20 00:27:05 [RateCDR] => 1 ) [2025-03-20 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:27:05' and `end` < '2025-03-20 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:27:17] Production.INFO: count ==724 [2025-03-20 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:27:05 - End Time 2025-03-20 00:27:05 [2025-03-20 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719161', 'tblTempUsageDetail_20' ) start [2025-03-20 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719161', 'tblTempUsageDetail_20' ) end [2025-03-20 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719161', 'tblTempVendorCDR_20' ) start [2025-03-20 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719161', 'tblTempVendorCDR_20' ) end [2025-03-20 00:27:17] Production.INFO: ProcessCDR(1,14719161,1,1,2) [2025-03-20 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719161', 'tblTempUsageDetail_20' ) start [2025-03-20 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719161', 'tblTempUsageDetail_20' ) end [2025-03-20 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:27:21] Production.INFO: ==21959== Releasing lock... [2025-03-20 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:27:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:28:05 [end_date_ymd] => 2025-03-20 00:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:28:17] Production.INFO: count ==721 [2025-03-20 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:28:05 - End Time 2025-03-20 00:28:05 [2025-03-20 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719166', 'tblTempUsageDetail_20' ) start [2025-03-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719166', 'tblTempUsageDetail_20' ) end [2025-03-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719166', 'tblTempVendorCDR_20' ) start [2025-03-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719166', 'tblTempVendorCDR_20' ) end [2025-03-20 00:28:17] Production.INFO: ProcessCDR(1,14719166,1,1,2) [2025-03-20 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719166', 'tblTempUsageDetail_20' ) start [2025-03-20 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719166', 'tblTempUsageDetail_20' ) end [2025-03-20 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:28:21] Production.INFO: ==22034== Releasing lock... [2025-03-20 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:29:05 [end_date_ymd] => 2025-03-20 00:29:05 [RateCDR] => 1 ) [2025-03-20 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:29:05' and `end` < '2025-03-20 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:29:18] Production.INFO: count ==724 [2025-03-20 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:29:05 - End Time 2025-03-20 00:29:05 [2025-03-20 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719171', 'tblTempUsageDetail_20' ) start [2025-03-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719171', 'tblTempUsageDetail_20' ) end [2025-03-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719171', 'tblTempVendorCDR_20' ) start [2025-03-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719171', 'tblTempVendorCDR_20' ) end [2025-03-20 00:29:18] Production.INFO: ProcessCDR(1,14719171,1,1,2) [2025-03-20 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719171', 'tblTempUsageDetail_20' ) start [2025-03-20 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719171', 'tblTempUsageDetail_20' ) end [2025-03-20 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:29:21] Production.INFO: ==22109== Releasing lock... [2025-03-20 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:29:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:30:06 [end_date_ymd] => 2025-03-20 00:30:06 [RateCDR] => 1 ) [2025-03-20 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:30:06' and `end` < '2025-03-20 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:30:18] Production.INFO: count ==727 [2025-03-20 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-19 21:30:06 - End Time 2025-03-20 00:30:06 [2025-03-20 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719177', 'tblTempUsageDetail_20' ) start [2025-03-20 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719177', 'tblTempUsageDetail_20' ) end [2025-03-20 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719177', 'tblTempVendorCDR_20' ) start [2025-03-20 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719177', 'tblTempVendorCDR_20' ) end [2025-03-20 00:30:19] Production.INFO: ProcessCDR(1,14719177,1,1,2) [2025-03-20 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719177', 'tblTempUsageDetail_20' ) start [2025-03-20 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719177', 'tblTempUsageDetail_20' ) end [2025-03-20 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:30:22] Production.INFO: ==22188== Releasing lock... [2025-03-20 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:30:22] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:31:05 [end_date_ymd] => 2025-03-20 00:31:05 [RateCDR] => 1 ) [2025-03-20 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:31:05' and `end` < '2025-03-20 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:31:17] Production.INFO: count ==732 [2025-03-20 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:31:05 - End Time 2025-03-20 00:31:05 [2025-03-20 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719182', 'tblTempUsageDetail_20' ) start [2025-03-20 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719182', 'tblTempUsageDetail_20' ) end [2025-03-20 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719182', 'tblTempVendorCDR_20' ) start [2025-03-20 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719182', 'tblTempVendorCDR_20' ) end [2025-03-20 00:31:18] Production.INFO: ProcessCDR(1,14719182,1,1,2) [2025-03-20 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719182', 'tblTempUsageDetail_20' ) start [2025-03-20 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719182', 'tblTempUsageDetail_20' ) end [2025-03-20 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:31:21] Production.INFO: ==22260== Releasing lock... [2025-03-20 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:31:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:32:05 [end_date_ymd] => 2025-03-20 00:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:32:17] Production.INFO: count ==731 [2025-03-20 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:32:05 - End Time 2025-03-20 00:32:05 [2025-03-20 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719187', 'tblTempUsageDetail_20' ) start [2025-03-20 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719187', 'tblTempUsageDetail_20' ) end [2025-03-20 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719187', 'tblTempVendorCDR_20' ) start [2025-03-20 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719187', 'tblTempVendorCDR_20' ) end [2025-03-20 00:32:18] Production.INFO: ProcessCDR(1,14719187,1,1,2) [2025-03-20 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719187', 'tblTempUsageDetail_20' ) start [2025-03-20 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719187', 'tblTempUsageDetail_20' ) end [2025-03-20 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:32:21] Production.INFO: ==22334== Releasing lock... [2025-03-20 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:32:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:33:05 [end_date_ymd] => 2025-03-20 00:33:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:33:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:33:17] Production.INFO: count ==728 [2025-03-20 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:33:05 - End Time 2025-03-20 00:33:05 [2025-03-20 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719190', 'tblTempUsageDetail_20' ) start [2025-03-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719190', 'tblTempUsageDetail_20' ) end [2025-03-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719190', 'tblTempVendorCDR_20' ) start [2025-03-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719190', 'tblTempVendorCDR_20' ) end [2025-03-20 00:33:17] Production.INFO: ProcessCDR(1,14719190,1,1,2) [2025-03-20 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719190', 'tblTempUsageDetail_20' ) start [2025-03-20 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719190', 'tblTempUsageDetail_20' ) end [2025-03-20 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:33:20] Production.INFO: ==22409== Releasing lock... [2025-03-20 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:33:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:34:05 [end_date_ymd] => 2025-03-20 00:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:34:18] Production.INFO: count ==726 [2025-03-20 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:34:05 - End Time 2025-03-20 00:34:05 [2025-03-20 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719197', 'tblTempUsageDetail_20' ) start [2025-03-20 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719197', 'tblTempUsageDetail_20' ) end [2025-03-20 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719197', 'tblTempVendorCDR_20' ) start [2025-03-20 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719197', 'tblTempVendorCDR_20' ) end [2025-03-20 00:34:18] Production.INFO: ProcessCDR(1,14719197,1,1,2) [2025-03-20 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719197', 'tblTempUsageDetail_20' ) start [2025-03-20 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719197', 'tblTempUsageDetail_20' ) end [2025-03-20 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:34:21] Production.INFO: ==22483== Releasing lock... [2025-03-20 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:34:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:35:05 [end_date_ymd] => 2025-03-20 00:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:35:17] Production.INFO: count ==709 [2025-03-20 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:35:05 - End Time 2025-03-20 00:35:05 [2025-03-20 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719202', 'tblTempUsageDetail_20' ) start [2025-03-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719202', 'tblTempUsageDetail_20' ) end [2025-03-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719202', 'tblTempVendorCDR_20' ) start [2025-03-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719202', 'tblTempVendorCDR_20' ) end [2025-03-20 00:35:17] Production.INFO: ProcessCDR(1,14719202,1,1,2) [2025-03-20 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719202', 'tblTempUsageDetail_20' ) start [2025-03-20 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719202', 'tblTempUsageDetail_20' ) end [2025-03-20 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:35:21] Production.INFO: ==22554== Releasing lock... [2025-03-20 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:35:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:36:05 [end_date_ymd] => 2025-03-20 00:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:36:18] Production.INFO: count ==708 [2025-03-20 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:36:05 - End Time 2025-03-20 00:36:05 [2025-03-20 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719207', 'tblTempUsageDetail_20' ) start [2025-03-20 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719207', 'tblTempUsageDetail_20' ) end [2025-03-20 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719207', 'tblTempVendorCDR_20' ) start [2025-03-20 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719207', 'tblTempVendorCDR_20' ) end [2025-03-20 00:36:18] Production.INFO: ProcessCDR(1,14719207,1,1,2) [2025-03-20 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719207', 'tblTempUsageDetail_20' ) start [2025-03-20 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719207', 'tblTempUsageDetail_20' ) end [2025-03-20 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:36:21] Production.INFO: ==22633== Releasing lock... [2025-03-20 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:36:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:37:05 [end_date_ymd] => 2025-03-20 00:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:37:17] Production.INFO: count ==712 [2025-03-20 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:37:05 - End Time 2025-03-20 00:37:05 [2025-03-20 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719212', 'tblTempUsageDetail_20' ) start [2025-03-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719212', 'tblTempUsageDetail_20' ) end [2025-03-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719212', 'tblTempVendorCDR_20' ) start [2025-03-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719212', 'tblTempVendorCDR_20' ) end [2025-03-20 00:37:17] Production.INFO: ProcessCDR(1,14719212,1,1,2) [2025-03-20 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719212', 'tblTempUsageDetail_20' ) start [2025-03-20 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719212', 'tblTempUsageDetail_20' ) end [2025-03-20 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:37:22] Production.INFO: ==22708== Releasing lock... [2025-03-20 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:37:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:38:06 [end_date_ymd] => 2025-03-20 00:38:06 [RateCDR] => 1 ) [2025-03-20 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:38:06' and `end` < '2025-03-20 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:38:18] Production.INFO: count ==719 [2025-03-20 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:38:06 - End Time 2025-03-20 00:38:06 [2025-03-20 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719217', 'tblTempUsageDetail_20' ) start [2025-03-20 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719217', 'tblTempUsageDetail_20' ) end [2025-03-20 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719217', 'tblTempVendorCDR_20' ) start [2025-03-20 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719217', 'tblTempVendorCDR_20' ) end [2025-03-20 00:38:18] Production.INFO: ProcessCDR(1,14719217,1,1,2) [2025-03-20 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719217', 'tblTempUsageDetail_20' ) start [2025-03-20 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719217', 'tblTempUsageDetail_20' ) end [2025-03-20 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:38:23] Production.INFO: ==22783== Releasing lock... [2025-03-20 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:38:23] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:39:05 [end_date_ymd] => 2025-03-20 00:39:05 [RateCDR] => 1 ) [2025-03-20 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:39:17] Production.INFO: count ==718 [2025-03-20 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:39:05 - End Time 2025-03-20 00:39:05 [2025-03-20 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719222', 'tblTempUsageDetail_20' ) start [2025-03-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719222', 'tblTempUsageDetail_20' ) end [2025-03-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719222', 'tblTempVendorCDR_20' ) start [2025-03-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719222', 'tblTempVendorCDR_20' ) end [2025-03-20 00:39:17] Production.INFO: ProcessCDR(1,14719222,1,1,2) [2025-03-20 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719222', 'tblTempUsageDetail_20' ) start [2025-03-20 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719222', 'tblTempUsageDetail_20' ) end [2025-03-20 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:39:20] Production.INFO: ==22857== Releasing lock... [2025-03-20 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:39:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:40:06 [end_date_ymd] => 2025-03-20 00:40:06 [RateCDR] => 1 ) [2025-03-20 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:40:06' and `end` < '2025-03-20 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:40:18] Production.INFO: count ==729 [2025-03-20 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:40:06 - End Time 2025-03-20 00:40:06 [2025-03-20 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719227', 'tblTempUsageDetail_20' ) start [2025-03-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719227', 'tblTempUsageDetail_20' ) end [2025-03-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719227', 'tblTempVendorCDR_20' ) start [2025-03-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719227', 'tblTempVendorCDR_20' ) end [2025-03-20 00:40:18] Production.INFO: ProcessCDR(1,14719227,1,1,2) [2025-03-20 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719227', 'tblTempUsageDetail_20' ) start [2025-03-20 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719227', 'tblTempUsageDetail_20' ) end [2025-03-20 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:40:21] Production.INFO: ==22932== Releasing lock... [2025-03-20 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:40:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:41:06 [end_date_ymd] => 2025-03-20 00:41:06 [RateCDR] => 1 ) [2025-03-20 00:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:41:06' and `end` < '2025-03-20 00:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:41:18] Production.INFO: count ==736 [2025-03-20 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:41:06 - End Time 2025-03-20 00:41:06 [2025-03-20 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719233', 'tblTempUsageDetail_20' ) start [2025-03-20 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719233', 'tblTempUsageDetail_20' ) end [2025-03-20 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719233', 'tblTempVendorCDR_20' ) start [2025-03-20 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719233', 'tblTempVendorCDR_20' ) end [2025-03-20 00:41:18] Production.INFO: ProcessCDR(1,14719233,1,1,2) [2025-03-20 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719233', 'tblTempUsageDetail_20' ) start [2025-03-20 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719233', 'tblTempUsageDetail_20' ) end [2025-03-20 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:41:21] Production.INFO: ==23006== Releasing lock... [2025-03-20 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:41:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:42:05 [end_date_ymd] => 2025-03-20 00:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:42:17] Production.INFO: count ==737 [2025-03-20 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:42:05 - End Time 2025-03-20 00:42:05 [2025-03-20 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719238', 'tblTempUsageDetail_20' ) start [2025-03-20 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719238', 'tblTempUsageDetail_20' ) end [2025-03-20 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719238', 'tblTempVendorCDR_20' ) start [2025-03-20 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719238', 'tblTempVendorCDR_20' ) end [2025-03-20 00:42:18] Production.INFO: ProcessCDR(1,14719238,1,1,2) [2025-03-20 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719238', 'tblTempUsageDetail_20' ) start [2025-03-20 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719238', 'tblTempUsageDetail_20' ) end [2025-03-20 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:42:21] Production.INFO: ==23114== Releasing lock... [2025-03-20 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:42:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:43:05 [end_date_ymd] => 2025-03-20 00:43:05 [RateCDR] => 1 ) [2025-03-20 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:43:05' and `end` < '2025-03-20 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:43:18] Production.INFO: count ==735 [2025-03-20 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:43:05 - End Time 2025-03-20 00:43:05 [2025-03-20 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719243', 'tblTempUsageDetail_20' ) start [2025-03-20 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719243', 'tblTempUsageDetail_20' ) end [2025-03-20 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719243', 'tblTempVendorCDR_20' ) start [2025-03-20 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719243', 'tblTempVendorCDR_20' ) end [2025-03-20 00:43:18] Production.INFO: ProcessCDR(1,14719243,1,1,2) [2025-03-20 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719243', 'tblTempUsageDetail_20' ) start [2025-03-20 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719243', 'tblTempUsageDetail_20' ) end [2025-03-20 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:43:21] Production.INFO: ==23190== Releasing lock... [2025-03-20 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:43:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:44:05 [end_date_ymd] => 2025-03-20 00:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:44:17] Production.INFO: count ==736 [2025-03-20 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:44:05 - End Time 2025-03-20 00:44:05 [2025-03-20 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719248', 'tblTempUsageDetail_20' ) start [2025-03-20 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719248', 'tblTempUsageDetail_20' ) end [2025-03-20 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719248', 'tblTempVendorCDR_20' ) start [2025-03-20 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719248', 'tblTempVendorCDR_20' ) end [2025-03-20 00:44:18] Production.INFO: ProcessCDR(1,14719248,1,1,2) [2025-03-20 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719248', 'tblTempUsageDetail_20' ) start [2025-03-20 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719248', 'tblTempUsageDetail_20' ) end [2025-03-20 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:44:23] Production.INFO: ==23264== Releasing lock... [2025-03-20 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:44:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:45:06 [end_date_ymd] => 2025-03-20 00:45:06 [RateCDR] => 1 ) [2025-03-20 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:45:06' and `end` < '2025-03-20 00:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:45:18] Production.INFO: count ==735 [2025-03-20 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:45:06 - End Time 2025-03-20 00:45:06 [2025-03-20 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719253', 'tblTempUsageDetail_20' ) start [2025-03-20 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719253', 'tblTempUsageDetail_20' ) end [2025-03-20 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719253', 'tblTempVendorCDR_20' ) start [2025-03-20 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719253', 'tblTempVendorCDR_20' ) end [2025-03-20 00:45:18] Production.INFO: ProcessCDR(1,14719253,1,1,2) [2025-03-20 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719253', 'tblTempUsageDetail_20' ) start [2025-03-20 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719253', 'tblTempUsageDetail_20' ) end [2025-03-20 00:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:45:23] Production.INFO: ==23342== Releasing lock... [2025-03-20 00:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:45:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:46:05 [end_date_ymd] => 2025-03-20 00:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:46:17] Production.INFO: count ==733 [2025-03-20 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:46:05 - End Time 2025-03-20 00:46:05 [2025-03-20 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719258', 'tblTempUsageDetail_20' ) start [2025-03-20 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719258', 'tblTempUsageDetail_20' ) end [2025-03-20 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719258', 'tblTempVendorCDR_20' ) start [2025-03-20 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719258', 'tblTempVendorCDR_20' ) end [2025-03-20 00:46:18] Production.INFO: ProcessCDR(1,14719258,1,1,2) [2025-03-20 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719258', 'tblTempUsageDetail_20' ) start [2025-03-20 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719258', 'tblTempUsageDetail_20' ) end [2025-03-20 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:46:21] Production.INFO: ==23417== Releasing lock... [2025-03-20 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:46:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:47:05 [end_date_ymd] => 2025-03-20 00:47:05 [RateCDR] => 1 ) [2025-03-20 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:47:05' and `end` < '2025-03-20 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:47:17] Production.INFO: count ==732 [2025-03-20 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:47:05 - End Time 2025-03-20 00:47:05 [2025-03-20 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719263', 'tblTempUsageDetail_20' ) start [2025-03-20 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719263', 'tblTempUsageDetail_20' ) end [2025-03-20 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719263', 'tblTempVendorCDR_20' ) start [2025-03-20 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719263', 'tblTempVendorCDR_20' ) end [2025-03-20 00:47:18] Production.INFO: ProcessCDR(1,14719263,1,1,2) [2025-03-20 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719263', 'tblTempUsageDetail_20' ) start [2025-03-20 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719263', 'tblTempUsageDetail_20' ) end [2025-03-20 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:47:21] Production.INFO: ==23492== Releasing lock... [2025-03-20 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:48:05 [end_date_ymd] => 2025-03-20 00:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:48:17] Production.INFO: count ==732 [2025-03-20 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:48:05 - End Time 2025-03-20 00:48:05 [2025-03-20 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719268', 'tblTempUsageDetail_20' ) start [2025-03-20 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719268', 'tblTempUsageDetail_20' ) end [2025-03-20 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719268', 'tblTempVendorCDR_20' ) start [2025-03-20 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719268', 'tblTempVendorCDR_20' ) end [2025-03-20 00:48:18] Production.INFO: ProcessCDR(1,14719268,1,1,2) [2025-03-20 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719268', 'tblTempUsageDetail_20' ) start [2025-03-20 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719268', 'tblTempUsageDetail_20' ) end [2025-03-20 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:48:21] Production.INFO: ==23565== Releasing lock... [2025-03-20 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:48:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:49:05 [end_date_ymd] => 2025-03-20 00:49:05 [RateCDR] => 1 ) [2025-03-20 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:49:05' and `end` < '2025-03-20 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:49:17] Production.INFO: count ==732 [2025-03-20 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:49:05 - End Time 2025-03-20 00:49:05 [2025-03-20 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719273', 'tblTempUsageDetail_20' ) start [2025-03-20 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719273', 'tblTempUsageDetail_20' ) end [2025-03-20 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719273', 'tblTempVendorCDR_20' ) start [2025-03-20 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719273', 'tblTempVendorCDR_20' ) end [2025-03-20 00:49:18] Production.INFO: ProcessCDR(1,14719273,1,1,2) [2025-03-20 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719273', 'tblTempUsageDetail_20' ) start [2025-03-20 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719273', 'tblTempUsageDetail_20' ) end [2025-03-20 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:49:21] Production.INFO: ==23637== Releasing lock... [2025-03-20 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:49:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:50:05 [end_date_ymd] => 2025-03-20 00:50:05 [RateCDR] => 1 ) [2025-03-20 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:50:05' and `end` < '2025-03-20 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:50:17] Production.INFO: count ==739 [2025-03-20 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:50:05 - End Time 2025-03-20 00:50:05 [2025-03-20 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719278', 'tblTempUsageDetail_20' ) start [2025-03-20 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719278', 'tblTempUsageDetail_20' ) end [2025-03-20 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719278', 'tblTempVendorCDR_20' ) start [2025-03-20 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719278', 'tblTempVendorCDR_20' ) end [2025-03-20 00:50:18] Production.INFO: ProcessCDR(1,14719278,1,1,2) [2025-03-20 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719278', 'tblTempUsageDetail_20' ) start [2025-03-20 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719278', 'tblTempUsageDetail_20' ) end [2025-03-20 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:50:21] Production.INFO: ==23711== Releasing lock... [2025-03-20 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:50:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:51:05 [end_date_ymd] => 2025-03-20 00:51:05 [RateCDR] => 1 ) [2025-03-20 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:51:05' and `end` < '2025-03-20 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:51:17] Production.INFO: count ==746 [2025-03-20 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:51:05 - End Time 2025-03-20 00:51:05 [2025-03-20 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719284', 'tblTempUsageDetail_20' ) start [2025-03-20 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719284', 'tblTempUsageDetail_20' ) end [2025-03-20 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719284', 'tblTempVendorCDR_20' ) start [2025-03-20 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719284', 'tblTempVendorCDR_20' ) end [2025-03-20 00:51:17] Production.INFO: ProcessCDR(1,14719284,1,1,2) [2025-03-20 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719284', 'tblTempUsageDetail_20' ) start [2025-03-20 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719284', 'tblTempUsageDetail_20' ) end [2025-03-20 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:51:22] Production.INFO: ==23785== Releasing lock... [2025-03-20 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:52:05 [end_date_ymd] => 2025-03-20 00:52:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:52:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:52:18] Production.INFO: count ==752 [2025-03-20 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:52:05 - End Time 2025-03-20 00:52:05 [2025-03-20 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719289', 'tblTempUsageDetail_20' ) start [2025-03-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719289', 'tblTempUsageDetail_20' ) end [2025-03-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719289', 'tblTempVendorCDR_20' ) start [2025-03-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719289', 'tblTempVendorCDR_20' ) end [2025-03-20 00:52:18] Production.INFO: ProcessCDR(1,14719289,1,1,2) [2025-03-20 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719289', 'tblTempUsageDetail_20' ) start [2025-03-20 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719289', 'tblTempUsageDetail_20' ) end [2025-03-20 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:52:23] Production.INFO: ==23864== Releasing lock... [2025-03-20 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:53:05 [end_date_ymd] => 2025-03-20 00:53:05 [RateCDR] => 1 ) [2025-03-20 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:53:05' and `end` < '2025-03-20 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:53:18] Production.INFO: count ==750 [2025-03-20 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:53:05 - End Time 2025-03-20 00:53:05 [2025-03-20 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719294', 'tblTempUsageDetail_20' ) start [2025-03-20 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719294', 'tblTempUsageDetail_20' ) end [2025-03-20 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719294', 'tblTempVendorCDR_20' ) start [2025-03-20 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719294', 'tblTempVendorCDR_20' ) end [2025-03-20 00:53:18] Production.INFO: ProcessCDR(1,14719294,1,1,2) [2025-03-20 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719294', 'tblTempUsageDetail_20' ) start [2025-03-20 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719294', 'tblTempUsageDetail_20' ) end [2025-03-20 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:53:21] Production.INFO: ==23935== Releasing lock... [2025-03-20 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:53:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:54:05 [end_date_ymd] => 2025-03-20 00:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:54:17] Production.INFO: count ==751 [2025-03-20 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:54:05 - End Time 2025-03-20 00:54:05 [2025-03-20 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719299', 'tblTempUsageDetail_20' ) start [2025-03-20 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719299', 'tblTempUsageDetail_20' ) end [2025-03-20 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719299', 'tblTempVendorCDR_20' ) start [2025-03-20 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719299', 'tblTempVendorCDR_20' ) end [2025-03-20 00:54:18] Production.INFO: ProcessCDR(1,14719299,1,1,2) [2025-03-20 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719299', 'tblTempUsageDetail_20' ) start [2025-03-20 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719299', 'tblTempUsageDetail_20' ) end [2025-03-20 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:54:22] Production.INFO: ==24005== Releasing lock... [2025-03-20 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:54:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:55:05 [end_date_ymd] => 2025-03-20 00:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:55:17] Production.INFO: count ==749 [2025-03-20 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:55:05 - End Time 2025-03-20 00:55:05 [2025-03-20 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719304', 'tblTempUsageDetail_20' ) start [2025-03-20 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719304', 'tblTempUsageDetail_20' ) end [2025-03-20 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719304', 'tblTempVendorCDR_20' ) start [2025-03-20 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719304', 'tblTempVendorCDR_20' ) end [2025-03-20 00:55:18] Production.INFO: ProcessCDR(1,14719304,1,1,2) [2025-03-20 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719304', 'tblTempUsageDetail_20' ) start [2025-03-20 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719304', 'tblTempUsageDetail_20' ) end [2025-03-20 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:55:21] Production.INFO: ==24075== Releasing lock... [2025-03-20 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:55:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:56:05 [end_date_ymd] => 2025-03-20 00:56:05 [RateCDR] => 1 ) [2025-03-20 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 21:56:05' and `end` < '2025-03-20 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 00:56:18] Production.INFO: count ==751 [2025-03-20 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:56:05 - End Time 2025-03-20 00:56:05 [2025-03-20 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719309', 'tblTempUsageDetail_20' ) start [2025-03-20 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719309', 'tblTempUsageDetail_20' ) end [2025-03-20 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719309', 'tblTempVendorCDR_20' ) start [2025-03-20 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719309', 'tblTempVendorCDR_20' ) end [2025-03-20 00:56:18] Production.INFO: ProcessCDR(1,14719309,1,1,2) [2025-03-20 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719309', 'tblTempUsageDetail_20' ) start [2025-03-20 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719309', 'tblTempUsageDetail_20' ) end [2025-03-20 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:56:21] Production.INFO: ==24147== Releasing lock... [2025-03-20 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:56:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:57:05 [end_date_ymd] => 2025-03-20 00:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:57:17] Production.INFO: count ==752 [2025-03-20 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:57:05 - End Time 2025-03-20 00:57:05 [2025-03-20 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719314', 'tblTempUsageDetail_20' ) start [2025-03-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719314', 'tblTempUsageDetail_20' ) end [2025-03-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719314', 'tblTempVendorCDR_20' ) start [2025-03-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719314', 'tblTempVendorCDR_20' ) end [2025-03-20 00:57:17] Production.INFO: ProcessCDR(1,14719314,1,1,2) [2025-03-20 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719314', 'tblTempUsageDetail_20' ) start [2025-03-20 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719314', 'tblTempUsageDetail_20' ) end [2025-03-20 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:57:21] Production.INFO: ==24255== Releasing lock... [2025-03-20 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:58:05 [end_date_ymd] => 2025-03-20 00:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 00:58:18] Production.INFO: count ==757 [2025-03-20 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 21:58:05 - End Time 2025-03-20 00:58:05 [2025-03-20 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719319', 'tblTempUsageDetail_20' ) start [2025-03-20 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719319', 'tblTempUsageDetail_20' ) end [2025-03-20 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719319', 'tblTempVendorCDR_20' ) start [2025-03-20 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719319', 'tblTempVendorCDR_20' ) end [2025-03-20 00:58:18] Production.INFO: ProcessCDR(1,14719319,1,1,2) [2025-03-20 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719319', 'tblTempUsageDetail_20' ) start [2025-03-20 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719319', 'tblTempUsageDetail_20' ) end [2025-03-20 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:58:21] Production.INFO: ==24328== Releasing lock... [2025-03-20 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:58:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 21:59:04 [end_date_ymd] => 2025-03-20 00:59:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 21:59:04' and `end` < '2025-03-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 ,'') [2025-03-20 00:59:17] Production.INFO: count ==754 [2025-03-20 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-19 21:59:04 - End Time 2025-03-20 00:59:04 [2025-03-20 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719324', 'tblTempUsageDetail_20' ) start [2025-03-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719324', 'tblTempUsageDetail_20' ) end [2025-03-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719324', 'tblTempVendorCDR_20' ) start [2025-03-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719324', 'tblTempVendorCDR_20' ) end [2025-03-20 00:59:17] Production.INFO: ProcessCDR(1,14719324,1,1,2) [2025-03-20 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719324', 'tblTempUsageDetail_20' ) start [2025-03-20 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719324', 'tblTempUsageDetail_20' ) end [2025-03-20 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 00:59:20] Production.INFO: ==24402== Releasing lock... [2025-03-20 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 00:59:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:00:05 [end_date_ymd] => 2025-03-20 01:00:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:00:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:00:18] Production.INFO: count ==748 [2025-03-20 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:00:05 - End Time 2025-03-20 01:00:05 [2025-03-20 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719329', 'tblTempUsageDetail_20' ) start [2025-03-20 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719329', 'tblTempUsageDetail_20' ) end [2025-03-20 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719329', 'tblTempVendorCDR_20' ) start [2025-03-20 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719329', 'tblTempVendorCDR_20' ) end [2025-03-20 01:00:18] Production.INFO: ProcessCDR(1,14719329,1,1,2) [2025-03-20 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719329', 'tblTempUsageDetail_20' ) start [2025-03-20 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719329', 'tblTempUsageDetail_20' ) end [2025-03-20 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:00:21] Production.INFO: ==24481== Releasing lock... [2025-03-20 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:00:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:01:05 [end_date_ymd] => 2025-03-20 01:01:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:01:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:01:18] Production.INFO: count ==748 [2025-03-20 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:01:05 - End Time 2025-03-20 01:01:05 [2025-03-20 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719335', 'tblTempUsageDetail_20' ) start [2025-03-20 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719335', 'tblTempUsageDetail_20' ) end [2025-03-20 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719335', 'tblTempVendorCDR_20' ) start [2025-03-20 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719335', 'tblTempVendorCDR_20' ) end [2025-03-20 01:01:18] Production.INFO: ProcessCDR(1,14719335,1,1,2) [2025-03-20 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719335', 'tblTempUsageDetail_20' ) start [2025-03-20 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719335', 'tblTempUsageDetail_20' ) end [2025-03-20 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:01:21] Production.INFO: ==24568== Releasing lock... [2025-03-20 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:01:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:02:05 [end_date_ymd] => 2025-03-20 01:02:05 [RateCDR] => 1 ) [2025-03-20 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:02:05' and `end` < '2025-03-20 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:02:17] Production.INFO: count ==745 [2025-03-20 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:02:05 - End Time 2025-03-20 01:02:05 [2025-03-20 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719340', 'tblTempUsageDetail_20' ) start [2025-03-20 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719340', 'tblTempUsageDetail_20' ) end [2025-03-20 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719340', 'tblTempVendorCDR_20' ) start [2025-03-20 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719340', 'tblTempVendorCDR_20' ) end [2025-03-20 01:02:18] Production.INFO: ProcessCDR(1,14719340,1,1,2) [2025-03-20 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719340', 'tblTempUsageDetail_20' ) start [2025-03-20 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719340', 'tblTempUsageDetail_20' ) end [2025-03-20 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:02:21] Production.INFO: ==24641== Releasing lock... [2025-03-20 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:02:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:03:05 [end_date_ymd] => 2025-03-20 01:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:03:17] Production.INFO: count ==745 [2025-03-20 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:03:05 - End Time 2025-03-20 01:03:05 [2025-03-20 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719345', 'tblTempUsageDetail_20' ) start [2025-03-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719345', 'tblTempUsageDetail_20' ) end [2025-03-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719345', 'tblTempVendorCDR_20' ) start [2025-03-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719345', 'tblTempVendorCDR_20' ) end [2025-03-20 01:03:18] Production.INFO: ProcessCDR(1,14719345,1,1,2) [2025-03-20 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719345', 'tblTempUsageDetail_20' ) start [2025-03-20 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719345', 'tblTempUsageDetail_20' ) end [2025-03-20 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:03:21] Production.INFO: ==24711== Releasing lock... [2025-03-20 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:03:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:04:05 [end_date_ymd] => 2025-03-20 01:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:04:17] Production.INFO: count ==744 [2025-03-20 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:04:05 - End Time 2025-03-20 01:04:05 [2025-03-20 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719350', 'tblTempUsageDetail_20' ) start [2025-03-20 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719350', 'tblTempUsageDetail_20' ) end [2025-03-20 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719350', 'tblTempVendorCDR_20' ) start [2025-03-20 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719350', 'tblTempVendorCDR_20' ) end [2025-03-20 01:04:18] Production.INFO: ProcessCDR(1,14719350,1,1,2) [2025-03-20 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719350', 'tblTempUsageDetail_20' ) start [2025-03-20 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719350', 'tblTempUsageDetail_20' ) end [2025-03-20 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:04:21] Production.INFO: ==24794== Releasing lock... [2025-03-20 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:04:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:05:05 [end_date_ymd] => 2025-03-20 01:05:05 [RateCDR] => 1 ) [2025-03-20 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:05:05' and `end` < '2025-03-20 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:05:17] Production.INFO: count ==744 [2025-03-20 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:05:05 - End Time 2025-03-20 01:05:05 [2025-03-20 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719355', 'tblTempUsageDetail_20' ) start [2025-03-20 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719355', 'tblTempUsageDetail_20' ) end [2025-03-20 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719355', 'tblTempVendorCDR_20' ) start [2025-03-20 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719355', 'tblTempVendorCDR_20' ) end [2025-03-20 01:05:18] Production.INFO: ProcessCDR(1,14719355,1,1,2) [2025-03-20 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719355', 'tblTempUsageDetail_20' ) start [2025-03-20 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719355', 'tblTempUsageDetail_20' ) end [2025-03-20 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:05:21] Production.INFO: ==24870== Releasing lock... [2025-03-20 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:06:05 [end_date_ymd] => 2025-03-20 01:06:05 [RateCDR] => 1 ) [2025-03-20 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:06:05' and `end` < '2025-03-20 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:06:17] Production.INFO: count ==753 [2025-03-20 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:06:05 - End Time 2025-03-20 01:06:05 [2025-03-20 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719360', 'tblTempUsageDetail_20' ) start [2025-03-20 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719360', 'tblTempUsageDetail_20' ) end [2025-03-20 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719360', 'tblTempVendorCDR_20' ) start [2025-03-20 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719360', 'tblTempVendorCDR_20' ) end [2025-03-20 01:06:17] Production.INFO: ProcessCDR(1,14719360,1,1,2) [2025-03-20 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719360', 'tblTempUsageDetail_20' ) start [2025-03-20 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719360', 'tblTempUsageDetail_20' ) end [2025-03-20 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:06:21] Production.INFO: ==24941== Releasing lock... [2025-03-20 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:06:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:07:05 [end_date_ymd] => 2025-03-20 01:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:07:17] Production.INFO: count ==753 [2025-03-20 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:07:05 - End Time 2025-03-20 01:07:05 [2025-03-20 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719365', 'tblTempUsageDetail_20' ) start [2025-03-20 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719365', 'tblTempUsageDetail_20' ) end [2025-03-20 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719365', 'tblTempVendorCDR_20' ) start [2025-03-20 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719365', 'tblTempVendorCDR_20' ) end [2025-03-20 01:07:18] Production.INFO: ProcessCDR(1,14719365,1,1,2) [2025-03-20 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719365', 'tblTempUsageDetail_20' ) start [2025-03-20 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719365', 'tblTempUsageDetail_20' ) end [2025-03-20 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:07:21] Production.INFO: ==25010== Releasing lock... [2025-03-20 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:07:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:08:05 [end_date_ymd] => 2025-03-20 01:08:05 [RateCDR] => 1 ) [2025-03-20 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:08:05' and `end` < '2025-03-20 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:08:17] Production.INFO: count ==758 [2025-03-20 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:08:05 - End Time 2025-03-20 01:08:05 [2025-03-20 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719370', 'tblTempUsageDetail_20' ) start [2025-03-20 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719370', 'tblTempUsageDetail_20' ) end [2025-03-20 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719370', 'tblTempVendorCDR_20' ) start [2025-03-20 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719370', 'tblTempVendorCDR_20' ) end [2025-03-20 01:08:17] Production.INFO: ProcessCDR(1,14719370,1,1,2) [2025-03-20 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719370', 'tblTempUsageDetail_20' ) start [2025-03-20 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719370', 'tblTempUsageDetail_20' ) end [2025-03-20 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:08:20] Production.INFO: ==25084== Releasing lock... [2025-03-20 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:08:20] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:09:05 [end_date_ymd] => 2025-03-20 01:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:09:17] Production.INFO: count ==758 [2025-03-20 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:09:05 - End Time 2025-03-20 01:09:05 [2025-03-20 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719375', 'tblTempUsageDetail_20' ) start [2025-03-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719375', 'tblTempUsageDetail_20' ) end [2025-03-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719375', 'tblTempVendorCDR_20' ) start [2025-03-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719375', 'tblTempVendorCDR_20' ) end [2025-03-20 01:09:17] Production.INFO: ProcessCDR(1,14719375,1,1,2) [2025-03-20 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719375', 'tblTempUsageDetail_20' ) start [2025-03-20 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719375', 'tblTempUsageDetail_20' ) end [2025-03-20 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:09:21] Production.INFO: ==25155== Releasing lock... [2025-03-20 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:09:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:10:06 [end_date_ymd] => 2025-03-20 01:10:06 [RateCDR] => 1 ) [2025-03-20 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:10:06' and `end` < '2025-03-20 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:10:18] Production.INFO: count ==767 [2025-03-20 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-19 22:10:06 - End Time 2025-03-20 01:10:06 [2025-03-20 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719381', 'tblTempUsageDetail_20' ) start [2025-03-20 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719381', 'tblTempUsageDetail_20' ) end [2025-03-20 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719381', 'tblTempVendorCDR_20' ) start [2025-03-20 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719381', 'tblTempVendorCDR_20' ) end [2025-03-20 01:10:19] Production.INFO: ProcessCDR(1,14719381,1,1,2) [2025-03-20 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719381', 'tblTempUsageDetail_20' ) start [2025-03-20 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719381', 'tblTempUsageDetail_20' ) end [2025-03-20 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:10:22] Production.INFO: ==25230== Releasing lock... [2025-03-20 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:10:22] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:11:06 [end_date_ymd] => 2025-03-20 01:11:06 [RateCDR] => 1 ) [2025-03-20 01:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:11:06' and `end` < '2025-03-20 01:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:11:18] Production.INFO: count ==786 [2025-03-20 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:11:06 - End Time 2025-03-20 01:11:06 [2025-03-20 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719386', 'tblTempUsageDetail_20' ) start [2025-03-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719386', 'tblTempUsageDetail_20' ) end [2025-03-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719386', 'tblTempVendorCDR_20' ) start [2025-03-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719386', 'tblTempVendorCDR_20' ) end [2025-03-20 01:11:18] Production.INFO: ProcessCDR(1,14719386,1,1,2) [2025-03-20 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719386', 'tblTempUsageDetail_20' ) start [2025-03-20 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719386', 'tblTempUsageDetail_20' ) end [2025-03-20 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:11:22] Production.INFO: ==25306== Releasing lock... [2025-03-20 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:12:05 [end_date_ymd] => 2025-03-20 01:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:12:17] Production.INFO: count ==787 [2025-03-20 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:12:05 - End Time 2025-03-20 01:12:05 [2025-03-20 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719391', 'tblTempUsageDetail_20' ) start [2025-03-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719391', 'tblTempUsageDetail_20' ) end [2025-03-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719391', 'tblTempVendorCDR_20' ) start [2025-03-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719391', 'tblTempVendorCDR_20' ) end [2025-03-20 01:12:17] Production.INFO: ProcessCDR(1,14719391,1,1,2) [2025-03-20 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719391', 'tblTempUsageDetail_20' ) start [2025-03-20 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719391', 'tblTempUsageDetail_20' ) end [2025-03-20 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:12:22] Production.INFO: ==25379== Releasing lock... [2025-03-20 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:12:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:13:05 [end_date_ymd] => 2025-03-20 01:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:13:17] Production.INFO: count ==790 [2025-03-20 01:13:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:13:05 - End Time 2025-03-20 01:13:05 [2025-03-20 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719396', 'tblTempUsageDetail_20' ) start [2025-03-20 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719396', 'tblTempUsageDetail_20' ) end [2025-03-20 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719396', 'tblTempVendorCDR_20' ) start [2025-03-20 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719396', 'tblTempVendorCDR_20' ) end [2025-03-20 01:13:17] Production.INFO: ProcessCDR(1,14719396,1,1,2) [2025-03-20 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719396', 'tblTempUsageDetail_20' ) start [2025-03-20 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719396', 'tblTempUsageDetail_20' ) end [2025-03-20 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:13:21] Production.INFO: ==25492== Releasing lock... [2025-03-20 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:13:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:14:06 [end_date_ymd] => 2025-03-20 01:14:06 [RateCDR] => 1 ) [2025-03-20 01:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:14:06' and `end` < '2025-03-20 01:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:14:18] Production.INFO: count ==794 [2025-03-20 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:14:06 - End Time 2025-03-20 01:14:06 [2025-03-20 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719401', 'tblTempUsageDetail_20' ) start [2025-03-20 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719401', 'tblTempUsageDetail_20' ) end [2025-03-20 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719401', 'tblTempVendorCDR_20' ) start [2025-03-20 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719401', 'tblTempVendorCDR_20' ) end [2025-03-20 01:14:18] Production.INFO: ProcessCDR(1,14719401,1,1,2) [2025-03-20 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719401', 'tblTempUsageDetail_20' ) start [2025-03-20 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719401', 'tblTempUsageDetail_20' ) end [2025-03-20 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:14:21] Production.INFO: ==25578== Releasing lock... [2025-03-20 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:14:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:15:05 [end_date_ymd] => 2025-03-20 01:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:15:17] Production.INFO: count ==789 [2025-03-20 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:15:05 - End Time 2025-03-20 01:15:05 [2025-03-20 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719406', 'tblTempUsageDetail_20' ) start [2025-03-20 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719406', 'tblTempUsageDetail_20' ) end [2025-03-20 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719406', 'tblTempVendorCDR_20' ) start [2025-03-20 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719406', 'tblTempVendorCDR_20' ) end [2025-03-20 01:15:18] Production.INFO: ProcessCDR(1,14719406,1,1,2) [2025-03-20 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719406', 'tblTempUsageDetail_20' ) start [2025-03-20 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719406', 'tblTempUsageDetail_20' ) end [2025-03-20 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:15:21] Production.INFO: ==25662== Releasing lock... [2025-03-20 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:15:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:16:05 [end_date_ymd] => 2025-03-20 01:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:16:17] Production.INFO: count ==786 [2025-03-20 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:16:05 - End Time 2025-03-20 01:16:05 [2025-03-20 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719411', 'tblTempUsageDetail_20' ) start [2025-03-20 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719411', 'tblTempUsageDetail_20' ) end [2025-03-20 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719411', 'tblTempVendorCDR_20' ) start [2025-03-20 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719411', 'tblTempVendorCDR_20' ) end [2025-03-20 01:16:18] Production.INFO: ProcessCDR(1,14719411,1,1,2) [2025-03-20 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719411', 'tblTempUsageDetail_20' ) start [2025-03-20 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719411', 'tblTempUsageDetail_20' ) end [2025-03-20 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:16:21] Production.INFO: ==25744== Releasing lock... [2025-03-20 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:16:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:17:05 [end_date_ymd] => 2025-03-20 01:17:05 [RateCDR] => 1 ) [2025-03-20 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:17:05' and `end` < '2025-03-20 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:17:17] Production.INFO: count ==780 [2025-03-20 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:17:05 - End Time 2025-03-20 01:17:05 [2025-03-20 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719416', 'tblTempUsageDetail_20' ) start [2025-03-20 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719416', 'tblTempUsageDetail_20' ) end [2025-03-20 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719416', 'tblTempVendorCDR_20' ) start [2025-03-20 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719416', 'tblTempVendorCDR_20' ) end [2025-03-20 01:17:17] Production.INFO: ProcessCDR(1,14719416,1,1,2) [2025-03-20 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719416', 'tblTempUsageDetail_20' ) start [2025-03-20 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719416', 'tblTempUsageDetail_20' ) end [2025-03-20 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:17:21] Production.INFO: ==25826== Releasing lock... [2025-03-20 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:17:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:18:05 [end_date_ymd] => 2025-03-20 01:18:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:18:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:18:18] Production.INFO: count ==779 [2025-03-20 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:18:05 - End Time 2025-03-20 01:18:05 [2025-03-20 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719421', 'tblTempUsageDetail_20' ) start [2025-03-20 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719421', 'tblTempUsageDetail_20' ) end [2025-03-20 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719421', 'tblTempVendorCDR_20' ) start [2025-03-20 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719421', 'tblTempVendorCDR_20' ) end [2025-03-20 01:18:18] Production.INFO: ProcessCDR(1,14719421,1,1,2) [2025-03-20 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719421', 'tblTempUsageDetail_20' ) start [2025-03-20 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719421', 'tblTempUsageDetail_20' ) end [2025-03-20 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:18:21] Production.INFO: ==25922== Releasing lock... [2025-03-20 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:18:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:19:05 [end_date_ymd] => 2025-03-20 01:19:05 [RateCDR] => 1 ) [2025-03-20 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:19:05' and `end` < '2025-03-20 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:19:17] Production.INFO: count ==776 [2025-03-20 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:19:05 - End Time 2025-03-20 01:19:05 [2025-03-20 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719426', 'tblTempUsageDetail_20' ) start [2025-03-20 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719426', 'tblTempUsageDetail_20' ) end [2025-03-20 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719426', 'tblTempVendorCDR_20' ) start [2025-03-20 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719426', 'tblTempVendorCDR_20' ) end [2025-03-20 01:19:17] Production.INFO: ProcessCDR(1,14719426,1,1,2) [2025-03-20 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719426', 'tblTempUsageDetail_20' ) start [2025-03-20 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719426', 'tblTempUsageDetail_20' ) end [2025-03-20 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:19:21] Production.INFO: ==26011== Releasing lock... [2025-03-20 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:19:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:20:06 [end_date_ymd] => 2025-03-20 01:20:06 [RateCDR] => 1 ) [2025-03-20 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:20:06' and `end` < '2025-03-20 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:20:18] Production.INFO: count ==783 [2025-03-20 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 22:20:06 - End Time 2025-03-20 01:20:06 [2025-03-20 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719432', 'tblTempUsageDetail_20' ) start [2025-03-20 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719432', 'tblTempUsageDetail_20' ) end [2025-03-20 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719432', 'tblTempVendorCDR_20' ) start [2025-03-20 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719432', 'tblTempVendorCDR_20' ) end [2025-03-20 01:20:19] Production.INFO: ProcessCDR(1,14719432,1,1,2) [2025-03-20 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719432', 'tblTempUsageDetail_20' ) start [2025-03-20 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719432', 'tblTempUsageDetail_20' ) end [2025-03-20 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:20:22] Production.INFO: ==26097== Releasing lock... [2025-03-20 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:21:05 [end_date_ymd] => 2025-03-20 01:21:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:21:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:21:17] Production.INFO: count ==783 [2025-03-20 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:21:05 - End Time 2025-03-20 01:21:05 [2025-03-20 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719437', 'tblTempUsageDetail_20' ) start [2025-03-20 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719437', 'tblTempUsageDetail_20' ) end [2025-03-20 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719437', 'tblTempVendorCDR_20' ) start [2025-03-20 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719437', 'tblTempVendorCDR_20' ) end [2025-03-20 01:21:17] Production.INFO: ProcessCDR(1,14719437,1,1,2) [2025-03-20 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719437', 'tblTempUsageDetail_20' ) start [2025-03-20 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719437', 'tblTempUsageDetail_20' ) end [2025-03-20 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:21:21] Production.INFO: ==26180== Releasing lock... [2025-03-20 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:21:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:22:05 [end_date_ymd] => 2025-03-20 01:22:05 [RateCDR] => 1 ) [2025-03-20 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:22:05' and `end` < '2025-03-20 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:22:17] Production.INFO: count ==784 [2025-03-20 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:22:05 - End Time 2025-03-20 01:22:05 [2025-03-20 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719442', 'tblTempUsageDetail_20' ) start [2025-03-20 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719442', 'tblTempUsageDetail_20' ) end [2025-03-20 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719442', 'tblTempVendorCDR_20' ) start [2025-03-20 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719442', 'tblTempVendorCDR_20' ) end [2025-03-20 01:22:18] Production.INFO: ProcessCDR(1,14719442,1,1,2) [2025-03-20 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719442', 'tblTempUsageDetail_20' ) start [2025-03-20 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719442', 'tblTempUsageDetail_20' ) end [2025-03-20 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:22:22] Production.INFO: ==26264== Releasing lock... [2025-03-20 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:22:22] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:23:05 [end_date_ymd] => 2025-03-20 01:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:23:17] Production.INFO: count ==783 [2025-03-20 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:23:05 - End Time 2025-03-20 01:23:05 [2025-03-20 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719447', 'tblTempUsageDetail_20' ) start [2025-03-20 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719447', 'tblTempUsageDetail_20' ) end [2025-03-20 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719447', 'tblTempVendorCDR_20' ) start [2025-03-20 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719447', 'tblTempVendorCDR_20' ) end [2025-03-20 01:23:18] Production.INFO: ProcessCDR(1,14719447,1,1,2) [2025-03-20 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719447', 'tblTempUsageDetail_20' ) start [2025-03-20 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719447', 'tblTempUsageDetail_20' ) end [2025-03-20 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:23:21] Production.INFO: ==26354== Releasing lock... [2025-03-20 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:23:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:24:05 [end_date_ymd] => 2025-03-20 01:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:24:18] Production.INFO: count ==782 [2025-03-20 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:24:05 - End Time 2025-03-20 01:24:05 [2025-03-20 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719452', 'tblTempUsageDetail_20' ) start [2025-03-20 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719452', 'tblTempUsageDetail_20' ) end [2025-03-20 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719452', 'tblTempVendorCDR_20' ) start [2025-03-20 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719452', 'tblTempVendorCDR_20' ) end [2025-03-20 01:24:18] Production.INFO: ProcessCDR(1,14719452,1,1,2) [2025-03-20 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719452', 'tblTempUsageDetail_20' ) start [2025-03-20 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719452', 'tblTempUsageDetail_20' ) end [2025-03-20 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:24:21] Production.INFO: ==26437== Releasing lock... [2025-03-20 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:24:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:25:05 [end_date_ymd] => 2025-03-20 01:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:25:17] Production.INFO: count ==782 [2025-03-20 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:25:05 - End Time 2025-03-20 01:25:05 [2025-03-20 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719457', 'tblTempUsageDetail_20' ) start [2025-03-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719457', 'tblTempUsageDetail_20' ) end [2025-03-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719457', 'tblTempVendorCDR_20' ) start [2025-03-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719457', 'tblTempVendorCDR_20' ) end [2025-03-20 01:25:17] Production.INFO: ProcessCDR(1,14719457,1,1,2) [2025-03-20 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719457', 'tblTempUsageDetail_20' ) start [2025-03-20 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719457', 'tblTempUsageDetail_20' ) end [2025-03-20 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:25:20] Production.INFO: ==26517== Releasing lock... [2025-03-20 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:25:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:26:05 [end_date_ymd] => 2025-03-20 01:26:05 [RateCDR] => 1 ) [2025-03-20 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:26:05' and `end` < '2025-03-20 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:26:18] Production.INFO: count ==779 [2025-03-20 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:26:05 - End Time 2025-03-20 01:26:05 [2025-03-20 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719462', 'tblTempUsageDetail_20' ) start [2025-03-20 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719462', 'tblTempUsageDetail_20' ) end [2025-03-20 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719462', 'tblTempVendorCDR_20' ) start [2025-03-20 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719462', 'tblTempVendorCDR_20' ) end [2025-03-20 01:26:18] Production.INFO: ProcessCDR(1,14719462,1,1,2) [2025-03-20 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719462', 'tblTempUsageDetail_20' ) start [2025-03-20 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719462', 'tblTempUsageDetail_20' ) end [2025-03-20 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:26:21] Production.INFO: ==26603== Releasing lock... [2025-03-20 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:27:06 [end_date_ymd] => 2025-03-20 01:27:06 [RateCDR] => 1 ) [2025-03-20 01:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:27:06' and `end` < '2025-03-20 01:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:27:18] Production.INFO: count ==781 [2025-03-20 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:27:06 - End Time 2025-03-20 01:27:06 [2025-03-20 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719467', 'tblTempUsageDetail_20' ) start [2025-03-20 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719467', 'tblTempUsageDetail_20' ) end [2025-03-20 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719467', 'tblTempVendorCDR_20' ) start [2025-03-20 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719467', 'tblTempVendorCDR_20' ) end [2025-03-20 01:27:18] Production.INFO: ProcessCDR(1,14719467,1,1,2) [2025-03-20 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719467', 'tblTempUsageDetail_20' ) start [2025-03-20 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719467', 'tblTempUsageDetail_20' ) end [2025-03-20 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:27:22] Production.INFO: ==26688== Releasing lock... [2025-03-20 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:27:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:28:05 [end_date_ymd] => 2025-03-20 01:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:28:18] Production.INFO: count ==780 [2025-03-20 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:28:05 - End Time 2025-03-20 01:28:05 [2025-03-20 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719472', 'tblTempUsageDetail_20' ) start [2025-03-20 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719472', 'tblTempUsageDetail_20' ) end [2025-03-20 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719472', 'tblTempVendorCDR_20' ) start [2025-03-20 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719472', 'tblTempVendorCDR_20' ) end [2025-03-20 01:28:18] Production.INFO: ProcessCDR(1,14719472,1,1,2) [2025-03-20 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719472', 'tblTempUsageDetail_20' ) start [2025-03-20 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719472', 'tblTempUsageDetail_20' ) end [2025-03-20 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:28:21] Production.INFO: ==26809== Releasing lock... [2025-03-20 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:29:05 [end_date_ymd] => 2025-03-20 01:29:05 [RateCDR] => 1 ) [2025-03-20 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:29:05' and `end` < '2025-03-20 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:29:18] Production.INFO: count ==783 [2025-03-20 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:29:05 - End Time 2025-03-20 01:29:05 [2025-03-20 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719477', 'tblTempUsageDetail_20' ) start [2025-03-20 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719477', 'tblTempUsageDetail_20' ) end [2025-03-20 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719477', 'tblTempVendorCDR_20' ) start [2025-03-20 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719477', 'tblTempVendorCDR_20' ) end [2025-03-20 01:29:18] Production.INFO: ProcessCDR(1,14719477,1,1,2) [2025-03-20 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719477', 'tblTempUsageDetail_20' ) start [2025-03-20 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719477', 'tblTempUsageDetail_20' ) end [2025-03-20 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:29:21] Production.INFO: ==26891== Releasing lock... [2025-03-20 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:29:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:30:06 [end_date_ymd] => 2025-03-20 01:30:06 [RateCDR] => 1 ) [2025-03-20 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:30:06' and `end` < '2025-03-20 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:30:18] Production.INFO: count ==783 [2025-03-20 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:30:06 - End Time 2025-03-20 01:30:06 [2025-03-20 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719482', 'tblTempUsageDetail_20' ) start [2025-03-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719482', 'tblTempUsageDetail_20' ) end [2025-03-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719482', 'tblTempVendorCDR_20' ) start [2025-03-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719482', 'tblTempVendorCDR_20' ) end [2025-03-20 01:30:18] Production.INFO: ProcessCDR(1,14719482,1,1,2) [2025-03-20 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719482', 'tblTempUsageDetail_20' ) start [2025-03-20 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719482', 'tblTempUsageDetail_20' ) end [2025-03-20 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:30:22] Production.INFO: ==26982== Releasing lock... [2025-03-20 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:30:22] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:31:05 [end_date_ymd] => 2025-03-20 01:31:05 [RateCDR] => 1 ) [2025-03-20 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:31:05' and `end` < '2025-03-20 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:31:17] Production.INFO: count ==783 [2025-03-20 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:31:05 - End Time 2025-03-20 01:31:05 [2025-03-20 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719488', 'tblTempUsageDetail_20' ) start [2025-03-20 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719488', 'tblTempUsageDetail_20' ) end [2025-03-20 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719488', 'tblTempVendorCDR_20' ) start [2025-03-20 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719488', 'tblTempVendorCDR_20' ) end [2025-03-20 01:31:18] Production.INFO: ProcessCDR(1,14719488,1,1,2) [2025-03-20 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719488', 'tblTempUsageDetail_20' ) start [2025-03-20 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719488', 'tblTempUsageDetail_20' ) end [2025-03-20 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:31:21] Production.INFO: ==27070== Releasing lock... [2025-03-20 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:31:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:32:05 [end_date_ymd] => 2025-03-20 01:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:32:17] Production.INFO: count ==783 [2025-03-20 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:32:05 - End Time 2025-03-20 01:32:05 [2025-03-20 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719493', 'tblTempUsageDetail_20' ) start [2025-03-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719493', 'tblTempUsageDetail_20' ) end [2025-03-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719493', 'tblTempVendorCDR_20' ) start [2025-03-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719493', 'tblTempVendorCDR_20' ) end [2025-03-20 01:32:18] Production.INFO: ProcessCDR(1,14719493,1,1,2) [2025-03-20 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719493', 'tblTempUsageDetail_20' ) start [2025-03-20 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719493', 'tblTempUsageDetail_20' ) end [2025-03-20 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:32:21] Production.INFO: ==27153== Releasing lock... [2025-03-20 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:32:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:33:05 [end_date_ymd] => 2025-03-20 01:33:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:33:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:33:17] Production.INFO: count ==787 [2025-03-20 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:33:05 - End Time 2025-03-20 01:33:05 [2025-03-20 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719498', 'tblTempUsageDetail_20' ) start [2025-03-20 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719498', 'tblTempUsageDetail_20' ) end [2025-03-20 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719498', 'tblTempVendorCDR_20' ) start [2025-03-20 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719498', 'tblTempVendorCDR_20' ) end [2025-03-20 01:33:18] Production.INFO: ProcessCDR(1,14719498,1,1,2) [2025-03-20 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719498', 'tblTempUsageDetail_20' ) start [2025-03-20 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719498', 'tblTempUsageDetail_20' ) end [2025-03-20 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:33:21] Production.INFO: ==27239== Releasing lock... [2025-03-20 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:33:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:34:05 [end_date_ymd] => 2025-03-20 01:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:34:17] Production.INFO: count ==783 [2025-03-20 01:34:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:34:05 - End Time 2025-03-20 01:34:05 [2025-03-20 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719503', 'tblTempUsageDetail_20' ) start [2025-03-20 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719503', 'tblTempUsageDetail_20' ) end [2025-03-20 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719503', 'tblTempVendorCDR_20' ) start [2025-03-20 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719503', 'tblTempVendorCDR_20' ) end [2025-03-20 01:34:18] Production.INFO: ProcessCDR(1,14719503,1,1,2) [2025-03-20 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719503', 'tblTempUsageDetail_20' ) start [2025-03-20 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719503', 'tblTempUsageDetail_20' ) end [2025-03-20 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:34:21] Production.INFO: ==27320== Releasing lock... [2025-03-20 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:34:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:35:05 [end_date_ymd] => 2025-03-20 01:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:35:17] Production.INFO: count ==776 [2025-03-20 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:35:05 - End Time 2025-03-20 01:35:05 [2025-03-20 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719508', 'tblTempUsageDetail_20' ) start [2025-03-20 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719508', 'tblTempUsageDetail_20' ) end [2025-03-20 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719508', 'tblTempVendorCDR_20' ) start [2025-03-20 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719508', 'tblTempVendorCDR_20' ) end [2025-03-20 01:35:18] Production.INFO: ProcessCDR(1,14719508,1,1,2) [2025-03-20 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719508', 'tblTempUsageDetail_20' ) start [2025-03-20 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719508', 'tblTempUsageDetail_20' ) end [2025-03-20 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:35:21] Production.INFO: ==27403== Releasing lock... [2025-03-20 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:35:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:36:05 [end_date_ymd] => 2025-03-20 01:36:05 [RateCDR] => 1 ) [2025-03-20 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:36:05' and `end` < '2025-03-20 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:36:17] Production.INFO: count ==776 [2025-03-20 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:36:05 - End Time 2025-03-20 01:36:05 [2025-03-20 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719513', 'tblTempUsageDetail_20' ) start [2025-03-20 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719513', 'tblTempUsageDetail_20' ) end [2025-03-20 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719513', 'tblTempVendorCDR_20' ) start [2025-03-20 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719513', 'tblTempVendorCDR_20' ) end [2025-03-20 01:36:17] Production.INFO: ProcessCDR(1,14719513,1,1,2) [2025-03-20 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719513', 'tblTempUsageDetail_20' ) start [2025-03-20 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719513', 'tblTempUsageDetail_20' ) end [2025-03-20 01:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:36:20] Production.INFO: ==27487== Releasing lock... [2025-03-20 01:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:36:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:37:05 [end_date_ymd] => 2025-03-20 01:37:05 [RateCDR] => 1 ) [2025-03-20 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:37:05' and `end` < '2025-03-20 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:37:17] Production.INFO: count ==776 [2025-03-20 01:37:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:37:05 - End Time 2025-03-20 01:37:05 [2025-03-20 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719518', 'tblTempUsageDetail_20' ) start [2025-03-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719518', 'tblTempUsageDetail_20' ) end [2025-03-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719518', 'tblTempVendorCDR_20' ) start [2025-03-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719518', 'tblTempVendorCDR_20' ) end [2025-03-20 01:37:17] Production.INFO: ProcessCDR(1,14719518,1,1,2) [2025-03-20 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719518', 'tblTempUsageDetail_20' ) start [2025-03-20 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719518', 'tblTempUsageDetail_20' ) end [2025-03-20 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:37:21] Production.INFO: ==27572== Releasing lock... [2025-03-20 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:37:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:38:05 [end_date_ymd] => 2025-03-20 01:38:05 [RateCDR] => 1 ) [2025-03-20 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:38:05' and `end` < '2025-03-20 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:38:17] Production.INFO: count ==776 [2025-03-20 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:38:05 - End Time 2025-03-20 01:38:05 [2025-03-20 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719523', 'tblTempUsageDetail_20' ) start [2025-03-20 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719523', 'tblTempUsageDetail_20' ) end [2025-03-20 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719523', 'tblTempVendorCDR_20' ) start [2025-03-20 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719523', 'tblTempVendorCDR_20' ) end [2025-03-20 01:38:17] Production.INFO: ProcessCDR(1,14719523,1,1,2) [2025-03-20 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719523', 'tblTempUsageDetail_20' ) start [2025-03-20 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719523', 'tblTempUsageDetail_20' ) end [2025-03-20 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:38:21] Production.INFO: ==27656== Releasing lock... [2025-03-20 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:38:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:39:05 [end_date_ymd] => 2025-03-20 01:39:05 [RateCDR] => 1 ) [2025-03-20 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:39:05' and `end` < '2025-03-20 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:39:18] Production.INFO: count ==776 [2025-03-20 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:39:05 - End Time 2025-03-20 01:39:05 [2025-03-20 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719528', 'tblTempUsageDetail_20' ) start [2025-03-20 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719528', 'tblTempUsageDetail_20' ) end [2025-03-20 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719528', 'tblTempVendorCDR_20' ) start [2025-03-20 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719528', 'tblTempVendorCDR_20' ) end [2025-03-20 01:39:18] Production.INFO: ProcessCDR(1,14719528,1,1,2) [2025-03-20 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719528', 'tblTempUsageDetail_20' ) start [2025-03-20 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719528', 'tblTempUsageDetail_20' ) end [2025-03-20 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:39:21] Production.INFO: ==27739== Releasing lock... [2025-03-20 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:39:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:40:05 [end_date_ymd] => 2025-03-20 01:40:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:40:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:40:17] Production.INFO: count ==782 [2025-03-20 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:40:05 - End Time 2025-03-20 01:40:05 [2025-03-20 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719534', 'tblTempUsageDetail_20' ) start [2025-03-20 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719534', 'tblTempUsageDetail_20' ) end [2025-03-20 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719534', 'tblTempVendorCDR_20' ) start [2025-03-20 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719534', 'tblTempVendorCDR_20' ) end [2025-03-20 01:40:18] Production.INFO: ProcessCDR(1,14719534,1,1,2) [2025-03-20 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719534', 'tblTempUsageDetail_20' ) start [2025-03-20 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719534', 'tblTempUsageDetail_20' ) end [2025-03-20 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:40:22] Production.INFO: ==27831== Releasing lock... [2025-03-20 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:41:06 [end_date_ymd] => 2025-03-20 01:41:06 [RateCDR] => 1 ) [2025-03-20 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:41:06' and `end` < '2025-03-20 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:41:18] Production.INFO: count ==802 [2025-03-20 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:41:06 - End Time 2025-03-20 01:41:06 [2025-03-20 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719539', 'tblTempUsageDetail_20' ) start [2025-03-20 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719539', 'tblTempUsageDetail_20' ) end [2025-03-20 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719539', 'tblTempVendorCDR_20' ) start [2025-03-20 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719539', 'tblTempVendorCDR_20' ) end [2025-03-20 01:41:18] Production.INFO: ProcessCDR(1,14719539,1,1,2) [2025-03-20 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719539', 'tblTempUsageDetail_20' ) start [2025-03-20 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719539', 'tblTempUsageDetail_20' ) end [2025-03-20 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:41:22] Production.INFO: ==27919== Releasing lock... [2025-03-20 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:41:22] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:42:06 [end_date_ymd] => 2025-03-20 01:42:06 [RateCDR] => 1 ) [2025-03-20 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:42:06' and `end` < '2025-03-20 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:42:19] Production.INFO: count ==802 [2025-03-20 01:42:19] Production.ERROR: pbx CDR StartTime 2025-03-19 22:42:06 - End Time 2025-03-20 01:42:06 [2025-03-20 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719544', 'tblTempUsageDetail_20' ) start [2025-03-20 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719544', 'tblTempUsageDetail_20' ) end [2025-03-20 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719544', 'tblTempVendorCDR_20' ) start [2025-03-20 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719544', 'tblTempVendorCDR_20' ) end [2025-03-20 01:42:19] Production.INFO: ProcessCDR(1,14719544,1,1,2) [2025-03-20 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719544', 'tblTempUsageDetail_20' ) start [2025-03-20 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719544', 'tblTempUsageDetail_20' ) end [2025-03-20 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:42:22] Production.INFO: ==28005== Releasing lock... [2025-03-20 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:42:22] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:43:05 [end_date_ymd] => 2025-03-20 01:43:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:43:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:43:17] Production.INFO: count ==797 [2025-03-20 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:43:05 - End Time 2025-03-20 01:43:05 [2025-03-20 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719549', 'tblTempUsageDetail_20' ) start [2025-03-20 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719549', 'tblTempUsageDetail_20' ) end [2025-03-20 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719549', 'tblTempVendorCDR_20' ) start [2025-03-20 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719549', 'tblTempVendorCDR_20' ) end [2025-03-20 01:43:18] Production.INFO: ProcessCDR(1,14719549,1,1,2) [2025-03-20 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719549', 'tblTempUsageDetail_20' ) start [2025-03-20 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719549', 'tblTempUsageDetail_20' ) end [2025-03-20 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:43:21] Production.INFO: ==28133== Releasing lock... [2025-03-20 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:43:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:44:05 [end_date_ymd] => 2025-03-20 01:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:44:18] Production.INFO: count ==797 [2025-03-20 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:44:05 - End Time 2025-03-20 01:44:05 [2025-03-20 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719554', 'tblTempUsageDetail_20' ) start [2025-03-20 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719554', 'tblTempUsageDetail_20' ) end [2025-03-20 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719554', 'tblTempVendorCDR_20' ) start [2025-03-20 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719554', 'tblTempVendorCDR_20' ) end [2025-03-20 01:44:18] Production.INFO: ProcessCDR(1,14719554,1,1,2) [2025-03-20 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719554', 'tblTempUsageDetail_20' ) start [2025-03-20 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719554', 'tblTempUsageDetail_20' ) end [2025-03-20 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:44:21] Production.INFO: ==28216== Releasing lock... [2025-03-20 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:44:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:45:05 [end_date_ymd] => 2025-03-20 01:45:05 [RateCDR] => 1 ) [2025-03-20 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:45:05' and `end` < '2025-03-20 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:45:17] Production.INFO: count ==797 [2025-03-20 01:45:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:45:05 - End Time 2025-03-20 01:45:05 [2025-03-20 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719559', 'tblTempUsageDetail_20' ) start [2025-03-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719559', 'tblTempUsageDetail_20' ) end [2025-03-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719559', 'tblTempVendorCDR_20' ) start [2025-03-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719559', 'tblTempVendorCDR_20' ) end [2025-03-20 01:45:17] Production.INFO: ProcessCDR(1,14719559,1,1,2) [2025-03-20 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719559', 'tblTempUsageDetail_20' ) start [2025-03-20 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719559', 'tblTempUsageDetail_20' ) end [2025-03-20 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:45:21] Production.INFO: ==28299== Releasing lock... [2025-03-20 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:45:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:46:05 [end_date_ymd] => 2025-03-20 01:46:05 [RateCDR] => 1 ) [2025-03-20 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:46:18] Production.INFO: count ==800 [2025-03-20 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:46:05 - End Time 2025-03-20 01:46:05 [2025-03-20 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719564', 'tblTempUsageDetail_20' ) start [2025-03-20 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719564', 'tblTempUsageDetail_20' ) end [2025-03-20 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719564', 'tblTempVendorCDR_20' ) start [2025-03-20 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719564', 'tblTempVendorCDR_20' ) end [2025-03-20 01:46:18] Production.INFO: ProcessCDR(1,14719564,1,1,2) [2025-03-20 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719564', 'tblTempUsageDetail_20' ) start [2025-03-20 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719564', 'tblTempUsageDetail_20' ) end [2025-03-20 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:46:22] Production.INFO: ==28383== Releasing lock... [2025-03-20 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:46:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:47:05 [end_date_ymd] => 2025-03-20 01:47:05 [RateCDR] => 1 ) [2025-03-20 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:47:05' and `end` < '2025-03-20 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:47:17] Production.INFO: count ==800 [2025-03-20 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:47:05 - End Time 2025-03-20 01:47:05 [2025-03-20 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719569', 'tblTempUsageDetail_20' ) start [2025-03-20 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719569', 'tblTempUsageDetail_20' ) end [2025-03-20 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719569', 'tblTempVendorCDR_20' ) start [2025-03-20 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719569', 'tblTempVendorCDR_20' ) end [2025-03-20 01:47:18] Production.INFO: ProcessCDR(1,14719569,1,1,2) [2025-03-20 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719569', 'tblTempUsageDetail_20' ) start [2025-03-20 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719569', 'tblTempUsageDetail_20' ) end [2025-03-20 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:47:21] Production.INFO: ==28465== Releasing lock... [2025-03-20 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:48:05 [end_date_ymd] => 2025-03-20 01:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:48:17] Production.INFO: count ==800 [2025-03-20 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:48:05 - End Time 2025-03-20 01:48:05 [2025-03-20 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719573', 'tblTempUsageDetail_20' ) start [2025-03-20 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719573', 'tblTempUsageDetail_20' ) end [2025-03-20 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719573', 'tblTempVendorCDR_20' ) start [2025-03-20 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719573', 'tblTempVendorCDR_20' ) end [2025-03-20 01:48:18] Production.INFO: ProcessCDR(1,14719573,1,1,2) [2025-03-20 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719573', 'tblTempUsageDetail_20' ) start [2025-03-20 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719573', 'tblTempUsageDetail_20' ) end [2025-03-20 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:48:21] Production.INFO: ==28551== Releasing lock... [2025-03-20 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:48:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:49:05 [end_date_ymd] => 2025-03-20 01:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:49:17] Production.INFO: count ==793 [2025-03-20 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:49:05 - End Time 2025-03-20 01:49:05 [2025-03-20 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719579', 'tblTempUsageDetail_20' ) start [2025-03-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719579', 'tblTempUsageDetail_20' ) end [2025-03-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719579', 'tblTempVendorCDR_20' ) start [2025-03-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719579', 'tblTempVendorCDR_20' ) end [2025-03-20 01:49:17] Production.INFO: ProcessCDR(1,14719579,1,1,2) [2025-03-20 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719579', 'tblTempUsageDetail_20' ) start [2025-03-20 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719579', 'tblTempUsageDetail_20' ) end [2025-03-20 01:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:49:20] Production.INFO: ==28636== Releasing lock... [2025-03-20 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:49:20] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:50:06 [end_date_ymd] => 2025-03-20 01:50:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:50:06' and `end` < '2025-03-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 ,'') [2025-03-20 01:50:18] Production.INFO: count ==790 [2025-03-20 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:50:06 - End Time 2025-03-20 01:50:06 [2025-03-20 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719585', 'tblTempUsageDetail_20' ) start [2025-03-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719585', 'tblTempUsageDetail_20' ) end [2025-03-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719585', 'tblTempVendorCDR_20' ) start [2025-03-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719585', 'tblTempVendorCDR_20' ) end [2025-03-20 01:50:18] Production.INFO: ProcessCDR(1,14719585,1,1,2) [2025-03-20 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719585', 'tblTempUsageDetail_20' ) start [2025-03-20 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719585', 'tblTempUsageDetail_20' ) end [2025-03-20 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:50:22] Production.INFO: ==28721== Releasing lock... [2025-03-20 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:51:05 [end_date_ymd] => 2025-03-20 01:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:51:17] Production.INFO: count ==788 [2025-03-20 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:51:05 - End Time 2025-03-20 01:51:05 [2025-03-20 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719590', 'tblTempUsageDetail_20' ) start [2025-03-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719590', 'tblTempUsageDetail_20' ) end [2025-03-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719590', 'tblTempVendorCDR_20' ) start [2025-03-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719590', 'tblTempVendorCDR_20' ) end [2025-03-20 01:51:18] Production.INFO: ProcessCDR(1,14719590,1,1,2) [2025-03-20 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719590', 'tblTempUsageDetail_20' ) start [2025-03-20 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719590', 'tblTempUsageDetail_20' ) end [2025-03-20 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:51:21] Production.INFO: ==28809== Releasing lock... [2025-03-20 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:52:06 [end_date_ymd] => 2025-03-20 01:52:06 [RateCDR] => 1 ) [2025-03-20 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:52:06' and `end` < '2025-03-20 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:52:18] Production.INFO: count ==782 [2025-03-20 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:52:06 - End Time 2025-03-20 01:52:06 [2025-03-20 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719595', 'tblTempUsageDetail_20' ) start [2025-03-20 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719595', 'tblTempUsageDetail_20' ) end [2025-03-20 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719595', 'tblTempVendorCDR_20' ) start [2025-03-20 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719595', 'tblTempVendorCDR_20' ) end [2025-03-20 01:52:18] Production.INFO: ProcessCDR(1,14719595,1,1,2) [2025-03-20 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719595', 'tblTempUsageDetail_20' ) start [2025-03-20 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719595', 'tblTempUsageDetail_20' ) end [2025-03-20 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:52:22] Production.INFO: ==28891== Releasing lock... [2025-03-20 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:53:05 [end_date_ymd] => 2025-03-20 01:53:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:53:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:53:17] Production.INFO: count ==787 [2025-03-20 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:53:05 - End Time 2025-03-20 01:53:05 [2025-03-20 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719600', 'tblTempUsageDetail_20' ) start [2025-03-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719600', 'tblTempUsageDetail_20' ) end [2025-03-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719600', 'tblTempVendorCDR_20' ) start [2025-03-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719600', 'tblTempVendorCDR_20' ) end [2025-03-20 01:53:18] Production.INFO: ProcessCDR(1,14719600,1,1,2) [2025-03-20 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719600', 'tblTempUsageDetail_20' ) start [2025-03-20 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719600', 'tblTempUsageDetail_20' ) end [2025-03-20 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:53:21] Production.INFO: ==28979== Releasing lock... [2025-03-20 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:53:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:54:06 [end_date_ymd] => 2025-03-20 01:54:06 [RateCDR] => 1 ) [2025-03-20 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:54:06' and `end` < '2025-03-20 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:54:18] Production.INFO: count ==793 [2025-03-20 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:54:06 - End Time 2025-03-20 01:54:06 [2025-03-20 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719605', 'tblTempUsageDetail_20' ) start [2025-03-20 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719605', 'tblTempUsageDetail_20' ) end [2025-03-20 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719605', 'tblTempVendorCDR_20' ) start [2025-03-20 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719605', 'tblTempVendorCDR_20' ) end [2025-03-20 01:54:18] Production.INFO: ProcessCDR(1,14719605,1,1,2) [2025-03-20 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719605', 'tblTempUsageDetail_20' ) start [2025-03-20 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719605', 'tblTempUsageDetail_20' ) end [2025-03-20 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:54:22] Production.INFO: ==29062== Releasing lock... [2025-03-20 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:54:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:55:05 [end_date_ymd] => 2025-03-20 01:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:55:17] Production.INFO: count ==805 [2025-03-20 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:55:05 - End Time 2025-03-20 01:55:05 [2025-03-20 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719610', 'tblTempUsageDetail_20' ) start [2025-03-20 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719610', 'tblTempUsageDetail_20' ) end [2025-03-20 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719610', 'tblTempVendorCDR_20' ) start [2025-03-20 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719610', 'tblTempVendorCDR_20' ) end [2025-03-20 01:55:18] Production.INFO: ProcessCDR(1,14719610,1,1,2) [2025-03-20 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719610', 'tblTempUsageDetail_20' ) start [2025-03-20 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719610', 'tblTempUsageDetail_20' ) end [2025-03-20 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:55:21] Production.INFO: ==29144== Releasing lock... [2025-03-20 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:55:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:56:05 [end_date_ymd] => 2025-03-20 01:56:05 [RateCDR] => 1 ) [2025-03-20 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:56:05' and `end` < '2025-03-20 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:56:17] Production.INFO: count ==811 [2025-03-20 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:56:05 - End Time 2025-03-20 01:56:05 [2025-03-20 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719615', 'tblTempUsageDetail_20' ) start [2025-03-20 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719615', 'tblTempUsageDetail_20' ) end [2025-03-20 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719615', 'tblTempVendorCDR_20' ) start [2025-03-20 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719615', 'tblTempVendorCDR_20' ) end [2025-03-20 01:56:18] Production.INFO: ProcessCDR(1,14719615,1,1,2) [2025-03-20 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719615', 'tblTempUsageDetail_20' ) start [2025-03-20 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719615', 'tblTempUsageDetail_20' ) end [2025-03-20 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:56:21] Production.INFO: ==29229== Releasing lock... [2025-03-20 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:56:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:57:05 [end_date_ymd] => 2025-03-20 01:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:57:17] Production.INFO: count ==829 [2025-03-20 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:57:05 - End Time 2025-03-20 01:57:05 [2025-03-20 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719620', 'tblTempUsageDetail_20' ) start [2025-03-20 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719620', 'tblTempUsageDetail_20' ) end [2025-03-20 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719620', 'tblTempVendorCDR_20' ) start [2025-03-20 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719620', 'tblTempVendorCDR_20' ) end [2025-03-20 01:57:17] Production.INFO: ProcessCDR(1,14719620,1,1,2) [2025-03-20 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719620', 'tblTempUsageDetail_20' ) start [2025-03-20 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719620', 'tblTempUsageDetail_20' ) end [2025-03-20 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:57:21] Production.INFO: ==29311== Releasing lock... [2025-03-20 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:57:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:58:05 [end_date_ymd] => 2025-03-20 01:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 22:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 01:58:17] Production.INFO: count ==847 [2025-03-20 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 22:58:05 - End Time 2025-03-20 01:58:05 [2025-03-20 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719625', 'tblTempUsageDetail_20' ) start [2025-03-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719625', 'tblTempUsageDetail_20' ) end [2025-03-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719625', 'tblTempVendorCDR_20' ) start [2025-03-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719625', 'tblTempVendorCDR_20' ) end [2025-03-20 01:58:18] Production.INFO: ProcessCDR(1,14719625,1,1,2) [2025-03-20 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719625', 'tblTempUsageDetail_20' ) start [2025-03-20 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719625', 'tblTempUsageDetail_20' ) end [2025-03-20 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:58:21] Production.INFO: ==29394== Releasing lock... [2025-03-20 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:58:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 22:59:05 [end_date_ymd] => 2025-03-20 01:59:05 [RateCDR] => 1 ) [2025-03-20 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 22:59:05' and `end` < '2025-03-20 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 01:59:17] Production.INFO: count ==847 [2025-03-20 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-19 22:59:05 - End Time 2025-03-20 01:59:05 [2025-03-20 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719630', 'tblTempUsageDetail_20' ) start [2025-03-20 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719630', 'tblTempUsageDetail_20' ) end [2025-03-20 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719630', 'tblTempVendorCDR_20' ) start [2025-03-20 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719630', 'tblTempVendorCDR_20' ) end [2025-03-20 01:59:17] Production.INFO: ProcessCDR(1,14719630,1,1,2) [2025-03-20 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719630', 'tblTempUsageDetail_20' ) start [2025-03-20 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719630', 'tblTempUsageDetail_20' ) end [2025-03-20 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 01:59:20] Production.INFO: ==29518== Releasing lock... [2025-03-20 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 01:59:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:00:06 [end_date_ymd] => 2025-03-20 02:00:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:00:06' and `end` < '2025-03-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 ,'') [2025-03-20 02:00:19] Production.INFO: count ==865 [2025-03-20 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-19 23:00:06 - End Time 2025-03-20 02:00:06 [2025-03-20 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719636', 'tblTempUsageDetail_20' ) start [2025-03-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719636', 'tblTempUsageDetail_20' ) end [2025-03-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719636', 'tblTempVendorCDR_20' ) start [2025-03-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719636', 'tblTempVendorCDR_20' ) end [2025-03-20 02:00:19] Production.INFO: ProcessCDR(1,14719636,1,1,2) [2025-03-20 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719636', 'tblTempUsageDetail_20' ) start [2025-03-20 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719636', 'tblTempUsageDetail_20' ) end [2025-03-20 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:00:22] Production.INFO: ==29609== Releasing lock... [2025-03-20 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:00:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-20 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:01:06 [end_date_ymd] => 2025-03-20 02:01:06 [RateCDR] => 1 ) [2025-03-20 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:01:06' and `end` < '2025-03-20 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:01:18] Production.INFO: count ==879 [2025-03-20 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:01:06 - End Time 2025-03-20 02:01:06 [2025-03-20 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719641', 'tblTempUsageDetail_20' ) start [2025-03-20 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719641', 'tblTempUsageDetail_20' ) end [2025-03-20 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719641', 'tblTempVendorCDR_20' ) start [2025-03-20 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719641', 'tblTempVendorCDR_20' ) end [2025-03-20 02:01:18] Production.INFO: ProcessCDR(1,14719641,1,1,2) [2025-03-20 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719641', 'tblTempUsageDetail_20' ) start [2025-03-20 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719641', 'tblTempUsageDetail_20' ) end [2025-03-20 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:01:22] Production.INFO: ==29711== Releasing lock... [2025-03-20 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:01:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:02:05 [end_date_ymd] => 2025-03-20 02:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:02:17] Production.INFO: count ==893 [2025-03-20 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:02:05 - End Time 2025-03-20 02:02:05 [2025-03-20 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719646', 'tblTempUsageDetail_20' ) start [2025-03-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719646', 'tblTempUsageDetail_20' ) end [2025-03-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719646', 'tblTempVendorCDR_20' ) start [2025-03-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719646', 'tblTempVendorCDR_20' ) end [2025-03-20 02:02:18] Production.INFO: ProcessCDR(1,14719646,1,1,2) [2025-03-20 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719646', 'tblTempUsageDetail_20' ) start [2025-03-20 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719646', 'tblTempUsageDetail_20' ) end [2025-03-20 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:02:23] Production.INFO: ==29886== Releasing lock... [2025-03-20 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:02:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:03:05 [end_date_ymd] => 2025-03-20 02:03:05 [RateCDR] => 1 ) [2025-03-20 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:03:05' and `end` < '2025-03-20 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:03:18] Production.INFO: count ==891 [2025-03-20 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:03:05 - End Time 2025-03-20 02:03:05 [2025-03-20 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719651', 'tblTempUsageDetail_20' ) start [2025-03-20 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719651', 'tblTempUsageDetail_20' ) end [2025-03-20 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719651', 'tblTempVendorCDR_20' ) start [2025-03-20 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719651', 'tblTempVendorCDR_20' ) end [2025-03-20 02:03:18] Production.INFO: ProcessCDR(1,14719651,1,1,2) [2025-03-20 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719651', 'tblTempUsageDetail_20' ) start [2025-03-20 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719651', 'tblTempUsageDetail_20' ) end [2025-03-20 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:03:22] Production.INFO: ==29970== Releasing lock... [2025-03-20 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:04:05 [end_date_ymd] => 2025-03-20 02:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:04:17] Production.INFO: count ==893 [2025-03-20 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:04:05 - End Time 2025-03-20 02:04:05 [2025-03-20 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719656', 'tblTempUsageDetail_20' ) start [2025-03-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719656', 'tblTempUsageDetail_20' ) end [2025-03-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719656', 'tblTempVendorCDR_20' ) start [2025-03-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719656', 'tblTempVendorCDR_20' ) end [2025-03-20 02:04:18] Production.INFO: ProcessCDR(1,14719656,1,1,2) [2025-03-20 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719656', 'tblTempUsageDetail_20' ) start [2025-03-20 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719656', 'tblTempUsageDetail_20' ) end [2025-03-20 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:04:21] Production.INFO: ==30055== Releasing lock... [2025-03-20 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:04:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:05:06 [end_date_ymd] => 2025-03-20 02:05:06 [RateCDR] => 1 ) [2025-03-20 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:05:06' and `end` < '2025-03-20 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:05:18] Production.INFO: count ==891 [2025-03-20 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:05:06 - End Time 2025-03-20 02:05:06 [2025-03-20 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719661', 'tblTempUsageDetail_20' ) start [2025-03-20 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719661', 'tblTempUsageDetail_20' ) end [2025-03-20 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719661', 'tblTempVendorCDR_20' ) start [2025-03-20 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719661', 'tblTempVendorCDR_20' ) end [2025-03-20 02:05:18] Production.INFO: ProcessCDR(1,14719661,1,1,2) [2025-03-20 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719661', 'tblTempUsageDetail_20' ) start [2025-03-20 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719661', 'tblTempUsageDetail_20' ) end [2025-03-20 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:05:22] Production.INFO: ==30139== Releasing lock... [2025-03-20 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:05:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:06:05 [end_date_ymd] => 2025-03-20 02:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:06:17] Production.INFO: count ==891 [2025-03-20 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:06:05 - End Time 2025-03-20 02:06:05 [2025-03-20 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719666', 'tblTempUsageDetail_20' ) start [2025-03-20 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719666', 'tblTempUsageDetail_20' ) end [2025-03-20 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719666', 'tblTempVendorCDR_20' ) start [2025-03-20 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719666', 'tblTempVendorCDR_20' ) end [2025-03-20 02:06:18] Production.INFO: ProcessCDR(1,14719666,1,1,2) [2025-03-20 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719666', 'tblTempUsageDetail_20' ) start [2025-03-20 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719666', 'tblTempUsageDetail_20' ) end [2025-03-20 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:06:21] Production.INFO: ==30230== Releasing lock... [2025-03-20 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:06:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:07:05 [end_date_ymd] => 2025-03-20 02:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:07:17] Production.INFO: count ==891 [2025-03-20 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:07:05 - End Time 2025-03-20 02:07:05 [2025-03-20 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719671', 'tblTempUsageDetail_20' ) start [2025-03-20 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719671', 'tblTempUsageDetail_20' ) end [2025-03-20 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719671', 'tblTempVendorCDR_20' ) start [2025-03-20 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719671', 'tblTempVendorCDR_20' ) end [2025-03-20 02:07:18] Production.INFO: ProcessCDR(1,14719671,1,1,2) [2025-03-20 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719671', 'tblTempUsageDetail_20' ) start [2025-03-20 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719671', 'tblTempUsageDetail_20' ) end [2025-03-20 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:07:21] Production.INFO: ==30315== Releasing lock... [2025-03-20 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:07:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:08:05 [end_date_ymd] => 2025-03-20 02:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:08:17] Production.INFO: count ==890 [2025-03-20 02:08:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:08:05 - End Time 2025-03-20 02:08:05 [2025-03-20 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719676', 'tblTempUsageDetail_20' ) start [2025-03-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719676', 'tblTempUsageDetail_20' ) end [2025-03-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719676', 'tblTempVendorCDR_20' ) start [2025-03-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719676', 'tblTempVendorCDR_20' ) end [2025-03-20 02:08:17] Production.INFO: ProcessCDR(1,14719676,1,1,2) [2025-03-20 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719676', 'tblTempUsageDetail_20' ) start [2025-03-20 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719676', 'tblTempUsageDetail_20' ) end [2025-03-20 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:08:21] Production.INFO: ==30403== Releasing lock... [2025-03-20 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:08:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:09:05 [end_date_ymd] => 2025-03-20 02:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:09:18] Production.INFO: count ==890 [2025-03-20 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:09:05 - End Time 2025-03-20 02:09:05 [2025-03-20 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719681', 'tblTempUsageDetail_20' ) start [2025-03-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719681', 'tblTempUsageDetail_20' ) end [2025-03-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719681', 'tblTempVendorCDR_20' ) start [2025-03-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719681', 'tblTempVendorCDR_20' ) end [2025-03-20 02:09:18] Production.INFO: ProcessCDR(1,14719681,1,1,2) [2025-03-20 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719681', 'tblTempUsageDetail_20' ) start [2025-03-20 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719681', 'tblTempUsageDetail_20' ) end [2025-03-20 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:09:22] Production.INFO: ==30490== Releasing lock... [2025-03-20 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:09:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:10:06 [end_date_ymd] => 2025-03-20 02:10:06 [RateCDR] => 1 ) [2025-03-20 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:10:06' and `end` < '2025-03-20 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:10:18] Production.INFO: count ==884 [2025-03-20 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:10:06 - End Time 2025-03-20 02:10:06 [2025-03-20 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719687', 'tblTempUsageDetail_20' ) start [2025-03-20 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719687', 'tblTempUsageDetail_20' ) end [2025-03-20 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719687', 'tblTempVendorCDR_20' ) start [2025-03-20 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719687', 'tblTempVendorCDR_20' ) end [2025-03-20 02:10:18] Production.INFO: ProcessCDR(1,14719687,1,1,2) [2025-03-20 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719687', 'tblTempUsageDetail_20' ) start [2025-03-20 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719687', 'tblTempUsageDetail_20' ) end [2025-03-20 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:10:22] Production.INFO: ==30575== Releasing lock... [2025-03-20 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:10:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:11:05 [end_date_ymd] => 2025-03-20 02:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:11:17] Production.INFO: count ==884 [2025-03-20 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:11:05 - End Time 2025-03-20 02:11:05 [2025-03-20 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719692', 'tblTempUsageDetail_20' ) start [2025-03-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719692', 'tblTempUsageDetail_20' ) end [2025-03-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719692', 'tblTempVendorCDR_20' ) start [2025-03-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719692', 'tblTempVendorCDR_20' ) end [2025-03-20 02:11:18] Production.INFO: ProcessCDR(1,14719692,1,1,2) [2025-03-20 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719692', 'tblTempUsageDetail_20' ) start [2025-03-20 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719692', 'tblTempUsageDetail_20' ) end [2025-03-20 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:11:21] Production.INFO: ==30661== Releasing lock... [2025-03-20 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:11:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:12:05 [end_date_ymd] => 2025-03-20 02:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:12:17] Production.INFO: count ==881 [2025-03-20 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:12:05 - End Time 2025-03-20 02:12:05 [2025-03-20 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719697', 'tblTempUsageDetail_20' ) start [2025-03-20 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719697', 'tblTempUsageDetail_20' ) end [2025-03-20 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719697', 'tblTempVendorCDR_20' ) start [2025-03-20 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719697', 'tblTempVendorCDR_20' ) end [2025-03-20 02:12:17] Production.INFO: ProcessCDR(1,14719697,1,1,2) [2025-03-20 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719697', 'tblTempUsageDetail_20' ) start [2025-03-20 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719697', 'tblTempUsageDetail_20' ) end [2025-03-20 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:12:21] Production.INFO: ==30747== Releasing lock... [2025-03-20 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:12:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:13:05 [end_date_ymd] => 2025-03-20 02:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:13:17] Production.INFO: count ==881 [2025-03-20 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:13:05 - End Time 2025-03-20 02:13:05 [2025-03-20 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719702', 'tblTempUsageDetail_20' ) start [2025-03-20 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719702', 'tblTempUsageDetail_20' ) end [2025-03-20 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719702', 'tblTempVendorCDR_20' ) start [2025-03-20 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719702', 'tblTempVendorCDR_20' ) end [2025-03-20 02:13:18] Production.INFO: ProcessCDR(1,14719702,1,1,2) [2025-03-20 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719702', 'tblTempUsageDetail_20' ) start [2025-03-20 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719702', 'tblTempUsageDetail_20' ) end [2025-03-20 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:13:21] Production.INFO: ==30833== Releasing lock... [2025-03-20 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:13:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:14:05 [end_date_ymd] => 2025-03-20 02:14:05 [RateCDR] => 1 ) [2025-03-20 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:14:05' and `end` < '2025-03-20 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:14:17] Production.INFO: count ==885 [2025-03-20 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:14:05 - End Time 2025-03-20 02:14:05 [2025-03-20 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719707', 'tblTempUsageDetail_20' ) start [2025-03-20 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719707', 'tblTempUsageDetail_20' ) end [2025-03-20 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719707', 'tblTempVendorCDR_20' ) start [2025-03-20 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719707', 'tblTempVendorCDR_20' ) end [2025-03-20 02:14:17] Production.INFO: ProcessCDR(1,14719707,1,1,2) [2025-03-20 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719707', 'tblTempUsageDetail_20' ) start [2025-03-20 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719707', 'tblTempUsageDetail_20' ) end [2025-03-20 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:14:21] Production.INFO: ==30957== Releasing lock... [2025-03-20 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:14:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:15:06 [end_date_ymd] => 2025-03-20 02:15:06 [RateCDR] => 1 ) [2025-03-20 02:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:15:06' and `end` < '2025-03-20 02:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:15:18] Production.INFO: count ==882 [2025-03-20 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:15:06 - End Time 2025-03-20 02:15:06 [2025-03-20 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719712', 'tblTempUsageDetail_20' ) start [2025-03-20 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719712', 'tblTempUsageDetail_20' ) end [2025-03-20 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719712', 'tblTempVendorCDR_20' ) start [2025-03-20 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719712', 'tblTempVendorCDR_20' ) end [2025-03-20 02:15:18] Production.INFO: ProcessCDR(1,14719712,1,1,2) [2025-03-20 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719712', 'tblTempUsageDetail_20' ) start [2025-03-20 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719712', 'tblTempUsageDetail_20' ) end [2025-03-20 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:15:22] Production.INFO: ==31044== Releasing lock... [2025-03-20 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:15:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:16:05 [end_date_ymd] => 2025-03-20 02:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:16:17] Production.INFO: count ==873 [2025-03-20 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:16:05 - End Time 2025-03-20 02:16:05 [2025-03-20 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719717', 'tblTempUsageDetail_20' ) start [2025-03-20 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719717', 'tblTempUsageDetail_20' ) end [2025-03-20 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719717', 'tblTempVendorCDR_20' ) start [2025-03-20 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719717', 'tblTempVendorCDR_20' ) end [2025-03-20 02:16:17] Production.INFO: ProcessCDR(1,14719717,1,1,2) [2025-03-20 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719717', 'tblTempUsageDetail_20' ) start [2025-03-20 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719717', 'tblTempUsageDetail_20' ) end [2025-03-20 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:16:21] Production.INFO: ==31132== Releasing lock... [2025-03-20 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:16:21] Production.INFO: 35 MB #Memory Used# [2025-03-20 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:17:05 [end_date_ymd] => 2025-03-20 02:17:05 [RateCDR] => 1 ) [2025-03-20 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:17:05' and `end` < '2025-03-20 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:17:17] Production.INFO: count ==872 [2025-03-20 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:17:05 - End Time 2025-03-20 02:17:05 [2025-03-20 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719722', 'tblTempUsageDetail_20' ) start [2025-03-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719722', 'tblTempUsageDetail_20' ) end [2025-03-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719722', 'tblTempVendorCDR_20' ) start [2025-03-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719722', 'tblTempVendorCDR_20' ) end [2025-03-20 02:17:18] Production.INFO: ProcessCDR(1,14719722,1,1,2) [2025-03-20 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719722', 'tblTempUsageDetail_20' ) start [2025-03-20 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719722', 'tblTempUsageDetail_20' ) end [2025-03-20 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:17:21] Production.INFO: ==31215== Releasing lock... [2025-03-20 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:17:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:18:06 [end_date_ymd] => 2025-03-20 02:18:06 [RateCDR] => 1 ) [2025-03-20 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:18:06' and `end` < '2025-03-20 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:18:18] Production.INFO: count ==870 [2025-03-20 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:18:06 - End Time 2025-03-20 02:18:06 [2025-03-20 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719727', 'tblTempUsageDetail_20' ) start [2025-03-20 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719727', 'tblTempUsageDetail_20' ) end [2025-03-20 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719727', 'tblTempVendorCDR_20' ) start [2025-03-20 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719727', 'tblTempVendorCDR_20' ) end [2025-03-20 02:18:19] Production.INFO: ProcessCDR(1,14719727,1,1,2) [2025-03-20 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719727', 'tblTempUsageDetail_20' ) start [2025-03-20 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719727', 'tblTempUsageDetail_20' ) end [2025-03-20 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:18:22] Production.INFO: ==31300== Releasing lock... [2025-03-20 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:18:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:19:05 [end_date_ymd] => 2025-03-20 02:19:05 [RateCDR] => 1 ) [2025-03-20 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:19:05' and `end` < '2025-03-20 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:19:17] Production.INFO: count ==870 [2025-03-20 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:19:05 - End Time 2025-03-20 02:19:05 [2025-03-20 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719732', 'tblTempUsageDetail_20' ) start [2025-03-20 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719732', 'tblTempUsageDetail_20' ) end [2025-03-20 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719732', 'tblTempVendorCDR_20' ) start [2025-03-20 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719732', 'tblTempVendorCDR_20' ) end [2025-03-20 02:19:17] Production.INFO: ProcessCDR(1,14719732,1,1,2) [2025-03-20 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719732', 'tblTempUsageDetail_20' ) start [2025-03-20 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719732', 'tblTempUsageDetail_20' ) end [2025-03-20 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:19:21] Production.INFO: ==31394== Releasing lock... [2025-03-20 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:19:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:20:07 [end_date_ymd] => 2025-03-20 02:20:07 [RateCDR] => 1 ) [2025-03-20 02:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:20:07' and `end` < '2025-03-20 02:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:20:19] Production.INFO: count ==870 [2025-03-20 02:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 23:20:07 - End Time 2025-03-20 02:20:07 [2025-03-20 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719738', 'tblTempUsageDetail_20' ) start [2025-03-20 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719738', 'tblTempUsageDetail_20' ) end [2025-03-20 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719738', 'tblTempVendorCDR_20' ) start [2025-03-20 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719738', 'tblTempVendorCDR_20' ) end [2025-03-20 02:20:19] Production.INFO: ProcessCDR(1,14719738,1,1,2) [2025-03-20 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719738', 'tblTempUsageDetail_20' ) start [2025-03-20 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719738', 'tblTempUsageDetail_20' ) end [2025-03-20 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:20:23] Production.INFO: ==31478== Releasing lock... [2025-03-20 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:21:05 [end_date_ymd] => 2025-03-20 02:21:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:21:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:21:17] Production.INFO: count ==870 [2025-03-20 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:21:05 - End Time 2025-03-20 02:21:05 [2025-03-20 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719743', 'tblTempUsageDetail_20' ) start [2025-03-20 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719743', 'tblTempUsageDetail_20' ) end [2025-03-20 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719743', 'tblTempVendorCDR_20' ) start [2025-03-20 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719743', 'tblTempVendorCDR_20' ) end [2025-03-20 02:21:18] Production.INFO: ProcessCDR(1,14719743,1,1,2) [2025-03-20 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719743', 'tblTempUsageDetail_20' ) start [2025-03-20 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719743', 'tblTempUsageDetail_20' ) end [2025-03-20 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:21:21] Production.INFO: ==31568== Releasing lock... [2025-03-20 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:21:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:22:05 [end_date_ymd] => 2025-03-20 02:22:05 [RateCDR] => 1 ) [2025-03-20 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:22:05' and `end` < '2025-03-20 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:22:18] Production.INFO: count ==867 [2025-03-20 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:22:05 - End Time 2025-03-20 02:22:05 [2025-03-20 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719748', 'tblTempUsageDetail_20' ) start [2025-03-20 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719748', 'tblTempUsageDetail_20' ) end [2025-03-20 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719748', 'tblTempVendorCDR_20' ) start [2025-03-20 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719748', 'tblTempVendorCDR_20' ) end [2025-03-20 02:22:18] Production.INFO: ProcessCDR(1,14719748,1,1,2) [2025-03-20 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719748', 'tblTempUsageDetail_20' ) start [2025-03-20 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719748', 'tblTempUsageDetail_20' ) end [2025-03-20 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:22:22] Production.INFO: ==31660== Releasing lock... [2025-03-20 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:22:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:23:05 [end_date_ymd] => 2025-03-20 02:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:23:17] Production.INFO: count ==867 [2025-03-20 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:23:05 - End Time 2025-03-20 02:23:05 [2025-03-20 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719753', 'tblTempUsageDetail_20' ) start [2025-03-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719753', 'tblTempUsageDetail_20' ) end [2025-03-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719753', 'tblTempVendorCDR_20' ) start [2025-03-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719753', 'tblTempVendorCDR_20' ) end [2025-03-20 02:23:17] Production.INFO: ProcessCDR(1,14719753,1,1,2) [2025-03-20 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719753', 'tblTempUsageDetail_20' ) start [2025-03-20 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719753', 'tblTempUsageDetail_20' ) end [2025-03-20 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:23:21] Production.INFO: ==31747== Releasing lock... [2025-03-20 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:23:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:24:05 [end_date_ymd] => 2025-03-20 02:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:24:18] Production.INFO: count ==862 [2025-03-20 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:24:05 - End Time 2025-03-20 02:24:05 [2025-03-20 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719758', 'tblTempUsageDetail_20' ) start [2025-03-20 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719758', 'tblTempUsageDetail_20' ) end [2025-03-20 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719758', 'tblTempVendorCDR_20' ) start [2025-03-20 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719758', 'tblTempVendorCDR_20' ) end [2025-03-20 02:24:18] Production.INFO: ProcessCDR(1,14719758,1,1,2) [2025-03-20 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719758', 'tblTempUsageDetail_20' ) start [2025-03-20 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719758', 'tblTempUsageDetail_20' ) end [2025-03-20 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:24:21] Production.INFO: ==31832== Releasing lock... [2025-03-20 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:24:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:25:05 [end_date_ymd] => 2025-03-20 02:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:25:17] Production.INFO: count ==861 [2025-03-20 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:25:05 - End Time 2025-03-20 02:25:05 [2025-03-20 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719763', 'tblTempUsageDetail_20' ) start [2025-03-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719763', 'tblTempUsageDetail_20' ) end [2025-03-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719763', 'tblTempVendorCDR_20' ) start [2025-03-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719763', 'tblTempVendorCDR_20' ) end [2025-03-20 02:25:17] Production.INFO: ProcessCDR(1,14719763,1,1,2) [2025-03-20 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719763', 'tblTempUsageDetail_20' ) start [2025-03-20 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719763', 'tblTempUsageDetail_20' ) end [2025-03-20 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:25:21] Production.INFO: ==31920== Releasing lock... [2025-03-20 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:25:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:26:05 [end_date_ymd] => 2025-03-20 02:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:26:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:26:17] Production.INFO: count ==861 [2025-03-20 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:26:05 - End Time 2025-03-20 02:26:05 [2025-03-20 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719768', 'tblTempUsageDetail_20' ) start [2025-03-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719768', 'tblTempUsageDetail_20' ) end [2025-03-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719768', 'tblTempVendorCDR_20' ) start [2025-03-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719768', 'tblTempVendorCDR_20' ) end [2025-03-20 02:26:18] Production.INFO: ProcessCDR(1,14719768,1,1,2) [2025-03-20 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719768', 'tblTempUsageDetail_20' ) start [2025-03-20 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719768', 'tblTempUsageDetail_20' ) end [2025-03-20 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:26:21] Production.INFO: ==32015== Releasing lock... [2025-03-20 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:26:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:27:05 [end_date_ymd] => 2025-03-20 02:27:05 [RateCDR] => 1 ) [2025-03-20 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:27:05' and `end` < '2025-03-20 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:27:17] Production.INFO: count ==856 [2025-03-20 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:27:05 - End Time 2025-03-20 02:27:05 [2025-03-20 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719773', 'tblTempUsageDetail_20' ) start [2025-03-20 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719773', 'tblTempUsageDetail_20' ) end [2025-03-20 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719773', 'tblTempVendorCDR_20' ) start [2025-03-20 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719773', 'tblTempVendorCDR_20' ) end [2025-03-20 02:27:17] Production.INFO: ProcessCDR(1,14719773,1,1,2) [2025-03-20 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719773', 'tblTempUsageDetail_20' ) start [2025-03-20 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719773', 'tblTempUsageDetail_20' ) end [2025-03-20 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:27:21] Production.INFO: ==32101== Releasing lock... [2025-03-20 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:27:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:28:05 [end_date_ymd] => 2025-03-20 02:28:05 [RateCDR] => 1 ) [2025-03-20 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:28:05' and `end` < '2025-03-20 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:28:17] Production.INFO: count ==854 [2025-03-20 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:28:05 - End Time 2025-03-20 02:28:05 [2025-03-20 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719778', 'tblTempUsageDetail_20' ) start [2025-03-20 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719778', 'tblTempUsageDetail_20' ) end [2025-03-20 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719778', 'tblTempVendorCDR_20' ) start [2025-03-20 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719778', 'tblTempVendorCDR_20' ) end [2025-03-20 02:28:17] Production.INFO: ProcessCDR(1,14719778,1,1,2) [2025-03-20 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719778', 'tblTempUsageDetail_20' ) start [2025-03-20 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719778', 'tblTempUsageDetail_20' ) end [2025-03-20 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:28:21] Production.INFO: ==32189== Releasing lock... [2025-03-20 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:29:06 [end_date_ymd] => 2025-03-20 02:29:06 [RateCDR] => 1 ) [2025-03-20 02:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:29:06' and `end` < '2025-03-20 02:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:29:18] Production.INFO: count ==851 [2025-03-20 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:29:06 - End Time 2025-03-20 02:29:06 [2025-03-20 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719783', 'tblTempUsageDetail_20' ) start [2025-03-20 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719783', 'tblTempUsageDetail_20' ) end [2025-03-20 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719783', 'tblTempVendorCDR_20' ) start [2025-03-20 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719783', 'tblTempVendorCDR_20' ) end [2025-03-20 02:29:18] Production.INFO: ProcessCDR(1,14719783,1,1,2) [2025-03-20 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719783', 'tblTempUsageDetail_20' ) start [2025-03-20 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719783', 'tblTempUsageDetail_20' ) end [2025-03-20 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:29:22] Production.INFO: ==32275== Releasing lock... [2025-03-20 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:29:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:30:06 [end_date_ymd] => 2025-03-20 02:30:06 [RateCDR] => 1 ) [2025-03-20 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:30:06' and `end` < '2025-03-20 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:30:18] Production.INFO: count ==853 [2025-03-20 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:30:06 - End Time 2025-03-20 02:30:06 [2025-03-20 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719789', 'tblTempUsageDetail_20' ) start [2025-03-20 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719789', 'tblTempUsageDetail_20' ) end [2025-03-20 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719789', 'tblTempVendorCDR_20' ) start [2025-03-20 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719789', 'tblTempVendorCDR_20' ) end [2025-03-20 02:30:18] Production.INFO: ProcessCDR(1,14719789,1,1,2) [2025-03-20 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719789', 'tblTempUsageDetail_20' ) start [2025-03-20 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719789', 'tblTempUsageDetail_20' ) end [2025-03-20 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:30:21] Production.INFO: ==32401== Releasing lock... [2025-03-20 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:30:21] Production.INFO: 35 MB #Memory Used# [2025-03-20 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:31:05 [end_date_ymd] => 2025-03-20 02:31:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:31:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:31:18] Production.INFO: count ==852 [2025-03-20 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:31:05 - End Time 2025-03-20 02:31:05 [2025-03-20 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719794', 'tblTempUsageDetail_20' ) start [2025-03-20 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719794', 'tblTempUsageDetail_20' ) end [2025-03-20 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719794', 'tblTempVendorCDR_20' ) start [2025-03-20 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719794', 'tblTempVendorCDR_20' ) end [2025-03-20 02:31:18] Production.INFO: ProcessCDR(1,14719794,1,1,2) [2025-03-20 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719794', 'tblTempUsageDetail_20' ) start [2025-03-20 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719794', 'tblTempUsageDetail_20' ) end [2025-03-20 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:31:21] Production.INFO: ==32490== Releasing lock... [2025-03-20 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:31:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:32:05 [end_date_ymd] => 2025-03-20 02:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:32:17] Production.INFO: count ==849 [2025-03-20 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:32:05 - End Time 2025-03-20 02:32:05 [2025-03-20 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719799', 'tblTempUsageDetail_20' ) start [2025-03-20 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719799', 'tblTempUsageDetail_20' ) end [2025-03-20 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719799', 'tblTempVendorCDR_20' ) start [2025-03-20 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719799', 'tblTempVendorCDR_20' ) end [2025-03-20 02:32:18] Production.INFO: ProcessCDR(1,14719799,1,1,2) [2025-03-20 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719799', 'tblTempUsageDetail_20' ) start [2025-03-20 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719799', 'tblTempUsageDetail_20' ) end [2025-03-20 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:32:21] Production.INFO: ==32580== Releasing lock... [2025-03-20 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:32:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:33:05 [end_date_ymd] => 2025-03-20 02:33:05 [RateCDR] => 1 ) [2025-03-20 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:33:05' and `end` < '2025-03-20 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:33:18] Production.INFO: count ==847 [2025-03-20 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:33:05 - End Time 2025-03-20 02:33:05 [2025-03-20 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719804', 'tblTempUsageDetail_20' ) start [2025-03-20 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719804', 'tblTempUsageDetail_20' ) end [2025-03-20 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719804', 'tblTempVendorCDR_20' ) start [2025-03-20 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719804', 'tblTempVendorCDR_20' ) end [2025-03-20 02:33:18] Production.INFO: ProcessCDR(1,14719804,1,1,2) [2025-03-20 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719804', 'tblTempUsageDetail_20' ) start [2025-03-20 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719804', 'tblTempUsageDetail_20' ) end [2025-03-20 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:33:21] Production.INFO: ==32666== Releasing lock... [2025-03-20 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:33:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:34:05 [end_date_ymd] => 2025-03-20 02:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:34:18] Production.INFO: count ==847 [2025-03-20 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:34:05 - End Time 2025-03-20 02:34:05 [2025-03-20 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719809', 'tblTempUsageDetail_20' ) start [2025-03-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719809', 'tblTempUsageDetail_20' ) end [2025-03-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719809', 'tblTempVendorCDR_20' ) start [2025-03-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719809', 'tblTempVendorCDR_20' ) end [2025-03-20 02:34:18] Production.INFO: ProcessCDR(1,14719809,1,1,2) [2025-03-20 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719809', 'tblTempUsageDetail_20' ) start [2025-03-20 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719809', 'tblTempUsageDetail_20' ) end [2025-03-20 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:34:22] Production.INFO: ==32759== Releasing lock... [2025-03-20 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:34:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:35:06 [end_date_ymd] => 2025-03-20 02:35:06 [RateCDR] => 1 ) [2025-03-20 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:35:06' and `end` < '2025-03-20 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:35:18] Production.INFO: count ==847 [2025-03-20 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:35:06 - End Time 2025-03-20 02:35:06 [2025-03-20 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719814', 'tblTempUsageDetail_20' ) start [2025-03-20 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719814', 'tblTempUsageDetail_20' ) end [2025-03-20 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719814', 'tblTempVendorCDR_20' ) start [2025-03-20 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719814', 'tblTempVendorCDR_20' ) end [2025-03-20 02:35:18] Production.INFO: ProcessCDR(1,14719814,1,1,2) [2025-03-20 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719814', 'tblTempUsageDetail_20' ) start [2025-03-20 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719814', 'tblTempUsageDetail_20' ) end [2025-03-20 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:35:22] Production.INFO: ==397== Releasing lock... [2025-03-20 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:35:22] Production.INFO: 34 MB #Memory Used# [2025-03-20 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:36:06 [end_date_ymd] => 2025-03-20 02:36:06 [RateCDR] => 1 ) [2025-03-20 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:36:06' and `end` < '2025-03-20 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:36:18] Production.INFO: count ==850 [2025-03-20 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-19 23:36:06 - End Time 2025-03-20 02:36:06 [2025-03-20 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719819', 'tblTempUsageDetail_20' ) start [2025-03-20 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719819', 'tblTempUsageDetail_20' ) end [2025-03-20 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719819', 'tblTempVendorCDR_20' ) start [2025-03-20 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719819', 'tblTempVendorCDR_20' ) end [2025-03-20 02:36:19] Production.INFO: ProcessCDR(1,14719819,1,1,2) [2025-03-20 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719819', 'tblTempUsageDetail_20' ) start [2025-03-20 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719819', 'tblTempUsageDetail_20' ) end [2025-03-20 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:36:22] Production.INFO: ==487== Releasing lock... [2025-03-20 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:36:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:37:05 [end_date_ymd] => 2025-03-20 02:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:37:17] Production.INFO: count ==849 [2025-03-20 02:37:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:37:05 - End Time 2025-03-20 02:37:05 [2025-03-20 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719824', 'tblTempUsageDetail_20' ) start [2025-03-20 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719824', 'tblTempUsageDetail_20' ) end [2025-03-20 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719824', 'tblTempVendorCDR_20' ) start [2025-03-20 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719824', 'tblTempVendorCDR_20' ) end [2025-03-20 02:37:17] Production.INFO: ProcessCDR(1,14719824,1,1,2) [2025-03-20 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719824', 'tblTempUsageDetail_20' ) start [2025-03-20 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719824', 'tblTempUsageDetail_20' ) end [2025-03-20 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:37:21] Production.INFO: ==575== Releasing lock... [2025-03-20 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:37:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:38:05 [end_date_ymd] => 2025-03-20 02:38:05 [RateCDR] => 1 ) [2025-03-20 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:38:05' and `end` < '2025-03-20 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:38:17] Production.INFO: count ==849 [2025-03-20 02:38:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:38:05 - End Time 2025-03-20 02:38:05 [2025-03-20 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719829', 'tblTempUsageDetail_20' ) start [2025-03-20 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719829', 'tblTempUsageDetail_20' ) end [2025-03-20 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719829', 'tblTempVendorCDR_20' ) start [2025-03-20 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719829', 'tblTempVendorCDR_20' ) end [2025-03-20 02:38:17] Production.INFO: ProcessCDR(1,14719829,1,1,2) [2025-03-20 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719829', 'tblTempUsageDetail_20' ) start [2025-03-20 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719829', 'tblTempUsageDetail_20' ) end [2025-03-20 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:38:21] Production.INFO: ==684== Releasing lock... [2025-03-20 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:38:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:39:05 [end_date_ymd] => 2025-03-20 02:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:39:18] Production.INFO: count ==791 [2025-03-20 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:39:05 - End Time 2025-03-20 02:39:05 [2025-03-20 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719834', 'tblTempUsageDetail_20' ) start [2025-03-20 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719834', 'tblTempUsageDetail_20' ) end [2025-03-20 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719834', 'tblTempVendorCDR_20' ) start [2025-03-20 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719834', 'tblTempVendorCDR_20' ) end [2025-03-20 02:39:18] Production.INFO: ProcessCDR(1,14719834,1,1,2) [2025-03-20 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719834', 'tblTempUsageDetail_20' ) start [2025-03-20 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719834', 'tblTempUsageDetail_20' ) end [2025-03-20 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:39:21] Production.INFO: ==785== Releasing lock... [2025-03-20 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:39:21] Production.INFO: 34 MB #Memory Used# [2025-03-20 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:40:06 [end_date_ymd] => 2025-03-20 02:40:06 [RateCDR] => 1 ) [2025-03-20 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:40:06' and `end` < '2025-03-20 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:40:18] Production.INFO: count ==715 [2025-03-20 02:40:19] Production.ERROR: pbx CDR StartTime 2025-03-19 23:40:06 - End Time 2025-03-20 02:40:06 [2025-03-20 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719840', 'tblTempUsageDetail_20' ) start [2025-03-20 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719840', 'tblTempUsageDetail_20' ) end [2025-03-20 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719840', 'tblTempVendorCDR_20' ) start [2025-03-20 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719840', 'tblTempVendorCDR_20' ) end [2025-03-20 02:40:19] Production.INFO: ProcessCDR(1,14719840,1,1,2) [2025-03-20 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719840', 'tblTempUsageDetail_20' ) start [2025-03-20 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719840', 'tblTempUsageDetail_20' ) end [2025-03-20 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:40:23] Production.INFO: ==872== Releasing lock... [2025-03-20 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:40:23] Production.INFO: 34 MB #Memory Used# [2025-03-20 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:41:06 [end_date_ymd] => 2025-03-20 02:41:06 [RateCDR] => 1 ) [2025-03-20 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:41:06' and `end` < '2025-03-20 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:41:18] Production.INFO: count ==637 [2025-03-20 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:41:06 - End Time 2025-03-20 02:41:06 [2025-03-20 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719845', 'tblTempUsageDetail_20' ) start [2025-03-20 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719845', 'tblTempUsageDetail_20' ) end [2025-03-20 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719845', 'tblTempVendorCDR_20' ) start [2025-03-20 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719845', 'tblTempVendorCDR_20' ) end [2025-03-20 02:41:18] Production.INFO: ProcessCDR(1,14719845,1,1,2) [2025-03-20 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719845', 'tblTempUsageDetail_20' ) start [2025-03-20 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719845', 'tblTempUsageDetail_20' ) end [2025-03-20 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:41:22] Production.INFO: ==968== Releasing lock... [2025-03-20 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:42:05 [end_date_ymd] => 2025-03-20 02:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:42:17] Production.INFO: count ==563 [2025-03-20 02:42:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:42:05 - End Time 2025-03-20 02:42:05 [2025-03-20 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719848', 'tblTempUsageDetail_20' ) start [2025-03-20 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719848', 'tblTempUsageDetail_20' ) end [2025-03-20 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719848', 'tblTempVendorCDR_20' ) start [2025-03-20 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719848', 'tblTempVendorCDR_20' ) end [2025-03-20 02:42:17] Production.INFO: ProcessCDR(1,14719848,1,1,2) [2025-03-20 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719848', 'tblTempUsageDetail_20' ) start [2025-03-20 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719848', 'tblTempUsageDetail_20' ) end [2025-03-20 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:42:20] Production.INFO: ==1057== Releasing lock... [2025-03-20 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:42:20] Production.INFO: 33 MB #Memory Used# [2025-03-20 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:43:05 [end_date_ymd] => 2025-03-20 02:43:05 [RateCDR] => 1 ) [2025-03-20 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:43:05' and `end` < '2025-03-20 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:43:18] Production.INFO: count ==522 [2025-03-20 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:43:05 - End Time 2025-03-20 02:43:05 [2025-03-20 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719855', 'tblTempUsageDetail_20' ) start [2025-03-20 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719855', 'tblTempUsageDetail_20' ) end [2025-03-20 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719855', 'tblTempVendorCDR_20' ) start [2025-03-20 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719855', 'tblTempVendorCDR_20' ) end [2025-03-20 02:43:18] Production.INFO: ProcessCDR(1,14719855,1,1,2) [2025-03-20 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719855', 'tblTempUsageDetail_20' ) start [2025-03-20 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719855', 'tblTempUsageDetail_20' ) end [2025-03-20 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:43:22] Production.INFO: ==1146== Releasing lock... [2025-03-20 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:43:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:44:06 [end_date_ymd] => 2025-03-20 02:44:06 [RateCDR] => 1 ) [2025-03-20 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:44:06' and `end` < '2025-03-20 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:44:18] Production.INFO: count ==455 [2025-03-20 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:44:06 - End Time 2025-03-20 02:44:06 [2025-03-20 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719860', 'tblTempUsageDetail_20' ) start [2025-03-20 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719860', 'tblTempUsageDetail_20' ) end [2025-03-20 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719860', 'tblTempVendorCDR_20' ) start [2025-03-20 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719860', 'tblTempVendorCDR_20' ) end [2025-03-20 02:44:19] Production.INFO: ProcessCDR(1,14719860,1,1,2) [2025-03-20 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719860', 'tblTempUsageDetail_20' ) start [2025-03-20 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719860', 'tblTempUsageDetail_20' ) end [2025-03-20 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:44:22] Production.INFO: ==1245== Releasing lock... [2025-03-20 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:45:06 [end_date_ymd] => 2025-03-20 02:45:06 [RateCDR] => 1 ) [2025-03-20 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:45:06' and `end` < '2025-03-20 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:45:18] Production.INFO: count ==450 [2025-03-20 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:45:06 - End Time 2025-03-20 02:45:06 [2025-03-20 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719865', 'tblTempUsageDetail_20' ) start [2025-03-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719865', 'tblTempUsageDetail_20' ) end [2025-03-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719865', 'tblTempVendorCDR_20' ) start [2025-03-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719865', 'tblTempVendorCDR_20' ) end [2025-03-20 02:45:18] Production.INFO: ProcessCDR(1,14719865,1,1,2) [2025-03-20 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719865', 'tblTempUsageDetail_20' ) start [2025-03-20 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719865', 'tblTempUsageDetail_20' ) end [2025-03-20 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:45:22] Production.INFO: ==1390== Releasing lock... [2025-03-20 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:45:22] Production.INFO: 32 MB #Memory Used# [2025-03-20 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:46:06 [end_date_ymd] => 2025-03-20 02:46:06 [RateCDR] => 1 ) [2025-03-20 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:46:06' and `end` < '2025-03-20 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:46:18] Production.INFO: count ==462 [2025-03-20 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:46:06 - End Time 2025-03-20 02:46:06 [2025-03-20 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719870', 'tblTempUsageDetail_20' ) start [2025-03-20 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719870', 'tblTempUsageDetail_20' ) end [2025-03-20 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719870', 'tblTempVendorCDR_20' ) start [2025-03-20 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719870', 'tblTempVendorCDR_20' ) end [2025-03-20 02:46:18] Production.INFO: ProcessCDR(1,14719870,1,1,2) [2025-03-20 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719870', 'tblTempUsageDetail_20' ) start [2025-03-20 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719870', 'tblTempUsageDetail_20' ) end [2025-03-20 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:46:22] Production.INFO: ==1490== Releasing lock... [2025-03-20 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:46:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:47:05 [end_date_ymd] => 2025-03-20 02:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:47:17] Production.INFO: count ==472 [2025-03-20 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:47:05 - End Time 2025-03-20 02:47:05 [2025-03-20 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719875', 'tblTempUsageDetail_20' ) start [2025-03-20 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719875', 'tblTempUsageDetail_20' ) end [2025-03-20 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719875', 'tblTempVendorCDR_20' ) start [2025-03-20 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719875', 'tblTempVendorCDR_20' ) end [2025-03-20 02:47:18] Production.INFO: ProcessCDR(1,14719875,1,1,2) [2025-03-20 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719875', 'tblTempUsageDetail_20' ) start [2025-03-20 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719875', 'tblTempUsageDetail_20' ) end [2025-03-20 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:47:22] Production.INFO: ==1627== Releasing lock... [2025-03-20 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:48:06 [end_date_ymd] => 2025-03-20 02:48:06 [RateCDR] => 1 ) [2025-03-20 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:48:06' and `end` < '2025-03-20 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:48:18] Production.INFO: count ==476 [2025-03-20 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:48:06 - End Time 2025-03-20 02:48:06 [2025-03-20 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719880', 'tblTempUsageDetail_20' ) start [2025-03-20 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719880', 'tblTempUsageDetail_20' ) end [2025-03-20 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719880', 'tblTempVendorCDR_20' ) start [2025-03-20 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719880', 'tblTempVendorCDR_20' ) end [2025-03-20 02:48:18] Production.INFO: ProcessCDR(1,14719880,1,1,2) [2025-03-20 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719880', 'tblTempUsageDetail_20' ) start [2025-03-20 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719880', 'tblTempUsageDetail_20' ) end [2025-03-20 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:48:22] Production.INFO: ==1728== Releasing lock... [2025-03-20 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:49:05 [end_date_ymd] => 2025-03-20 02:49:05 [RateCDR] => 1 ) [2025-03-20 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:49:05' and `end` < '2025-03-20 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:49:17] Production.INFO: count ==484 [2025-03-20 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:49:05 - End Time 2025-03-20 02:49:05 [2025-03-20 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719885', 'tblTempUsageDetail_20' ) start [2025-03-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719885', 'tblTempUsageDetail_20' ) end [2025-03-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719885', 'tblTempVendorCDR_20' ) start [2025-03-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719885', 'tblTempVendorCDR_20' ) end [2025-03-20 02:49:18] Production.INFO: ProcessCDR(1,14719885,1,1,2) [2025-03-20 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719885', 'tblTempUsageDetail_20' ) start [2025-03-20 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719885', 'tblTempUsageDetail_20' ) end [2025-03-20 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:49:22] Production.INFO: ==1837== Releasing lock... [2025-03-20 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:50:06 [end_date_ymd] => 2025-03-20 02:50:06 [RateCDR] => 1 ) [2025-03-20 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:50:06' and `end` < '2025-03-20 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:50:18] Production.INFO: count ==500 [2025-03-20 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-19 23:50:06 - End Time 2025-03-20 02:50:06 [2025-03-20 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719891', 'tblTempUsageDetail_20' ) start [2025-03-20 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719891', 'tblTempUsageDetail_20' ) end [2025-03-20 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719891', 'tblTempVendorCDR_20' ) start [2025-03-20 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719891', 'tblTempVendorCDR_20' ) end [2025-03-20 02:50:19] Production.INFO: ProcessCDR(1,14719891,1,1,2) [2025-03-20 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719891', 'tblTempUsageDetail_20' ) start [2025-03-20 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719891', 'tblTempUsageDetail_20' ) end [2025-03-20 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:50:24] Production.INFO: ==1936== Releasing lock... [2025-03-20 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:50:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:51:05 [end_date_ymd] => 2025-03-20 02:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:51:05' and `end` < '2025-03-20 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:51:17] Production.INFO: count ==516 [2025-03-20 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:51:05 - End Time 2025-03-20 02:51:05 [2025-03-20 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719896', 'tblTempUsageDetail_20' ) start [2025-03-20 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719896', 'tblTempUsageDetail_20' ) end [2025-03-20 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719896', 'tblTempVendorCDR_20' ) start [2025-03-20 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719896', 'tblTempVendorCDR_20' ) end [2025-03-20 02:51:18] Production.INFO: ProcessCDR(1,14719896,1,1,2) [2025-03-20 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719896', 'tblTempUsageDetail_20' ) start [2025-03-20 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719896', 'tblTempUsageDetail_20' ) end [2025-03-20 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:51:22] Production.INFO: ==2036== Releasing lock... [2025-03-20 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:52:06 [end_date_ymd] => 2025-03-20 02:52:06 [RateCDR] => 1 ) [2025-03-20 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:52:06' and `end` < '2025-03-20 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:52:18] Production.INFO: count ==524 [2025-03-20 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:52:06 - End Time 2025-03-20 02:52:06 [2025-03-20 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719901', 'tblTempUsageDetail_20' ) start [2025-03-20 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719901', 'tblTempUsageDetail_20' ) end [2025-03-20 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719901', 'tblTempVendorCDR_20' ) start [2025-03-20 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719901', 'tblTempVendorCDR_20' ) end [2025-03-20 02:52:19] Production.INFO: ProcessCDR(1,14719901,1,1,2) [2025-03-20 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719901', 'tblTempUsageDetail_20' ) start [2025-03-20 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719901', 'tblTempUsageDetail_20' ) end [2025-03-20 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:52:23] Production.INFO: ==2131== Releasing lock... [2025-03-20 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:52:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:53:06 [end_date_ymd] => 2025-03-20 02:53:06 [RateCDR] => 1 ) [2025-03-20 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:53:06' and `end` < '2025-03-20 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:53:18] Production.INFO: count ==532 [2025-03-20 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:53:06 - End Time 2025-03-20 02:53:06 [2025-03-20 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719906', 'tblTempUsageDetail_20' ) start [2025-03-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719906', 'tblTempUsageDetail_20' ) end [2025-03-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719906', 'tblTempVendorCDR_20' ) start [2025-03-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719906', 'tblTempVendorCDR_20' ) end [2025-03-20 02:53:18] Production.INFO: ProcessCDR(1,14719906,1,1,2) [2025-03-20 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719906', 'tblTempUsageDetail_20' ) start [2025-03-20 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719906', 'tblTempUsageDetail_20' ) end [2025-03-20 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:53:22] Production.INFO: ==2234== Releasing lock... [2025-03-20 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:54:06 [end_date_ymd] => 2025-03-20 02:54:06 [RateCDR] => 1 ) [2025-03-20 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:54:06' and `end` < '2025-03-20 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:54:18] Production.INFO: count ==554 [2025-03-20 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:54:06 - End Time 2025-03-20 02:54:06 [2025-03-20 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719911', 'tblTempUsageDetail_20' ) start [2025-03-20 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719911', 'tblTempUsageDetail_20' ) end [2025-03-20 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719911', 'tblTempVendorCDR_20' ) start [2025-03-20 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719911', 'tblTempVendorCDR_20' ) end [2025-03-20 02:54:18] Production.INFO: ProcessCDR(1,14719911,1,1,2) [2025-03-20 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719911', 'tblTempUsageDetail_20' ) start [2025-03-20 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719911', 'tblTempUsageDetail_20' ) end [2025-03-20 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:54:22] Production.INFO: ==2336== Releasing lock... [2025-03-20 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:54:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:55:06 [end_date_ymd] => 2025-03-20 02:55:06 [RateCDR] => 1 ) [2025-03-20 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:55:06' and `end` < '2025-03-20 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:55:18] Production.INFO: count ==554 [2025-03-20 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:55:06 - End Time 2025-03-20 02:55:06 [2025-03-20 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719916', 'tblTempUsageDetail_20' ) start [2025-03-20 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719916', 'tblTempUsageDetail_20' ) end [2025-03-20 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719916', 'tblTempVendorCDR_20' ) start [2025-03-20 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719916', 'tblTempVendorCDR_20' ) end [2025-03-20 02:55:18] Production.INFO: ProcessCDR(1,14719916,1,1,2) [2025-03-20 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719916', 'tblTempUsageDetail_20' ) start [2025-03-20 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719916', 'tblTempUsageDetail_20' ) end [2025-03-20 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:55:22] Production.INFO: ==2432== Releasing lock... [2025-03-20 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:55:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:56:06 [end_date_ymd] => 2025-03-20 02:56:06 [RateCDR] => 1 ) [2025-03-20 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:56:06' and `end` < '2025-03-20 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:56:18] Production.INFO: count ==559 [2025-03-20 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:56:06 - End Time 2025-03-20 02:56:06 [2025-03-20 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719921', 'tblTempUsageDetail_20' ) start [2025-03-20 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719921', 'tblTempUsageDetail_20' ) end [2025-03-20 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719921', 'tblTempVendorCDR_20' ) start [2025-03-20 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719921', 'tblTempVendorCDR_20' ) end [2025-03-20 02:56:18] Production.INFO: ProcessCDR(1,14719921,1,1,2) [2025-03-20 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719921', 'tblTempUsageDetail_20' ) start [2025-03-20 02:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719921', 'tblTempUsageDetail_20' ) end [2025-03-20 02:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:56:24] Production.INFO: ==2533== Releasing lock... [2025-03-20 02:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:56:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:57:05 [end_date_ymd] => 2025-03-20 02:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:57:17] Production.INFO: count ==567 [2025-03-20 02:57:17] Production.ERROR: pbx CDR StartTime 2025-03-19 23:57:05 - End Time 2025-03-20 02:57:05 [2025-03-20 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719926', 'tblTempUsageDetail_20' ) start [2025-03-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719926', 'tblTempUsageDetail_20' ) end [2025-03-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719926', 'tblTempVendorCDR_20' ) start [2025-03-20 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719926', 'tblTempVendorCDR_20' ) end [2025-03-20 02:57:18] Production.INFO: ProcessCDR(1,14719926,1,1,2) [2025-03-20 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719926', 'tblTempUsageDetail_20' ) start [2025-03-20 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719926', 'tblTempUsageDetail_20' ) end [2025-03-20 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:57:22] Production.INFO: ==2633== Releasing lock... [2025-03-20 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:57:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:58:06 [end_date_ymd] => 2025-03-20 02:58:06 [RateCDR] => 1 ) [2025-03-20 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 23:58:06' and `end` < '2025-03-20 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 02:58:18] Production.INFO: count ==575 [2025-03-20 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:58:06 - End Time 2025-03-20 02:58:06 [2025-03-20 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719931', 'tblTempUsageDetail_20' ) start [2025-03-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719931', 'tblTempUsageDetail_20' ) end [2025-03-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719931', 'tblTempVendorCDR_20' ) start [2025-03-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719931', 'tblTempVendorCDR_20' ) end [2025-03-20 02:58:18] Production.INFO: ProcessCDR(1,14719931,1,1,2) [2025-03-20 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719931', 'tblTempUsageDetail_20' ) start [2025-03-20 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719931', 'tblTempUsageDetail_20' ) end [2025-03-20 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:58:22] Production.INFO: ==2739== Releasing lock... [2025-03-20 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:58:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 23:59:05 [end_date_ymd] => 2025-03-20 02:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-19 23:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 02:59:18] Production.INFO: count ==577 [2025-03-20 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 23:59:05 - End Time 2025-03-20 02:59:05 [2025-03-20 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719936', 'tblTempUsageDetail_20' ) start [2025-03-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719936', 'tblTempUsageDetail_20' ) end [2025-03-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719936', 'tblTempVendorCDR_20' ) start [2025-03-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719936', 'tblTempVendorCDR_20' ) end [2025-03-20 02:59:18] Production.INFO: ProcessCDR(1,14719936,1,1,2) [2025-03-20 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719936', 'tblTempUsageDetail_20' ) start [2025-03-20 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719936', 'tblTempUsageDetail_20' ) end [2025-03-20 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 02:59:22] Production.INFO: ==2840== Releasing lock... [2025-03-20 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 02:59:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:00:07 [end_date_ymd] => 2025-03-20 03:00:07 [RateCDR] => 1 ) [2025-03-20 03:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:00:07' and `end` < '2025-03-20 03:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:00:19] Production.INFO: count ==585 [2025-03-20 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 00:00:07 - End Time 2025-03-20 03:00:07 [2025-03-20 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719942', 'tblTempUsageDetail_20' ) start [2025-03-20 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719942', 'tblTempUsageDetail_20' ) end [2025-03-20 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719942', 'tblTempVendorCDR_20' ) start [2025-03-20 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719942', 'tblTempVendorCDR_20' ) end [2025-03-20 03:00:19] Production.INFO: ProcessCDR(1,14719942,1,1,2) [2025-03-20 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719942', 'tblTempUsageDetail_20' ) start [2025-03-20 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719942', 'tblTempUsageDetail_20' ) end [2025-03-20 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:00:23] Production.INFO: ==2930== Releasing lock... [2025-03-20 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:00:23] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:01:05 [end_date_ymd] => 2025-03-20 03:01:05 [RateCDR] => 1 ) [2025-03-20 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:01:05' and `end` < '2025-03-20 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:01:17] Production.INFO: count ==593 [2025-03-20 03:01:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:01:05 - End Time 2025-03-20 03:01:05 [2025-03-20 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719947', 'tblTempUsageDetail_20' ) start [2025-03-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719947', 'tblTempUsageDetail_20' ) end [2025-03-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719947', 'tblTempVendorCDR_20' ) start [2025-03-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719947', 'tblTempVendorCDR_20' ) end [2025-03-20 03:01:17] Production.INFO: ProcessCDR(1,14719947,1,1,2) [2025-03-20 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719947', 'tblTempUsageDetail_20' ) start [2025-03-20 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719947', 'tblTempUsageDetail_20' ) end [2025-03-20 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:01:21] Production.INFO: ==3076== Releasing lock... [2025-03-20 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:01:21] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:02:06 [end_date_ymd] => 2025-03-20 03:02:06 [RateCDR] => 1 ) [2025-03-20 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:02:06' and `end` < '2025-03-20 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:02:18] Production.INFO: count ==594 [2025-03-20 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:02:06 - End Time 2025-03-20 03:02:06 [2025-03-20 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719952', 'tblTempUsageDetail_20' ) start [2025-03-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719952', 'tblTempUsageDetail_20' ) end [2025-03-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719952', 'tblTempVendorCDR_20' ) start [2025-03-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719952', 'tblTempVendorCDR_20' ) end [2025-03-20 03:02:18] Production.INFO: ProcessCDR(1,14719952,1,1,2) [2025-03-20 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719952', 'tblTempUsageDetail_20' ) start [2025-03-20 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719952', 'tblTempUsageDetail_20' ) end [2025-03-20 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:02:22] Production.INFO: ==3241== Releasing lock... [2025-03-20 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:02:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:03:05 [end_date_ymd] => 2025-03-20 03:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:03:17] Production.INFO: count ==601 [2025-03-20 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:03:05 - End Time 2025-03-20 03:03:05 [2025-03-20 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719957', 'tblTempUsageDetail_20' ) start [2025-03-20 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719957', 'tblTempUsageDetail_20' ) end [2025-03-20 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719957', 'tblTempVendorCDR_20' ) start [2025-03-20 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719957', 'tblTempVendorCDR_20' ) end [2025-03-20 03:03:17] Production.INFO: ProcessCDR(1,14719957,1,1,2) [2025-03-20 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719957', 'tblTempUsageDetail_20' ) start [2025-03-20 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719957', 'tblTempUsageDetail_20' ) end [2025-03-20 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:03:21] Production.INFO: ==3325== Releasing lock... [2025-03-20 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:04:06 [end_date_ymd] => 2025-03-20 03:04:06 [RateCDR] => 1 ) [2025-03-20 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:04:06' and `end` < '2025-03-20 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:04:18] Production.INFO: count ==606 [2025-03-20 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:04:06 - End Time 2025-03-20 03:04:06 [2025-03-20 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719962', 'tblTempUsageDetail_20' ) start [2025-03-20 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719962', 'tblTempUsageDetail_20' ) end [2025-03-20 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719962', 'tblTempVendorCDR_20' ) start [2025-03-20 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719962', 'tblTempVendorCDR_20' ) end [2025-03-20 03:04:18] Production.INFO: ProcessCDR(1,14719962,1,1,2) [2025-03-20 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719962', 'tblTempUsageDetail_20' ) start [2025-03-20 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719962', 'tblTempUsageDetail_20' ) end [2025-03-20 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:04:22] Production.INFO: ==3413== Releasing lock... [2025-03-20 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:05:05 [end_date_ymd] => 2025-03-20 03:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:05:17] Production.INFO: count ==610 [2025-03-20 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:05:05 - End Time 2025-03-20 03:05:05 [2025-03-20 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719967', 'tblTempUsageDetail_20' ) start [2025-03-20 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719967', 'tblTempUsageDetail_20' ) end [2025-03-20 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719967', 'tblTempVendorCDR_20' ) start [2025-03-20 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719967', 'tblTempVendorCDR_20' ) end [2025-03-20 03:05:18] Production.INFO: ProcessCDR(1,14719967,1,1,2) [2025-03-20 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719967', 'tblTempUsageDetail_20' ) start [2025-03-20 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719967', 'tblTempUsageDetail_20' ) end [2025-03-20 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:05:22] Production.INFO: ==3501== Releasing lock... [2025-03-20 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:05:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:06:05 [end_date_ymd] => 2025-03-20 03:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:06:17] Production.INFO: count ==618 [2025-03-20 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:06:05 - End Time 2025-03-20 03:06:05 [2025-03-20 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719972', 'tblTempUsageDetail_20' ) start [2025-03-20 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719972', 'tblTempUsageDetail_20' ) end [2025-03-20 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719972', 'tblTempVendorCDR_20' ) start [2025-03-20 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719972', 'tblTempVendorCDR_20' ) end [2025-03-20 03:06:18] Production.INFO: ProcessCDR(1,14719972,1,1,2) [2025-03-20 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719972', 'tblTempUsageDetail_20' ) start [2025-03-20 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719972', 'tblTempUsageDetail_20' ) end [2025-03-20 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:06:21] Production.INFO: ==3672== Releasing lock... [2025-03-20 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:07:05 [end_date_ymd] => 2025-03-20 03:07:05 [RateCDR] => 1 ) [2025-03-20 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:07:05' and `end` < '2025-03-20 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:07:17] Production.INFO: count ==626 [2025-03-20 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:07:05 - End Time 2025-03-20 03:07:05 [2025-03-20 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719977', 'tblTempUsageDetail_20' ) start [2025-03-20 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719977', 'tblTempUsageDetail_20' ) end [2025-03-20 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719977', 'tblTempVendorCDR_20' ) start [2025-03-20 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719977', 'tblTempVendorCDR_20' ) end [2025-03-20 03:07:17] Production.INFO: ProcessCDR(1,14719977,1,1,2) [2025-03-20 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719977', 'tblTempUsageDetail_20' ) start [2025-03-20 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719977', 'tblTempUsageDetail_20' ) end [2025-03-20 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:07:21] Production.INFO: ==3759== Releasing lock... [2025-03-20 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:08:06 [end_date_ymd] => 2025-03-20 03:08:06 [RateCDR] => 1 ) [2025-03-20 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:08:06' and `end` < '2025-03-20 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:08:18] Production.INFO: count ==627 [2025-03-20 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:08:06 - End Time 2025-03-20 03:08:06 [2025-03-20 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719982', 'tblTempUsageDetail_20' ) start [2025-03-20 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719982', 'tblTempUsageDetail_20' ) end [2025-03-20 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719982', 'tblTempVendorCDR_20' ) start [2025-03-20 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719982', 'tblTempVendorCDR_20' ) end [2025-03-20 03:08:18] Production.INFO: ProcessCDR(1,14719982,1,1,2) [2025-03-20 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719982', 'tblTempUsageDetail_20' ) start [2025-03-20 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719982', 'tblTempUsageDetail_20' ) end [2025-03-20 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:08:22] Production.INFO: ==3853== Releasing lock... [2025-03-20 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:08:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:09:06 [end_date_ymd] => 2025-03-20 03:09:06 [RateCDR] => 1 ) [2025-03-20 03:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:09:06' and `end` < '2025-03-20 03:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:09:18] Production.INFO: count ==653 [2025-03-20 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:09:06 - End Time 2025-03-20 03:09:06 [2025-03-20 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719987', 'tblTempUsageDetail_20' ) start [2025-03-20 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719987', 'tblTempUsageDetail_20' ) end [2025-03-20 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719987', 'tblTempVendorCDR_20' ) start [2025-03-20 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719987', 'tblTempVendorCDR_20' ) end [2025-03-20 03:09:18] Production.INFO: ProcessCDR(1,14719987,1,1,2) [2025-03-20 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719987', 'tblTempUsageDetail_20' ) start [2025-03-20 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719987', 'tblTempUsageDetail_20' ) end [2025-03-20 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:09:22] Production.INFO: ==4017== Releasing lock... [2025-03-20 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:09:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:10:06 [end_date_ymd] => 2025-03-20 03:10:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:10:06' and `end` < '2025-03-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 ,'') [2025-03-20 03:10:19] Production.INFO: count ==638 [2025-03-20 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-20 00:10:06 - End Time 2025-03-20 03:10:06 [2025-03-20 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719992', 'tblTempUsageDetail_20' ) start [2025-03-20 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719992', 'tblTempUsageDetail_20' ) end [2025-03-20 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719992', 'tblTempVendorCDR_20' ) start [2025-03-20 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719992', 'tblTempVendorCDR_20' ) end [2025-03-20 03:10:19] Production.INFO: ProcessCDR(1,14719992,1,1,2) [2025-03-20 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719992', 'tblTempUsageDetail_20' ) start [2025-03-20 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719992', 'tblTempUsageDetail_20' ) end [2025-03-20 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:10:22] Production.INFO: ==4108== Releasing lock... [2025-03-20 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:10:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:11:05 [end_date_ymd] => 2025-03-20 03:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:11:17] Production.INFO: count ==632 [2025-03-20 03:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:11:05 - End Time 2025-03-20 03:11:05 [2025-03-20 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719998', 'tblTempUsageDetail_20' ) start [2025-03-20 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719998', 'tblTempUsageDetail_20' ) end [2025-03-20 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719998', 'tblTempVendorCDR_20' ) start [2025-03-20 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719998', 'tblTempVendorCDR_20' ) end [2025-03-20 03:11:18] Production.INFO: ProcessCDR(1,14719998,1,1,2) [2025-03-20 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719998', 'tblTempUsageDetail_20' ) start [2025-03-20 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719998', 'tblTempUsageDetail_20' ) end [2025-03-20 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:11:21] Production.INFO: ==4207== Releasing lock... [2025-03-20 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:11:21] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:12:05 [end_date_ymd] => 2025-03-20 03:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:12:17] Production.INFO: count ==632 [2025-03-20 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:12:05 - End Time 2025-03-20 03:12:05 [2025-03-20 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720003', 'tblTempUsageDetail_20' ) start [2025-03-20 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720003', 'tblTempUsageDetail_20' ) end [2025-03-20 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720003', 'tblTempVendorCDR_20' ) start [2025-03-20 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720003', 'tblTempVendorCDR_20' ) end [2025-03-20 03:12:18] Production.INFO: ProcessCDR(1,14720003,1,1,2) [2025-03-20 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720003', 'tblTempUsageDetail_20' ) start [2025-03-20 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720003', 'tblTempUsageDetail_20' ) end [2025-03-20 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:12:21] Production.INFO: ==4294== Releasing lock... [2025-03-20 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:12:21] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:13:06 [end_date_ymd] => 2025-03-20 03:13:06 [RateCDR] => 1 ) [2025-03-20 03:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:13:06' and `end` < '2025-03-20 03:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:13:18] Production.INFO: count ==631 [2025-03-20 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:13:06 - End Time 2025-03-20 03:13:06 [2025-03-20 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720008', 'tblTempUsageDetail_20' ) start [2025-03-20 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720008', 'tblTempUsageDetail_20' ) end [2025-03-20 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720008', 'tblTempVendorCDR_20' ) start [2025-03-20 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720008', 'tblTempVendorCDR_20' ) end [2025-03-20 03:13:18] Production.INFO: ProcessCDR(1,14720008,1,1,2) [2025-03-20 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720008', 'tblTempUsageDetail_20' ) start [2025-03-20 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720008', 'tblTempUsageDetail_20' ) end [2025-03-20 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:13:22] Production.INFO: ==4463== Releasing lock... [2025-03-20 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:14:05 [end_date_ymd] => 2025-03-20 03:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:14:17] Production.INFO: count ==631 [2025-03-20 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:14:05 - End Time 2025-03-20 03:14:05 [2025-03-20 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720013', 'tblTempUsageDetail_20' ) start [2025-03-20 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720013', 'tblTempUsageDetail_20' ) end [2025-03-20 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720013', 'tblTempVendorCDR_20' ) start [2025-03-20 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720013', 'tblTempVendorCDR_20' ) end [2025-03-20 03:14:18] Production.INFO: ProcessCDR(1,14720013,1,1,2) [2025-03-20 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720013', 'tblTempUsageDetail_20' ) start [2025-03-20 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720013', 'tblTempUsageDetail_20' ) end [2025-03-20 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:14:21] Production.INFO: ==4546== Releasing lock... [2025-03-20 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:15:05 [end_date_ymd] => 2025-03-20 03:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:15:17] Production.INFO: count ==631 [2025-03-20 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:15:05 - End Time 2025-03-20 03:15:05 [2025-03-20 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720018', 'tblTempUsageDetail_20' ) start [2025-03-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720018', 'tblTempUsageDetail_20' ) end [2025-03-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720018', 'tblTempVendorCDR_20' ) start [2025-03-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720018', 'tblTempVendorCDR_20' ) end [2025-03-20 03:15:17] Production.INFO: ProcessCDR(1,14720018,1,1,2) [2025-03-20 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720018', 'tblTempUsageDetail_20' ) start [2025-03-20 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720018', 'tblTempUsageDetail_20' ) end [2025-03-20 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:15:20] Production.INFO: ==4634== Releasing lock... [2025-03-20 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:15:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:16:05 [end_date_ymd] => 2025-03-20 03:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:16:17] Production.INFO: count ==632 [2025-03-20 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:16:05 - End Time 2025-03-20 03:16:05 [2025-03-20 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720023', 'tblTempUsageDetail_20' ) start [2025-03-20 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720023', 'tblTempUsageDetail_20' ) end [2025-03-20 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720023', 'tblTempVendorCDR_20' ) start [2025-03-20 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720023', 'tblTempVendorCDR_20' ) end [2025-03-20 03:16:17] Production.INFO: ProcessCDR(1,14720023,1,1,2) [2025-03-20 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720023', 'tblTempUsageDetail_20' ) start [2025-03-20 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720023', 'tblTempUsageDetail_20' ) end [2025-03-20 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:16:22] Production.INFO: ==4712== Releasing lock... [2025-03-20 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:16:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:17:04 [end_date_ymd] => 2025-03-20 03:17:04 [RateCDR] => 1 ) [2025-03-20 03:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:17:04' and `end` < '2025-03-20 03:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:17:16] Production.INFO: count ==629 [2025-03-20 03:17:16] Production.ERROR: pbx CDR StartTime 2025-03-20 00:17:04 - End Time 2025-03-20 03:17:04 [2025-03-20 03:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720028', 'tblTempUsageDetail_20' ) start [2025-03-20 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720028', 'tblTempUsageDetail_20' ) end [2025-03-20 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720028', 'tblTempVendorCDR_20' ) start [2025-03-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720028', 'tblTempVendorCDR_20' ) end [2025-03-20 03:17:17] Production.INFO: ProcessCDR(1,14720028,1,1,2) [2025-03-20 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720028', 'tblTempUsageDetail_20' ) start [2025-03-20 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720028', 'tblTempUsageDetail_20' ) end [2025-03-20 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:17:20] Production.INFO: ==4864== Releasing lock... [2025-03-20 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:17:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:18:04 [end_date_ymd] => 2025-03-20 03:18:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:18:04' and `end` < '2025-03-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 ,'') [2025-03-20 03:18:17] Production.INFO: count ==627 [2025-03-20 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:18:04 - End Time 2025-03-20 03:18:04 [2025-03-20 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720033', 'tblTempUsageDetail_20' ) start [2025-03-20 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720033', 'tblTempUsageDetail_20' ) end [2025-03-20 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720033', 'tblTempVendorCDR_20' ) start [2025-03-20 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720033', 'tblTempVendorCDR_20' ) end [2025-03-20 03:18:17] Production.INFO: ProcessCDR(1,14720033,1,1,2) [2025-03-20 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720033', 'tblTempUsageDetail_20' ) start [2025-03-20 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720033', 'tblTempUsageDetail_20' ) end [2025-03-20 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:18:20] Production.INFO: ==4975== Releasing lock... [2025-03-20 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:18:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:19:05 [end_date_ymd] => 2025-03-20 03:19:05 [RateCDR] => 1 ) [2025-03-20 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:19:05' and `end` < '2025-03-20 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:19:17] Production.INFO: count ==627 [2025-03-20 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:19:05 - End Time 2025-03-20 03:19:05 [2025-03-20 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720038', 'tblTempUsageDetail_20' ) start [2025-03-20 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720038', 'tblTempUsageDetail_20' ) end [2025-03-20 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720038', 'tblTempVendorCDR_20' ) start [2025-03-20 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720038', 'tblTempVendorCDR_20' ) end [2025-03-20 03:19:18] Production.INFO: ProcessCDR(1,14720038,1,1,2) [2025-03-20 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720038', 'tblTempUsageDetail_20' ) start [2025-03-20 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720038', 'tblTempUsageDetail_20' ) end [2025-03-20 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:19:21] Production.INFO: ==5047== Releasing lock... [2025-03-20 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:20:06 [end_date_ymd] => 2025-03-20 03:20:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:20:06' and `end` < '2025-03-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 ,'') [2025-03-20 03:20:18] Production.INFO: count ==619 [2025-03-20 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:20:06 - End Time 2025-03-20 03:20:06 [2025-03-20 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720044', 'tblTempUsageDetail_20' ) start [2025-03-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720044', 'tblTempUsageDetail_20' ) end [2025-03-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720044', 'tblTempVendorCDR_20' ) start [2025-03-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720044', 'tblTempVendorCDR_20' ) end [2025-03-20 03:20:18] Production.INFO: ProcessCDR(1,14720044,1,1,2) [2025-03-20 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720044', 'tblTempUsageDetail_20' ) start [2025-03-20 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720044', 'tblTempUsageDetail_20' ) end [2025-03-20 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:20:22] Production.INFO: ==5127== Releasing lock... [2025-03-20 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:21:06 [end_date_ymd] => 2025-03-20 03:21:06 [RateCDR] => 1 ) [2025-03-20 03:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:21:06' and `end` < '2025-03-20 03:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:21:18] Production.INFO: count ==619 [2025-03-20 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:21:06 - End Time 2025-03-20 03:21:06 [2025-03-20 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720049', 'tblTempUsageDetail_20' ) start [2025-03-20 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720049', 'tblTempUsageDetail_20' ) end [2025-03-20 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720049', 'tblTempVendorCDR_20' ) start [2025-03-20 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720049', 'tblTempVendorCDR_20' ) end [2025-03-20 03:21:18] Production.INFO: ProcessCDR(1,14720049,1,1,2) [2025-03-20 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720049', 'tblTempUsageDetail_20' ) start [2025-03-20 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720049', 'tblTempUsageDetail_20' ) end [2025-03-20 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:21:21] Production.INFO: ==5202== Releasing lock... [2025-03-20 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:22:05 [end_date_ymd] => 2025-03-20 03:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:22:17] Production.INFO: count ==619 [2025-03-20 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:22:05 - End Time 2025-03-20 03:22:05 [2025-03-20 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720054', 'tblTempUsageDetail_20' ) start [2025-03-20 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720054', 'tblTempUsageDetail_20' ) end [2025-03-20 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720054', 'tblTempVendorCDR_20' ) start [2025-03-20 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720054', 'tblTempVendorCDR_20' ) end [2025-03-20 03:22:17] Production.INFO: ProcessCDR(1,14720054,1,1,2) [2025-03-20 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720054', 'tblTempUsageDetail_20' ) start [2025-03-20 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720054', 'tblTempUsageDetail_20' ) end [2025-03-20 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:22:20] Production.INFO: ==5272== Releasing lock... [2025-03-20 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:22:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:23:06 [end_date_ymd] => 2025-03-20 03:23:06 [RateCDR] => 1 ) [2025-03-20 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:23:06' and `end` < '2025-03-20 03:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:23:18] Production.INFO: count ==626 [2025-03-20 03:23:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:23:06 - End Time 2025-03-20 03:23:06 [2025-03-20 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720059', 'tblTempUsageDetail_20' ) start [2025-03-20 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720059', 'tblTempUsageDetail_20' ) end [2025-03-20 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720059', 'tblTempVendorCDR_20' ) start [2025-03-20 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720059', 'tblTempVendorCDR_20' ) end [2025-03-20 03:23:18] Production.INFO: ProcessCDR(1,14720059,1,1,2) [2025-03-20 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720059', 'tblTempUsageDetail_20' ) start [2025-03-20 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720059', 'tblTempUsageDetail_20' ) end [2025-03-20 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:23:21] Production.INFO: ==5347== Releasing lock... [2025-03-20 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:23:21] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:24:05 [end_date_ymd] => 2025-03-20 03:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:24:17] Production.INFO: count ==631 [2025-03-20 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:24:05 - End Time 2025-03-20 03:24:05 [2025-03-20 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720064', 'tblTempUsageDetail_20' ) start [2025-03-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720064', 'tblTempUsageDetail_20' ) end [2025-03-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720064', 'tblTempVendorCDR_20' ) start [2025-03-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720064', 'tblTempVendorCDR_20' ) end [2025-03-20 03:24:17] Production.INFO: ProcessCDR(1,14720064,1,1,2) [2025-03-20 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720064', 'tblTempUsageDetail_20' ) start [2025-03-20 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720064', 'tblTempUsageDetail_20' ) end [2025-03-20 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:24:21] Production.INFO: ==5421== Releasing lock... [2025-03-20 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:25:06 [end_date_ymd] => 2025-03-20 03:25:06 [RateCDR] => 1 ) [2025-03-20 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:25:06' and `end` < '2025-03-20 03:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:25:18] Production.INFO: count ==627 [2025-03-20 03:25:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:25:06 - End Time 2025-03-20 03:25:06 [2025-03-20 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720069', 'tblTempUsageDetail_20' ) start [2025-03-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720069', 'tblTempUsageDetail_20' ) end [2025-03-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720069', 'tblTempVendorCDR_20' ) start [2025-03-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720069', 'tblTempVendorCDR_20' ) end [2025-03-20 03:25:18] Production.INFO: ProcessCDR(1,14720069,1,1,2) [2025-03-20 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720069', 'tblTempUsageDetail_20' ) start [2025-03-20 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720069', 'tblTempUsageDetail_20' ) end [2025-03-20 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:25:22] Production.INFO: ==5498== Releasing lock... [2025-03-20 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:25:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:26:05 [end_date_ymd] => 2025-03-20 03:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:26:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:26:17] Production.INFO: count ==627 [2025-03-20 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:26:05 - End Time 2025-03-20 03:26:05 [2025-03-20 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720074', 'tblTempUsageDetail_20' ) start [2025-03-20 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720074', 'tblTempUsageDetail_20' ) end [2025-03-20 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720074', 'tblTempVendorCDR_20' ) start [2025-03-20 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720074', 'tblTempVendorCDR_20' ) end [2025-03-20 03:26:17] Production.INFO: ProcessCDR(1,14720074,1,1,2) [2025-03-20 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720074', 'tblTempUsageDetail_20' ) start [2025-03-20 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720074', 'tblTempUsageDetail_20' ) end [2025-03-20 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:26:20] Production.INFO: ==5571== Releasing lock... [2025-03-20 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:26:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:27:05 [end_date_ymd] => 2025-03-20 03:27:05 [RateCDR] => 1 ) [2025-03-20 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:27:05' and `end` < '2025-03-20 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:27:17] Production.INFO: count ==628 [2025-03-20 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:27:05 - End Time 2025-03-20 03:27:05 [2025-03-20 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720079', 'tblTempUsageDetail_20' ) start [2025-03-20 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720079', 'tblTempUsageDetail_20' ) end [2025-03-20 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720079', 'tblTempVendorCDR_20' ) start [2025-03-20 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720079', 'tblTempVendorCDR_20' ) end [2025-03-20 03:27:18] Production.INFO: ProcessCDR(1,14720079,1,1,2) [2025-03-20 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720079', 'tblTempUsageDetail_20' ) start [2025-03-20 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720079', 'tblTempUsageDetail_20' ) end [2025-03-20 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:27:22] Production.INFO: ==5647== Releasing lock... [2025-03-20 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:28:05 [end_date_ymd] => 2025-03-20 03:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:28:18] Production.INFO: count ==630 [2025-03-20 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:28:05 - End Time 2025-03-20 03:28:05 [2025-03-20 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720084', 'tblTempUsageDetail_20' ) start [2025-03-20 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720084', 'tblTempUsageDetail_20' ) end [2025-03-20 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720084', 'tblTempVendorCDR_20' ) start [2025-03-20 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720084', 'tblTempVendorCDR_20' ) end [2025-03-20 03:28:18] Production.INFO: ProcessCDR(1,14720084,1,1,2) [2025-03-20 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720084', 'tblTempUsageDetail_20' ) start [2025-03-20 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720084', 'tblTempUsageDetail_20' ) end [2025-03-20 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:28:21] Production.INFO: ==5718== Releasing lock... [2025-03-20 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:29:05 [end_date_ymd] => 2025-03-20 03:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:29:17] Production.INFO: count ==624 [2025-03-20 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:29:05 - End Time 2025-03-20 03:29:05 [2025-03-20 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720089', 'tblTempUsageDetail_20' ) start [2025-03-20 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720089', 'tblTempUsageDetail_20' ) end [2025-03-20 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720089', 'tblTempVendorCDR_20' ) start [2025-03-20 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720089', 'tblTempVendorCDR_20' ) end [2025-03-20 03:29:17] Production.INFO: ProcessCDR(1,14720089,1,1,2) [2025-03-20 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720089', 'tblTempUsageDetail_20' ) start [2025-03-20 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720089', 'tblTempUsageDetail_20' ) end [2025-03-20 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:29:21] Production.INFO: ==5796== Releasing lock... [2025-03-20 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:30:07 [end_date_ymd] => 2025-03-20 03:30:07 [RateCDR] => 1 ) [2025-03-20 03:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:30:07' and `end` < '2025-03-20 03:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:30:19] Production.INFO: count ==625 [2025-03-20 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 00:30:07 - End Time 2025-03-20 03:30:07 [2025-03-20 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720095', 'tblTempUsageDetail_20' ) start [2025-03-20 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720095', 'tblTempUsageDetail_20' ) end [2025-03-20 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720095', 'tblTempVendorCDR_20' ) start [2025-03-20 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720095', 'tblTempVendorCDR_20' ) end [2025-03-20 03:30:19] Production.INFO: ProcessCDR(1,14720095,1,1,2) [2025-03-20 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720095', 'tblTempUsageDetail_20' ) start [2025-03-20 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720095', 'tblTempUsageDetail_20' ) end [2025-03-20 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:30:23] Production.INFO: ==5878== Releasing lock... [2025-03-20 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:30:23] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:31:05 [end_date_ymd] => 2025-03-20 03:31:05 [RateCDR] => 1 ) [2025-03-20 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:31:05' and `end` < '2025-03-20 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:31:17] Production.INFO: count ==620 [2025-03-20 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:31:05 - End Time 2025-03-20 03:31:05 [2025-03-20 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720100', 'tblTempUsageDetail_20' ) start [2025-03-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720100', 'tblTempUsageDetail_20' ) end [2025-03-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720100', 'tblTempVendorCDR_20' ) start [2025-03-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720100', 'tblTempVendorCDR_20' ) end [2025-03-20 03:31:18] Production.INFO: ProcessCDR(1,14720100,1,1,2) [2025-03-20 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720100', 'tblTempUsageDetail_20' ) start [2025-03-20 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720100', 'tblTempUsageDetail_20' ) end [2025-03-20 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:31:21] Production.INFO: ==5961== Releasing lock... [2025-03-20 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:31:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:32:06 [end_date_ymd] => 2025-03-20 03:32:06 [RateCDR] => 1 ) [2025-03-20 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:32:06' and `end` < '2025-03-20 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:32:18] Production.INFO: count ==620 [2025-03-20 03:32:19] Production.ERROR: pbx CDR StartTime 2025-03-20 00:32:06 - End Time 2025-03-20 03:32:06 [2025-03-20 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720105', 'tblTempUsageDetail_20' ) start [2025-03-20 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720105', 'tblTempUsageDetail_20' ) end [2025-03-20 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720105', 'tblTempVendorCDR_20' ) start [2025-03-20 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720105', 'tblTempVendorCDR_20' ) end [2025-03-20 03:32:19] Production.INFO: ProcessCDR(1,14720105,1,1,2) [2025-03-20 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720105', 'tblTempUsageDetail_20' ) start [2025-03-20 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720105', 'tblTempUsageDetail_20' ) end [2025-03-20 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:32:22] Production.INFO: ==6039== Releasing lock... [2025-03-20 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:32:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:33:05 [end_date_ymd] => 2025-03-20 03:33:05 [RateCDR] => 1 ) [2025-03-20 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:33:05' and `end` < '2025-03-20 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:33:18] Production.INFO: count ==620 [2025-03-20 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:33:05 - End Time 2025-03-20 03:33:05 [2025-03-20 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720110', 'tblTempUsageDetail_20' ) start [2025-03-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720110', 'tblTempUsageDetail_20' ) end [2025-03-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720110', 'tblTempVendorCDR_20' ) start [2025-03-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720110', 'tblTempVendorCDR_20' ) end [2025-03-20 03:33:18] Production.INFO: ProcessCDR(1,14720110,1,1,2) [2025-03-20 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720110', 'tblTempUsageDetail_20' ) start [2025-03-20 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720110', 'tblTempUsageDetail_20' ) end [2025-03-20 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:33:22] Production.INFO: ==6155== Releasing lock... [2025-03-20 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:33:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:34:05 [end_date_ymd] => 2025-03-20 03:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:34:18] Production.INFO: count ==620 [2025-03-20 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:34:05 - End Time 2025-03-20 03:34:05 [2025-03-20 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720115', 'tblTempUsageDetail_20' ) start [2025-03-20 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720115', 'tblTempUsageDetail_20' ) end [2025-03-20 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720115', 'tblTempVendorCDR_20' ) start [2025-03-20 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720115', 'tblTempVendorCDR_20' ) end [2025-03-20 03:34:18] Production.INFO: ProcessCDR(1,14720115,1,1,2) [2025-03-20 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720115', 'tblTempUsageDetail_20' ) start [2025-03-20 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720115', 'tblTempUsageDetail_20' ) end [2025-03-20 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:34:22] Production.INFO: ==6235== Releasing lock... [2025-03-20 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:34:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:35:05 [end_date_ymd] => 2025-03-20 03:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:35:17] Production.INFO: count ==620 [2025-03-20 03:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:35:05 - End Time 2025-03-20 03:35:05 [2025-03-20 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720120', 'tblTempUsageDetail_20' ) start [2025-03-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720120', 'tblTempUsageDetail_20' ) end [2025-03-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720120', 'tblTempVendorCDR_20' ) start [2025-03-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720120', 'tblTempVendorCDR_20' ) end [2025-03-20 03:35:17] Production.INFO: ProcessCDR(1,14720120,1,1,2) [2025-03-20 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720120', 'tblTempUsageDetail_20' ) start [2025-03-20 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720120', 'tblTempUsageDetail_20' ) end [2025-03-20 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:35:22] Production.INFO: ==6311== Releasing lock... [2025-03-20 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:36:05 [end_date_ymd] => 2025-03-20 03:36:05 [RateCDR] => 1 ) [2025-03-20 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:36:05' and `end` < '2025-03-20 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:36:18] Production.INFO: count ==626 [2025-03-20 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:36:05 - End Time 2025-03-20 03:36:05 [2025-03-20 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720125', 'tblTempUsageDetail_20' ) start [2025-03-20 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720125', 'tblTempUsageDetail_20' ) end [2025-03-20 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720125', 'tblTempVendorCDR_20' ) start [2025-03-20 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720125', 'tblTempVendorCDR_20' ) end [2025-03-20 03:36:18] Production.INFO: ProcessCDR(1,14720125,1,1,2) [2025-03-20 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720125', 'tblTempUsageDetail_20' ) start [2025-03-20 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720125', 'tblTempUsageDetail_20' ) end [2025-03-20 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:36:21] Production.INFO: ==6389== Releasing lock... [2025-03-20 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:37:05 [end_date_ymd] => 2025-03-20 03:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:37:17] Production.INFO: count ==623 [2025-03-20 03:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:37:05 - End Time 2025-03-20 03:37:05 [2025-03-20 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720130', 'tblTempUsageDetail_20' ) start [2025-03-20 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720130', 'tblTempUsageDetail_20' ) end [2025-03-20 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720130', 'tblTempVendorCDR_20' ) start [2025-03-20 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720130', 'tblTempVendorCDR_20' ) end [2025-03-20 03:37:17] Production.INFO: ProcessCDR(1,14720130,1,1,2) [2025-03-20 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720130', 'tblTempUsageDetail_20' ) start [2025-03-20 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720130', 'tblTempUsageDetail_20' ) end [2025-03-20 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:37:23] Production.INFO: ==6474== Releasing lock... [2025-03-20 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:37:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:38:06 [end_date_ymd] => 2025-03-20 03:38:06 [RateCDR] => 1 ) [2025-03-20 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:38:06' and `end` < '2025-03-20 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:38:18] Production.INFO: count ==618 [2025-03-20 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:38:06 - End Time 2025-03-20 03:38:06 [2025-03-20 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720135', 'tblTempUsageDetail_20' ) start [2025-03-20 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720135', 'tblTempUsageDetail_20' ) end [2025-03-20 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720135', 'tblTempVendorCDR_20' ) start [2025-03-20 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720135', 'tblTempVendorCDR_20' ) end [2025-03-20 03:38:18] Production.INFO: ProcessCDR(1,14720135,1,1,2) [2025-03-20 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720135', 'tblTempUsageDetail_20' ) start [2025-03-20 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720135', 'tblTempUsageDetail_20' ) end [2025-03-20 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:38:22] Production.INFO: ==6548== Releasing lock... [2025-03-20 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:39:05 [end_date_ymd] => 2025-03-20 03:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:39:17] Production.INFO: count ==612 [2025-03-20 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:39:05 - End Time 2025-03-20 03:39:05 [2025-03-20 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720140', 'tblTempUsageDetail_20' ) start [2025-03-20 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720140', 'tblTempUsageDetail_20' ) end [2025-03-20 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720140', 'tblTempVendorCDR_20' ) start [2025-03-20 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720140', 'tblTempVendorCDR_20' ) end [2025-03-20 03:39:17] Production.INFO: ProcessCDR(1,14720140,1,1,2) [2025-03-20 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720140', 'tblTempUsageDetail_20' ) start [2025-03-20 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720140', 'tblTempUsageDetail_20' ) end [2025-03-20 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:39:21] Production.INFO: ==6632== Releasing lock... [2025-03-20 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:40:07 [end_date_ymd] => 2025-03-20 03:40:07 [RateCDR] => 1 ) [2025-03-20 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:40:07' and `end` < '2025-03-20 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:40:19] Production.INFO: count ==598 [2025-03-20 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-20 00:40:07 - End Time 2025-03-20 03:40:07 [2025-03-20 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720146', 'tblTempUsageDetail_20' ) start [2025-03-20 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720146', 'tblTempUsageDetail_20' ) end [2025-03-20 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720146', 'tblTempVendorCDR_20' ) start [2025-03-20 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720146', 'tblTempVendorCDR_20' ) end [2025-03-20 03:40:19] Production.INFO: ProcessCDR(1,14720146,1,1,2) [2025-03-20 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720146', 'tblTempUsageDetail_20' ) start [2025-03-20 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720146', 'tblTempUsageDetail_20' ) end [2025-03-20 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:40:23] Production.INFO: ==6713== Releasing lock... [2025-03-20 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:40:23] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:41:05 [end_date_ymd] => 2025-03-20 03:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:41:17] Production.INFO: count ==594 [2025-03-20 03:41:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:41:05 - End Time 2025-03-20 03:41:05 [2025-03-20 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720151', 'tblTempUsageDetail_20' ) start [2025-03-20 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720151', 'tblTempUsageDetail_20' ) end [2025-03-20 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720151', 'tblTempVendorCDR_20' ) start [2025-03-20 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720151', 'tblTempVendorCDR_20' ) end [2025-03-20 03:41:17] Production.INFO: ProcessCDR(1,14720151,1,1,2) [2025-03-20 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720151', 'tblTempUsageDetail_20' ) start [2025-03-20 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720151', 'tblTempUsageDetail_20' ) end [2025-03-20 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:41:21] Production.INFO: ==6791== Releasing lock... [2025-03-20 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:42:06 [end_date_ymd] => 2025-03-20 03:42:06 [RateCDR] => 1 ) [2025-03-20 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:42:06' and `end` < '2025-03-20 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:42:18] Production.INFO: count ==592 [2025-03-20 03:42:19] Production.ERROR: pbx CDR StartTime 2025-03-20 00:42:06 - End Time 2025-03-20 03:42:06 [2025-03-20 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720156', 'tblTempUsageDetail_20' ) start [2025-03-20 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720156', 'tblTempUsageDetail_20' ) end [2025-03-20 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720156', 'tblTempVendorCDR_20' ) start [2025-03-20 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720156', 'tblTempVendorCDR_20' ) end [2025-03-20 03:42:19] Production.INFO: ProcessCDR(1,14720156,1,1,2) [2025-03-20 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720156', 'tblTempUsageDetail_20' ) start [2025-03-20 03:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720156', 'tblTempUsageDetail_20' ) end [2025-03-20 03:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:42:24] Production.INFO: ==6872== Releasing lock... [2025-03-20 03:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:42:24] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:43:05 [end_date_ymd] => 2025-03-20 03:43:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:43:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:43:18] Production.INFO: count ==592 [2025-03-20 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:43:05 - End Time 2025-03-20 03:43:05 [2025-03-20 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720161', 'tblTempUsageDetail_20' ) start [2025-03-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720161', 'tblTempUsageDetail_20' ) end [2025-03-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720161', 'tblTempVendorCDR_20' ) start [2025-03-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720161', 'tblTempVendorCDR_20' ) end [2025-03-20 03:43:18] Production.INFO: ProcessCDR(1,14720161,1,1,2) [2025-03-20 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720161', 'tblTempUsageDetail_20' ) start [2025-03-20 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720161', 'tblTempUsageDetail_20' ) end [2025-03-20 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:43:22] Production.INFO: ==6952== Releasing lock... [2025-03-20 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:43:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:44:06 [end_date_ymd] => 2025-03-20 03:44:06 [RateCDR] => 1 ) [2025-03-20 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:44:06' and `end` < '2025-03-20 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:44:18] Production.INFO: count ==591 [2025-03-20 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:44:06 - End Time 2025-03-20 03:44:06 [2025-03-20 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720166', 'tblTempUsageDetail_20' ) start [2025-03-20 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720166', 'tblTempUsageDetail_20' ) end [2025-03-20 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720166', 'tblTempVendorCDR_20' ) start [2025-03-20 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720166', 'tblTempVendorCDR_20' ) end [2025-03-20 03:44:18] Production.INFO: ProcessCDR(1,14720166,1,1,2) [2025-03-20 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720166', 'tblTempUsageDetail_20' ) start [2025-03-20 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720166', 'tblTempUsageDetail_20' ) end [2025-03-20 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:44:22] Production.INFO: ==7028== Releasing lock... [2025-03-20 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:45:05 [end_date_ymd] => 2025-03-20 03:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:45:17] Production.INFO: count ==595 [2025-03-20 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:45:05 - End Time 2025-03-20 03:45:05 [2025-03-20 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720171', 'tblTempUsageDetail_20' ) start [2025-03-20 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720171', 'tblTempUsageDetail_20' ) end [2025-03-20 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720171', 'tblTempVendorCDR_20' ) start [2025-03-20 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720171', 'tblTempVendorCDR_20' ) end [2025-03-20 03:45:18] Production.INFO: ProcessCDR(1,14720171,1,1,2) [2025-03-20 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720171', 'tblTempUsageDetail_20' ) start [2025-03-20 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720171', 'tblTempUsageDetail_20' ) end [2025-03-20 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:45:21] Production.INFO: ==7110== Releasing lock... [2025-03-20 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:46:05 [end_date_ymd] => 2025-03-20 03:46:05 [RateCDR] => 1 ) [2025-03-20 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:46:05' and `end` < '2025-03-20 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:46:18] Production.INFO: count ==593 [2025-03-20 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:46:05 - End Time 2025-03-20 03:46:05 [2025-03-20 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720176', 'tblTempUsageDetail_20' ) start [2025-03-20 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720176', 'tblTempUsageDetail_20' ) end [2025-03-20 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720176', 'tblTempVendorCDR_20' ) start [2025-03-20 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720176', 'tblTempVendorCDR_20' ) end [2025-03-20 03:46:18] Production.INFO: ProcessCDR(1,14720176,1,1,2) [2025-03-20 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720176', 'tblTempUsageDetail_20' ) start [2025-03-20 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720176', 'tblTempUsageDetail_20' ) end [2025-03-20 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:46:21] Production.INFO: ==7225== Releasing lock... [2025-03-20 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:47:05 [end_date_ymd] => 2025-03-20 03:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:47:17] Production.INFO: count ==591 [2025-03-20 03:47:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:47:05 - End Time 2025-03-20 03:47:05 [2025-03-20 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720181', 'tblTempUsageDetail_20' ) start [2025-03-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720181', 'tblTempUsageDetail_20' ) end [2025-03-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720181', 'tblTempVendorCDR_20' ) start [2025-03-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720181', 'tblTempVendorCDR_20' ) end [2025-03-20 03:47:17] Production.INFO: ProcessCDR(1,14720181,1,1,2) [2025-03-20 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720181', 'tblTempUsageDetail_20' ) start [2025-03-20 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720181', 'tblTempUsageDetail_20' ) end [2025-03-20 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:47:21] Production.INFO: ==7307== Releasing lock... [2025-03-20 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:48:06 [end_date_ymd] => 2025-03-20 03:48:06 [RateCDR] => 1 ) [2025-03-20 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:48:06' and `end` < '2025-03-20 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:48:18] Production.INFO: count ==589 [2025-03-20 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:48:06 - End Time 2025-03-20 03:48:06 [2025-03-20 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720186', 'tblTempUsageDetail_20' ) start [2025-03-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720186', 'tblTempUsageDetail_20' ) end [2025-03-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720186', 'tblTempVendorCDR_20' ) start [2025-03-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720186', 'tblTempVendorCDR_20' ) end [2025-03-20 03:48:18] Production.INFO: ProcessCDR(1,14720186,1,1,2) [2025-03-20 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720186', 'tblTempUsageDetail_20' ) start [2025-03-20 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720186', 'tblTempUsageDetail_20' ) end [2025-03-20 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:48:22] Production.INFO: ==7394== Releasing lock... [2025-03-20 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:48:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:49:05 [end_date_ymd] => 2025-03-20 03:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:49:17] Production.INFO: count ==588 [2025-03-20 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:49:05 - End Time 2025-03-20 03:49:05 [2025-03-20 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720191', 'tblTempUsageDetail_20' ) start [2025-03-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720191', 'tblTempUsageDetail_20' ) end [2025-03-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720191', 'tblTempVendorCDR_20' ) start [2025-03-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720191', 'tblTempVendorCDR_20' ) end [2025-03-20 03:49:17] Production.INFO: ProcessCDR(1,14720191,1,1,2) [2025-03-20 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720191', 'tblTempUsageDetail_20' ) start [2025-03-20 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720191', 'tblTempUsageDetail_20' ) end [2025-03-20 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:49:21] Production.INFO: ==7513== Releasing lock... [2025-03-20 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:50:07 [end_date_ymd] => 2025-03-20 03:50:07 [RateCDR] => 1 ) [2025-03-20 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:50:07' and `end` < '2025-03-20 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:50:19] Production.INFO: count ==575 [2025-03-20 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-20 00:50:07 - End Time 2025-03-20 03:50:07 [2025-03-20 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720196', 'tblTempUsageDetail_20' ) start [2025-03-20 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720196', 'tblTempUsageDetail_20' ) end [2025-03-20 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720196', 'tblTempVendorCDR_20' ) start [2025-03-20 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720196', 'tblTempVendorCDR_20' ) end [2025-03-20 03:50:19] Production.INFO: ProcessCDR(1,14720196,1,1,2) [2025-03-20 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720196', 'tblTempUsageDetail_20' ) start [2025-03-20 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720196', 'tblTempUsageDetail_20' ) end [2025-03-20 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:50:23] Production.INFO: ==7599== Releasing lock... [2025-03-20 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:50:23] Production.INFO: 33 MB #Memory Used# [2025-03-20 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:51:05 [end_date_ymd] => 2025-03-20 03:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:51:18] Production.INFO: count ==570 [2025-03-20 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:51:05 - End Time 2025-03-20 03:51:05 [2025-03-20 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720202', 'tblTempUsageDetail_20' ) start [2025-03-20 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720202', 'tblTempUsageDetail_20' ) end [2025-03-20 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720202', 'tblTempVendorCDR_20' ) start [2025-03-20 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720202', 'tblTempVendorCDR_20' ) end [2025-03-20 03:51:18] Production.INFO: ProcessCDR(1,14720202,1,1,2) [2025-03-20 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720202', 'tblTempUsageDetail_20' ) start [2025-03-20 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720202', 'tblTempUsageDetail_20' ) end [2025-03-20 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:51:22] Production.INFO: ==7689== Releasing lock... [2025-03-20 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:52:06 [end_date_ymd] => 2025-03-20 03:52:06 [RateCDR] => 1 ) [2025-03-20 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:52:06' and `end` < '2025-03-20 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:52:18] Production.INFO: count ==561 [2025-03-20 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:52:06 - End Time 2025-03-20 03:52:06 [2025-03-20 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720207', 'tblTempUsageDetail_20' ) start [2025-03-20 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720207', 'tblTempUsageDetail_20' ) end [2025-03-20 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720207', 'tblTempVendorCDR_20' ) start [2025-03-20 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720207', 'tblTempVendorCDR_20' ) end [2025-03-20 03:52:18] Production.INFO: ProcessCDR(1,14720207,1,1,2) [2025-03-20 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720207', 'tblTempUsageDetail_20' ) start [2025-03-20 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720207', 'tblTempUsageDetail_20' ) end [2025-03-20 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:52:22] Production.INFO: ==7781== Releasing lock... [2025-03-20 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:53:05 [end_date_ymd] => 2025-03-20 03:53:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 00:53:05' and `end` < '2025-03-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 ,'') [2025-03-20 03:53:17] Production.INFO: count ==561 [2025-03-20 03:53:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:53:05 - End Time 2025-03-20 03:53:05 [2025-03-20 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720212', 'tblTempUsageDetail_20' ) start [2025-03-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720212', 'tblTempUsageDetail_20' ) end [2025-03-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720212', 'tblTempVendorCDR_20' ) start [2025-03-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720212', 'tblTempVendorCDR_20' ) end [2025-03-20 03:53:17] Production.INFO: ProcessCDR(1,14720212,1,1,2) [2025-03-20 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720212', 'tblTempUsageDetail_20' ) start [2025-03-20 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720212', 'tblTempUsageDetail_20' ) end [2025-03-20 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:53:21] Production.INFO: ==7873== Releasing lock... [2025-03-20 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:54:06 [end_date_ymd] => 2025-03-20 03:54:06 [RateCDR] => 1 ) [2025-03-20 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:54:06' and `end` < '2025-03-20 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:54:18] Production.INFO: count ==560 [2025-03-20 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:54:06 - End Time 2025-03-20 03:54:06 [2025-03-20 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720217', 'tblTempUsageDetail_20' ) start [2025-03-20 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720217', 'tblTempUsageDetail_20' ) end [2025-03-20 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720217', 'tblTempVendorCDR_20' ) start [2025-03-20 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720217', 'tblTempVendorCDR_20' ) end [2025-03-20 03:54:18] Production.INFO: ProcessCDR(1,14720217,1,1,2) [2025-03-20 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720217', 'tblTempUsageDetail_20' ) start [2025-03-20 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720217', 'tblTempUsageDetail_20' ) end [2025-03-20 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:54:22] Production.INFO: ==7962== Releasing lock... [2025-03-20 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:55:05 [end_date_ymd] => 2025-03-20 03:55:05 [RateCDR] => 1 ) [2025-03-20 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:55:05' and `end` < '2025-03-20 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:55:17] Production.INFO: count ==558 [2025-03-20 03:55:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:55:05 - End Time 2025-03-20 03:55:05 [2025-03-20 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720222', 'tblTempUsageDetail_20' ) start [2025-03-20 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720222', 'tblTempUsageDetail_20' ) end [2025-03-20 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720222', 'tblTempVendorCDR_20' ) start [2025-03-20 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720222', 'tblTempVendorCDR_20' ) end [2025-03-20 03:55:17] Production.INFO: ProcessCDR(1,14720222,1,1,2) [2025-03-20 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720222', 'tblTempUsageDetail_20' ) start [2025-03-20 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720222', 'tblTempUsageDetail_20' ) end [2025-03-20 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:55:21] Production.INFO: ==8052== Releasing lock... [2025-03-20 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:56:06 [end_date_ymd] => 2025-03-20 03:56:06 [RateCDR] => 1 ) [2025-03-20 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:56:06' and `end` < '2025-03-20 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:56:18] Production.INFO: count ==560 [2025-03-20 03:56:19] Production.ERROR: pbx CDR StartTime 2025-03-20 00:56:06 - End Time 2025-03-20 03:56:06 [2025-03-20 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720227', 'tblTempUsageDetail_20' ) start [2025-03-20 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720227', 'tblTempUsageDetail_20' ) end [2025-03-20 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720227', 'tblTempVendorCDR_20' ) start [2025-03-20 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720227', 'tblTempVendorCDR_20' ) end [2025-03-20 03:56:19] Production.INFO: ProcessCDR(1,14720227,1,1,2) [2025-03-20 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720227', 'tblTempUsageDetail_20' ) start [2025-03-20 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720227', 'tblTempUsageDetail_20' ) end [2025-03-20 03:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:56:23] Production.INFO: ==8145== Releasing lock... [2025-03-20 03:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:56:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:57:05 [end_date_ymd] => 2025-03-20 03:57:05 [RateCDR] => 1 ) [2025-03-20 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:57:05' and `end` < '2025-03-20 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:57:17] Production.INFO: count ==556 [2025-03-20 03:57:17] Production.ERROR: pbx CDR StartTime 2025-03-20 00:57:05 - End Time 2025-03-20 03:57:05 [2025-03-20 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720232', 'tblTempUsageDetail_20' ) start [2025-03-20 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720232', 'tblTempUsageDetail_20' ) end [2025-03-20 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720232', 'tblTempVendorCDR_20' ) start [2025-03-20 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720232', 'tblTempVendorCDR_20' ) end [2025-03-20 03:57:18] Production.INFO: ProcessCDR(1,14720232,1,1,2) [2025-03-20 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720232', 'tblTempUsageDetail_20' ) start [2025-03-20 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720232', 'tblTempUsageDetail_20' ) end [2025-03-20 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:57:21] Production.INFO: ==8234== Releasing lock... [2025-03-20 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:58:06 [end_date_ymd] => 2025-03-20 03:58:06 [RateCDR] => 1 ) [2025-03-20 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:58:06' and `end` < '2025-03-20 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:58:18] Production.INFO: count ==552 [2025-03-20 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:58:06 - End Time 2025-03-20 03:58:06 [2025-03-20 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720237', 'tblTempUsageDetail_20' ) start [2025-03-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720237', 'tblTempUsageDetail_20' ) end [2025-03-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720237', 'tblTempVendorCDR_20' ) start [2025-03-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720237', 'tblTempVendorCDR_20' ) end [2025-03-20 03:58:18] Production.INFO: ProcessCDR(1,14720237,1,1,2) [2025-03-20 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720237', 'tblTempUsageDetail_20' ) start [2025-03-20 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720237', 'tblTempUsageDetail_20' ) end [2025-03-20 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:58:22] Production.INFO: ==8329== Releasing lock... [2025-03-20 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:58:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 00:59:06 [end_date_ymd] => 2025-03-20 03:59:06 [RateCDR] => 1 ) [2025-03-20 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 00:59:06' and `end` < '2025-03-20 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 03:59:18] Production.INFO: count ==550 [2025-03-20 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-20 00:59:06 - End Time 2025-03-20 03:59:06 [2025-03-20 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720242', 'tblTempUsageDetail_20' ) start [2025-03-20 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720242', 'tblTempUsageDetail_20' ) end [2025-03-20 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720242', 'tblTempVendorCDR_20' ) start [2025-03-20 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720242', 'tblTempVendorCDR_20' ) end [2025-03-20 03:59:19] Production.INFO: ProcessCDR(1,14720242,1,1,2) [2025-03-20 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720242', 'tblTempUsageDetail_20' ) start [2025-03-20 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720242', 'tblTempUsageDetail_20' ) end [2025-03-20 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 03:59:22] Production.INFO: ==8418== Releasing lock... [2025-03-20 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 03:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:00:06 [end_date_ymd] => 2025-03-20 04:00:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:00:06' and `end` < '2025-03-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 ,'') [2025-03-20 04:00:19] Production.INFO: count ==550 [2025-03-20 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 01:00:06 - End Time 2025-03-20 04:00:06 [2025-03-20 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720247', 'tblTempUsageDetail_20' ) start [2025-03-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720247', 'tblTempUsageDetail_20' ) end [2025-03-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720247', 'tblTempVendorCDR_20' ) start [2025-03-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720247', 'tblTempVendorCDR_20' ) end [2025-03-20 04:00:19] Production.INFO: ProcessCDR(1,14720247,1,1,2) [2025-03-20 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720247', 'tblTempUsageDetail_20' ) start [2025-03-20 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720247', 'tblTempUsageDetail_20' ) end [2025-03-20 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:00:23] Production.INFO: ==8508== Releasing lock... [2025-03-20 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:00:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:01:05 [end_date_ymd] => 2025-03-20 04:01:05 [RateCDR] => 1 ) [2025-03-20 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:01:05' and `end` < '2025-03-20 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:01:18] Production.INFO: count ==550 [2025-03-20 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:01:05 - End Time 2025-03-20 04:01:05 [2025-03-20 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720254', 'tblTempUsageDetail_20' ) start [2025-03-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720254', 'tblTempUsageDetail_20' ) end [2025-03-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720254', 'tblTempVendorCDR_20' ) start [2025-03-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720254', 'tblTempVendorCDR_20' ) end [2025-03-20 04:01:18] Production.INFO: ProcessCDR(1,14720254,1,1,2) [2025-03-20 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720254', 'tblTempUsageDetail_20' ) start [2025-03-20 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720254', 'tblTempUsageDetail_20' ) end [2025-03-20 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:01:23] Production.INFO: ==8605== Releasing lock... [2025-03-20 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:01:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:02:06 [end_date_ymd] => 2025-03-20 04:02:06 [RateCDR] => 1 ) [2025-03-20 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:02:06' and `end` < '2025-03-20 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:02:18] Production.INFO: count ==550 [2025-03-20 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:02:06 - End Time 2025-03-20 04:02:06 [2025-03-20 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720258', 'tblTempUsageDetail_20' ) start [2025-03-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720258', 'tblTempUsageDetail_20' ) end [2025-03-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720258', 'tblTempVendorCDR_20' ) start [2025-03-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720258', 'tblTempVendorCDR_20' ) end [2025-03-20 04:02:18] Production.INFO: ProcessCDR(1,14720258,1,1,2) [2025-03-20 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720258', 'tblTempUsageDetail_20' ) start [2025-03-20 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720258', 'tblTempUsageDetail_20' ) end [2025-03-20 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:02:22] Production.INFO: ==8695== Releasing lock... [2025-03-20 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:03:06 [end_date_ymd] => 2025-03-20 04:03:06 [RateCDR] => 1 ) [2025-03-20 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:03:06' and `end` < '2025-03-20 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:03:18] Production.INFO: count ==550 [2025-03-20 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:03:06 - End Time 2025-03-20 04:03:06 [2025-03-20 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720264', 'tblTempUsageDetail_20' ) start [2025-03-20 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720264', 'tblTempUsageDetail_20' ) end [2025-03-20 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720264', 'tblTempVendorCDR_20' ) start [2025-03-20 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720264', 'tblTempVendorCDR_20' ) end [2025-03-20 04:03:18] Production.INFO: ProcessCDR(1,14720264,1,1,2) [2025-03-20 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720264', 'tblTempUsageDetail_20' ) start [2025-03-20 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720264', 'tblTempUsageDetail_20' ) end [2025-03-20 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:03:22] Production.INFO: ==8780== Releasing lock... [2025-03-20 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:04:05 [end_date_ymd] => 2025-03-20 04:04:05 [RateCDR] => 1 ) [2025-03-20 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:04:05' and `end` < '2025-03-20 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:04:17] Production.INFO: count ==550 [2025-03-20 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:04:05 - End Time 2025-03-20 04:04:05 [2025-03-20 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720269', 'tblTempUsageDetail_20' ) start [2025-03-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720269', 'tblTempUsageDetail_20' ) end [2025-03-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720269', 'tblTempVendorCDR_20' ) start [2025-03-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720269', 'tblTempVendorCDR_20' ) end [2025-03-20 04:04:17] Production.INFO: ProcessCDR(1,14720269,1,1,2) [2025-03-20 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720269', 'tblTempUsageDetail_20' ) start [2025-03-20 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720269', 'tblTempUsageDetail_20' ) end [2025-03-20 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:04:21] Production.INFO: ==8910== Releasing lock... [2025-03-20 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:05:05 [end_date_ymd] => 2025-03-20 04:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:05:17] Production.INFO: count ==547 [2025-03-20 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:05:05 - End Time 2025-03-20 04:05:05 [2025-03-20 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720274', 'tblTempUsageDetail_20' ) start [2025-03-20 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720274', 'tblTempUsageDetail_20' ) end [2025-03-20 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720274', 'tblTempVendorCDR_20' ) start [2025-03-20 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720274', 'tblTempVendorCDR_20' ) end [2025-03-20 04:05:18] Production.INFO: ProcessCDR(1,14720274,1,1,2) [2025-03-20 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720274', 'tblTempUsageDetail_20' ) start [2025-03-20 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720274', 'tblTempUsageDetail_20' ) end [2025-03-20 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:05:21] Production.INFO: ==8994== Releasing lock... [2025-03-20 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:05:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:06:05 [end_date_ymd] => 2025-03-20 04:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:06:17] Production.INFO: count ==541 [2025-03-20 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:06:05 - End Time 2025-03-20 04:06:05 [2025-03-20 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720279', 'tblTempUsageDetail_20' ) start [2025-03-20 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720279', 'tblTempUsageDetail_20' ) end [2025-03-20 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720279', 'tblTempVendorCDR_20' ) start [2025-03-20 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720279', 'tblTempVendorCDR_20' ) end [2025-03-20 04:06:18] Production.INFO: ProcessCDR(1,14720279,1,1,2) [2025-03-20 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720279', 'tblTempUsageDetail_20' ) start [2025-03-20 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720279', 'tblTempUsageDetail_20' ) end [2025-03-20 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:06:21] Production.INFO: ==9075== Releasing lock... [2025-03-20 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:07:06 [end_date_ymd] => 2025-03-20 04:07:06 [RateCDR] => 1 ) [2025-03-20 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:07:06' and `end` < '2025-03-20 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:07:18] Production.INFO: count ==538 [2025-03-20 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:07:06 - End Time 2025-03-20 04:07:06 [2025-03-20 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720284', 'tblTempUsageDetail_20' ) start [2025-03-20 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720284', 'tblTempUsageDetail_20' ) end [2025-03-20 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720284', 'tblTempVendorCDR_20' ) start [2025-03-20 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720284', 'tblTempVendorCDR_20' ) end [2025-03-20 04:07:18] Production.INFO: ProcessCDR(1,14720284,1,1,2) [2025-03-20 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720284', 'tblTempUsageDetail_20' ) start [2025-03-20 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720284', 'tblTempUsageDetail_20' ) end [2025-03-20 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:07:22] Production.INFO: ==9160== Releasing lock... [2025-03-20 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:07:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:08:05 [end_date_ymd] => 2025-03-20 04:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:08:17] Production.INFO: count ==534 [2025-03-20 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:08:05 - End Time 2025-03-20 04:08:05 [2025-03-20 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720289', 'tblTempUsageDetail_20' ) start [2025-03-20 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720289', 'tblTempUsageDetail_20' ) end [2025-03-20 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720289', 'tblTempVendorCDR_20' ) start [2025-03-20 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720289', 'tblTempVendorCDR_20' ) end [2025-03-20 04:08:18] Production.INFO: ProcessCDR(1,14720289,1,1,2) [2025-03-20 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720289', 'tblTempUsageDetail_20' ) start [2025-03-20 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720289', 'tblTempUsageDetail_20' ) end [2025-03-20 04:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:08:23] Production.INFO: ==9246== Releasing lock... [2025-03-20 04:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:08:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:09:05 [end_date_ymd] => 2025-03-20 04:09:05 [RateCDR] => 1 ) [2025-03-20 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:09:05' and `end` < '2025-03-20 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:09:17] Production.INFO: count ==534 [2025-03-20 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:09:05 - End Time 2025-03-20 04:09:05 [2025-03-20 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720294', 'tblTempUsageDetail_20' ) start [2025-03-20 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720294', 'tblTempUsageDetail_20' ) end [2025-03-20 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720294', 'tblTempVendorCDR_20' ) start [2025-03-20 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720294', 'tblTempVendorCDR_20' ) end [2025-03-20 04:09:18] Production.INFO: ProcessCDR(1,14720294,1,1,2) [2025-03-20 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720294', 'tblTempUsageDetail_20' ) start [2025-03-20 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720294', 'tblTempUsageDetail_20' ) end [2025-03-20 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:09:21] Production.INFO: ==9331== Releasing lock... [2025-03-20 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:10:06 [end_date_ymd] => 2025-03-20 04:10:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:10:06' and `end` < '2025-03-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 ,'') [2025-03-20 04:10:18] Production.INFO: count ==521 [2025-03-20 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:10:06 - End Time 2025-03-20 04:10:06 [2025-03-20 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720300', 'tblTempUsageDetail_20' ) start [2025-03-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720300', 'tblTempUsageDetail_20' ) end [2025-03-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720300', 'tblTempVendorCDR_20' ) start [2025-03-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720300', 'tblTempVendorCDR_20' ) end [2025-03-20 04:10:18] Production.INFO: ProcessCDR(1,14720300,1,1,2) [2025-03-20 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720300', 'tblTempUsageDetail_20' ) start [2025-03-20 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720300', 'tblTempUsageDetail_20' ) end [2025-03-20 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:10:22] Production.INFO: ==9420== Releasing lock... [2025-03-20 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:11:06 [end_date_ymd] => 2025-03-20 04:11:06 [RateCDR] => 1 ) [2025-03-20 04:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:11:06' and `end` < '2025-03-20 04:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:11:18] Production.INFO: count ==498 [2025-03-20 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:11:06 - End Time 2025-03-20 04:11:06 [2025-03-20 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720305', 'tblTempUsageDetail_20' ) start [2025-03-20 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720305', 'tblTempUsageDetail_20' ) end [2025-03-20 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720305', 'tblTempVendorCDR_20' ) start [2025-03-20 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720305', 'tblTempVendorCDR_20' ) end [2025-03-20 04:11:18] Production.INFO: ProcessCDR(1,14720305,1,1,2) [2025-03-20 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720305', 'tblTempUsageDetail_20' ) start [2025-03-20 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720305', 'tblTempUsageDetail_20' ) end [2025-03-20 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:11:21] Production.INFO: ==9507== Releasing lock... [2025-03-20 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:11:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:12:06 [end_date_ymd] => 2025-03-20 04:12:06 [RateCDR] => 1 ) [2025-03-20 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:12:06' and `end` < '2025-03-20 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:12:18] Production.INFO: count ==497 [2025-03-20 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:12:06 - End Time 2025-03-20 04:12:06 [2025-03-20 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720310', 'tblTempUsageDetail_20' ) start [2025-03-20 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720310', 'tblTempUsageDetail_20' ) end [2025-03-20 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720310', 'tblTempVendorCDR_20' ) start [2025-03-20 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720310', 'tblTempVendorCDR_20' ) end [2025-03-20 04:12:18] Production.INFO: ProcessCDR(1,14720310,1,1,2) [2025-03-20 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720310', 'tblTempUsageDetail_20' ) start [2025-03-20 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720310', 'tblTempUsageDetail_20' ) end [2025-03-20 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:12:21] Production.INFO: ==9596== Releasing lock... [2025-03-20 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:13:05 [end_date_ymd] => 2025-03-20 04:13:05 [RateCDR] => 1 ) [2025-03-20 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:13:05' and `end` < '2025-03-20 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:13:17] Production.INFO: count ==495 [2025-03-20 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:13:05 - End Time 2025-03-20 04:13:05 [2025-03-20 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720315', 'tblTempUsageDetail_20' ) start [2025-03-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720315', 'tblTempUsageDetail_20' ) end [2025-03-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720315', 'tblTempVendorCDR_20' ) start [2025-03-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720315', 'tblTempVendorCDR_20' ) end [2025-03-20 04:13:17] Production.INFO: ProcessCDR(1,14720315,1,1,2) [2025-03-20 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720315', 'tblTempUsageDetail_20' ) start [2025-03-20 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720315', 'tblTempUsageDetail_20' ) end [2025-03-20 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:13:20] Production.INFO: ==9690== Releasing lock... [2025-03-20 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:13:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:14:05 [end_date_ymd] => 2025-03-20 04:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:14:18] Production.INFO: count ==495 [2025-03-20 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:14:05 - End Time 2025-03-20 04:14:05 [2025-03-20 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720320', 'tblTempUsageDetail_20' ) start [2025-03-20 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720320', 'tblTempUsageDetail_20' ) end [2025-03-20 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720320', 'tblTempVendorCDR_20' ) start [2025-03-20 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720320', 'tblTempVendorCDR_20' ) end [2025-03-20 04:14:18] Production.INFO: ProcessCDR(1,14720320,1,1,2) [2025-03-20 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720320', 'tblTempUsageDetail_20' ) start [2025-03-20 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720320', 'tblTempUsageDetail_20' ) end [2025-03-20 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:14:21] Production.INFO: ==9775== Releasing lock... [2025-03-20 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:14:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:15:05 [end_date_ymd] => 2025-03-20 04:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:15:17] Production.INFO: count ==495 [2025-03-20 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:15:05 - End Time 2025-03-20 04:15:05 [2025-03-20 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720325', 'tblTempUsageDetail_20' ) start [2025-03-20 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720325', 'tblTempUsageDetail_20' ) end [2025-03-20 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720325', 'tblTempVendorCDR_20' ) start [2025-03-20 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720325', 'tblTempVendorCDR_20' ) end [2025-03-20 04:15:17] Production.INFO: ProcessCDR(1,14720325,1,1,2) [2025-03-20 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720325', 'tblTempUsageDetail_20' ) start [2025-03-20 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720325', 'tblTempUsageDetail_20' ) end [2025-03-20 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:15:21] Production.INFO: ==9865== Releasing lock... [2025-03-20 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:16:06 [end_date_ymd] => 2025-03-20 04:16:06 [RateCDR] => 1 ) [2025-03-20 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:16:06' and `end` < '2025-03-20 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:16:18] Production.INFO: count ==495 [2025-03-20 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:16:06 - End Time 2025-03-20 04:16:06 [2025-03-20 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720330', 'tblTempUsageDetail_20' ) start [2025-03-20 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720330', 'tblTempUsageDetail_20' ) end [2025-03-20 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720330', 'tblTempVendorCDR_20' ) start [2025-03-20 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720330', 'tblTempVendorCDR_20' ) end [2025-03-20 04:16:18] Production.INFO: ProcessCDR(1,14720330,1,1,2) [2025-03-20 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720330', 'tblTempUsageDetail_20' ) start [2025-03-20 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720330', 'tblTempUsageDetail_20' ) end [2025-03-20 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:16:21] Production.INFO: ==9955== Releasing lock... [2025-03-20 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:16:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:17:05 [end_date_ymd] => 2025-03-20 04:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:17:17] Production.INFO: count ==495 [2025-03-20 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:17:05 - End Time 2025-03-20 04:17:05 [2025-03-20 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720335', 'tblTempUsageDetail_20' ) start [2025-03-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720335', 'tblTempUsageDetail_20' ) end [2025-03-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720335', 'tblTempVendorCDR_20' ) start [2025-03-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720335', 'tblTempVendorCDR_20' ) end [2025-03-20 04:17:17] Production.INFO: ProcessCDR(1,14720335,1,1,2) [2025-03-20 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720335', 'tblTempUsageDetail_20' ) start [2025-03-20 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720335', 'tblTempUsageDetail_20' ) end [2025-03-20 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:17:21] Production.INFO: ==10037== Releasing lock... [2025-03-20 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:18:06 [end_date_ymd] => 2025-03-20 04:18:06 [RateCDR] => 1 ) [2025-03-20 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:18:06' and `end` < '2025-03-20 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:18:18] Production.INFO: count ==495 [2025-03-20 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:18:06 - End Time 2025-03-20 04:18:06 [2025-03-20 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720340', 'tblTempUsageDetail_20' ) start [2025-03-20 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720340', 'tblTempUsageDetail_20' ) end [2025-03-20 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720340', 'tblTempVendorCDR_20' ) start [2025-03-20 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720340', 'tblTempVendorCDR_20' ) end [2025-03-20 04:18:18] Production.INFO: ProcessCDR(1,14720340,1,1,2) [2025-03-20 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720340', 'tblTempUsageDetail_20' ) start [2025-03-20 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720340', 'tblTempUsageDetail_20' ) end [2025-03-20 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:18:21] Production.INFO: ==10133== Releasing lock... [2025-03-20 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:19:05 [end_date_ymd] => 2025-03-20 04:19:05 [RateCDR] => 1 ) [2025-03-20 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:19:05' and `end` < '2025-03-20 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:19:17] Production.INFO: count ==495 [2025-03-20 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:19:05 - End Time 2025-03-20 04:19:05 [2025-03-20 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720345', 'tblTempUsageDetail_20' ) start [2025-03-20 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720345', 'tblTempUsageDetail_20' ) end [2025-03-20 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720345', 'tblTempVendorCDR_20' ) start [2025-03-20 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720345', 'tblTempVendorCDR_20' ) end [2025-03-20 04:19:17] Production.INFO: ProcessCDR(1,14720345,1,1,2) [2025-03-20 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720345', 'tblTempUsageDetail_20' ) start [2025-03-20 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720345', 'tblTempUsageDetail_20' ) end [2025-03-20 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:19:21] Production.INFO: ==10223== Releasing lock... [2025-03-20 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:20:06 [end_date_ymd] => 2025-03-20 04:20:06 [RateCDR] => 1 ) [2025-03-20 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:20:06' and `end` < '2025-03-20 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:20:18] Production.INFO: count ==487 [2025-03-20 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:20:06 - End Time 2025-03-20 04:20:06 [2025-03-20 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720351', 'tblTempUsageDetail_20' ) start [2025-03-20 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720351', 'tblTempUsageDetail_20' ) end [2025-03-20 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720351', 'tblTempVendorCDR_20' ) start [2025-03-20 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720351', 'tblTempVendorCDR_20' ) end [2025-03-20 04:20:18] Production.INFO: ProcessCDR(1,14720351,1,1,2) [2025-03-20 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720351', 'tblTempUsageDetail_20' ) start [2025-03-20 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720351', 'tblTempUsageDetail_20' ) end [2025-03-20 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:20:22] Production.INFO: ==10350== Releasing lock... [2025-03-20 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:21:05 [end_date_ymd] => 2025-03-20 04:21:05 [RateCDR] => 1 ) [2025-03-20 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:21:05' and `end` < '2025-03-20 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:21:17] Production.INFO: count ==487 [2025-03-20 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:21:05 - End Time 2025-03-20 04:21:05 [2025-03-20 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720356', 'tblTempUsageDetail_20' ) start [2025-03-20 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720356', 'tblTempUsageDetail_20' ) end [2025-03-20 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720356', 'tblTempVendorCDR_20' ) start [2025-03-20 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720356', 'tblTempVendorCDR_20' ) end [2025-03-20 04:21:17] Production.INFO: ProcessCDR(1,14720356,1,1,2) [2025-03-20 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720356', 'tblTempUsageDetail_20' ) start [2025-03-20 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720356', 'tblTempUsageDetail_20' ) end [2025-03-20 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:21:20] Production.INFO: ==10436== Releasing lock... [2025-03-20 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:21:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:22:05 [end_date_ymd] => 2025-03-20 04:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:22:18] Production.INFO: count ==486 [2025-03-20 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:22:05 - End Time 2025-03-20 04:22:05 [2025-03-20 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720361', 'tblTempUsageDetail_20' ) start [2025-03-20 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720361', 'tblTempUsageDetail_20' ) end [2025-03-20 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720361', 'tblTempVendorCDR_20' ) start [2025-03-20 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720361', 'tblTempVendorCDR_20' ) end [2025-03-20 04:22:18] Production.INFO: ProcessCDR(1,14720361,1,1,2) [2025-03-20 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720361', 'tblTempUsageDetail_20' ) start [2025-03-20 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720361', 'tblTempUsageDetail_20' ) end [2025-03-20 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:22:21] Production.INFO: ==10520== Releasing lock... [2025-03-20 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:22:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:23:05 [end_date_ymd] => 2025-03-20 04:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:23:17] Production.INFO: count ==486 [2025-03-20 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:23:05 - End Time 2025-03-20 04:23:05 [2025-03-20 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720366', 'tblTempUsageDetail_20' ) start [2025-03-20 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720366', 'tblTempUsageDetail_20' ) end [2025-03-20 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720366', 'tblTempVendorCDR_20' ) start [2025-03-20 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720366', 'tblTempVendorCDR_20' ) end [2025-03-20 04:23:17] Production.INFO: ProcessCDR(1,14720366,1,1,2) [2025-03-20 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720366', 'tblTempUsageDetail_20' ) start [2025-03-20 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720366', 'tblTempUsageDetail_20' ) end [2025-03-20 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:23:20] Production.INFO: ==10600== Releasing lock... [2025-03-20 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:23:20] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:24:05 [end_date_ymd] => 2025-03-20 04:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:24:17] Production.INFO: count ==486 [2025-03-20 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:24:05 - End Time 2025-03-20 04:24:05 [2025-03-20 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720368', 'tblTempUsageDetail_20' ) start [2025-03-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720368', 'tblTempUsageDetail_20' ) end [2025-03-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720368', 'tblTempVendorCDR_20' ) start [2025-03-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720368', 'tblTempVendorCDR_20' ) end [2025-03-20 04:24:17] Production.INFO: ProcessCDR(1,14720368,1,1,2) [2025-03-20 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720368', 'tblTempUsageDetail_20' ) start [2025-03-20 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720368', 'tblTempUsageDetail_20' ) end [2025-03-20 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:24:21] Production.INFO: ==10685== Releasing lock... [2025-03-20 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:24:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:25:05 [end_date_ymd] => 2025-03-20 04:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:25:17] Production.INFO: count ==486 [2025-03-20 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:25:05 - End Time 2025-03-20 04:25:05 [2025-03-20 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720376', 'tblTempUsageDetail_20' ) start [2025-03-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720376', 'tblTempUsageDetail_20' ) end [2025-03-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720376', 'tblTempVendorCDR_20' ) start [2025-03-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720376', 'tblTempVendorCDR_20' ) end [2025-03-20 04:25:17] Production.INFO: ProcessCDR(1,14720376,1,1,2) [2025-03-20 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720376', 'tblTempUsageDetail_20' ) start [2025-03-20 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720376', 'tblTempUsageDetail_20' ) end [2025-03-20 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:25:20] Production.INFO: ==10764== Releasing lock... [2025-03-20 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:25:20] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:26:05 [end_date_ymd] => 2025-03-20 04:26:05 [RateCDR] => 1 ) [2025-03-20 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:26:05' and `end` < '2025-03-20 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:26:17] Production.INFO: count ==486 [2025-03-20 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:26:05 - End Time 2025-03-20 04:26:05 [2025-03-20 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720381', 'tblTempUsageDetail_20' ) start [2025-03-20 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720381', 'tblTempUsageDetail_20' ) end [2025-03-20 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720381', 'tblTempVendorCDR_20' ) start [2025-03-20 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720381', 'tblTempVendorCDR_20' ) end [2025-03-20 04:26:18] Production.INFO: ProcessCDR(1,14720381,1,1,2) [2025-03-20 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720381', 'tblTempUsageDetail_20' ) start [2025-03-20 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720381', 'tblTempUsageDetail_20' ) end [2025-03-20 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:26:21] Production.INFO: ==10848== Releasing lock... [2025-03-20 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:27:05 [end_date_ymd] => 2025-03-20 04:27:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:27:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:27:17] Production.INFO: count ==484 [2025-03-20 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:27:05 - End Time 2025-03-20 04:27:05 [2025-03-20 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720386', 'tblTempUsageDetail_20' ) start [2025-03-20 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720386', 'tblTempUsageDetail_20' ) end [2025-03-20 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720386', 'tblTempVendorCDR_20' ) start [2025-03-20 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720386', 'tblTempVendorCDR_20' ) end [2025-03-20 04:27:17] Production.INFO: ProcessCDR(1,14720386,1,1,2) [2025-03-20 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720386', 'tblTempUsageDetail_20' ) start [2025-03-20 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720386', 'tblTempUsageDetail_20' ) end [2025-03-20 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:27:20] Production.INFO: ==10928== Releasing lock... [2025-03-20 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:27:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:28:05 [end_date_ymd] => 2025-03-20 04:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:28:17] Production.INFO: count ==484 [2025-03-20 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:28:05 - End Time 2025-03-20 04:28:05 [2025-03-20 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720391', 'tblTempUsageDetail_20' ) start [2025-03-20 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720391', 'tblTempUsageDetail_20' ) end [2025-03-20 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720391', 'tblTempVendorCDR_20' ) start [2025-03-20 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720391', 'tblTempVendorCDR_20' ) end [2025-03-20 04:28:17] Production.INFO: ProcessCDR(1,14720391,1,1,2) [2025-03-20 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720391', 'tblTempUsageDetail_20' ) start [2025-03-20 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720391', 'tblTempUsageDetail_20' ) end [2025-03-20 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:28:20] Production.INFO: ==11010== Releasing lock... [2025-03-20 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:28:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:29:06 [end_date_ymd] => 2025-03-20 04:29:06 [RateCDR] => 1 ) [2025-03-20 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:29:06' and `end` < '2025-03-20 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:29:18] Production.INFO: count ==481 [2025-03-20 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:29:06 - End Time 2025-03-20 04:29:06 [2025-03-20 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720396', 'tblTempUsageDetail_20' ) start [2025-03-20 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720396', 'tblTempUsageDetail_20' ) end [2025-03-20 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720396', 'tblTempVendorCDR_20' ) start [2025-03-20 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720396', 'tblTempVendorCDR_20' ) end [2025-03-20 04:29:18] Production.INFO: ProcessCDR(1,14720396,1,1,2) [2025-03-20 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720396', 'tblTempUsageDetail_20' ) start [2025-03-20 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720396', 'tblTempUsageDetail_20' ) end [2025-03-20 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:29:21] Production.INFO: ==11095== Releasing lock... [2025-03-20 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:30:06 [end_date_ymd] => 2025-03-20 04:30:06 [RateCDR] => 1 ) [2025-03-20 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:30:06' and `end` < '2025-03-20 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:30:18] Production.INFO: count ==483 [2025-03-20 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:30:06 - End Time 2025-03-20 04:30:06 [2025-03-20 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720403', 'tblTempUsageDetail_20' ) start [2025-03-20 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720403', 'tblTempUsageDetail_20' ) end [2025-03-20 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720403', 'tblTempVendorCDR_20' ) start [2025-03-20 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720403', 'tblTempVendorCDR_20' ) end [2025-03-20 04:30:19] Production.INFO: ProcessCDR(1,14720403,1,1,2) [2025-03-20 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720403', 'tblTempUsageDetail_20' ) start [2025-03-20 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720403', 'tblTempUsageDetail_20' ) end [2025-03-20 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:30:22] Production.INFO: ==11176== Releasing lock... [2025-03-20 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:31:05 [end_date_ymd] => 2025-03-20 04:31:05 [RateCDR] => 1 ) [2025-03-20 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:31:05' and `end` < '2025-03-20 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:31:17] Production.INFO: count ==483 [2025-03-20 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:31:05 - End Time 2025-03-20 04:31:05 [2025-03-20 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720408', 'tblTempUsageDetail_20' ) start [2025-03-20 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720408', 'tblTempUsageDetail_20' ) end [2025-03-20 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720408', 'tblTempVendorCDR_20' ) start [2025-03-20 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720408', 'tblTempVendorCDR_20' ) end [2025-03-20 04:31:17] Production.INFO: ProcessCDR(1,14720408,1,1,2) [2025-03-20 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720408', 'tblTempUsageDetail_20' ) start [2025-03-20 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720408', 'tblTempUsageDetail_20' ) end [2025-03-20 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:31:21] Production.INFO: ==11293== Releasing lock... [2025-03-20 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:32:05 [end_date_ymd] => 2025-03-20 04:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:32:18] Production.INFO: count ==480 [2025-03-20 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:32:05 - End Time 2025-03-20 04:32:05 [2025-03-20 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720413', 'tblTempUsageDetail_20' ) start [2025-03-20 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720413', 'tblTempUsageDetail_20' ) end [2025-03-20 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720413', 'tblTempVendorCDR_20' ) start [2025-03-20 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720413', 'tblTempVendorCDR_20' ) end [2025-03-20 04:32:18] Production.INFO: ProcessCDR(1,14720413,1,1,2) [2025-03-20 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720413', 'tblTempUsageDetail_20' ) start [2025-03-20 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720413', 'tblTempUsageDetail_20' ) end [2025-03-20 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:32:21] Production.INFO: ==11369== Releasing lock... [2025-03-20 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:33:05 [end_date_ymd] => 2025-03-20 04:33:05 [RateCDR] => 1 ) [2025-03-20 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:33:05' and `end` < '2025-03-20 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:33:17] Production.INFO: count ==479 [2025-03-20 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:33:05 - End Time 2025-03-20 04:33:05 [2025-03-20 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720418', 'tblTempUsageDetail_20' ) start [2025-03-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720418', 'tblTempUsageDetail_20' ) end [2025-03-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720418', 'tblTempVendorCDR_20' ) start [2025-03-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720418', 'tblTempVendorCDR_20' ) end [2025-03-20 04:33:17] Production.INFO: ProcessCDR(1,14720418,1,1,2) [2025-03-20 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720418', 'tblTempUsageDetail_20' ) start [2025-03-20 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720418', 'tblTempUsageDetail_20' ) end [2025-03-20 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:33:21] Production.INFO: ==11448== Releasing lock... [2025-03-20 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:34:05 [end_date_ymd] => 2025-03-20 04:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:34:17] Production.INFO: count ==479 [2025-03-20 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:34:05 - End Time 2025-03-20 04:34:05 [2025-03-20 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720423', 'tblTempUsageDetail_20' ) start [2025-03-20 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720423', 'tblTempUsageDetail_20' ) end [2025-03-20 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720423', 'tblTempVendorCDR_20' ) start [2025-03-20 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720423', 'tblTempVendorCDR_20' ) end [2025-03-20 04:34:17] Production.INFO: ProcessCDR(1,14720423,1,1,2) [2025-03-20 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720423', 'tblTempUsageDetail_20' ) start [2025-03-20 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720423', 'tblTempUsageDetail_20' ) end [2025-03-20 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:34:21] Production.INFO: ==11529== Releasing lock... [2025-03-20 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:35:06 [end_date_ymd] => 2025-03-20 04:35:06 [RateCDR] => 1 ) [2025-03-20 04:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:35:06' and `end` < '2025-03-20 04:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:35:18] Production.INFO: count ==478 [2025-03-20 04:35:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:35:06 - End Time 2025-03-20 04:35:06 [2025-03-20 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720428', 'tblTempUsageDetail_20' ) start [2025-03-20 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720428', 'tblTempUsageDetail_20' ) end [2025-03-20 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720428', 'tblTempVendorCDR_20' ) start [2025-03-20 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720428', 'tblTempVendorCDR_20' ) end [2025-03-20 04:35:18] Production.INFO: ProcessCDR(1,14720428,1,1,2) [2025-03-20 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720428', 'tblTempUsageDetail_20' ) start [2025-03-20 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720428', 'tblTempUsageDetail_20' ) end [2025-03-20 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:35:21] Production.INFO: ==11649== Releasing lock... [2025-03-20 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:36:05 [end_date_ymd] => 2025-03-20 04:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:36:17] Production.INFO: count ==478 [2025-03-20 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:36:05 - End Time 2025-03-20 04:36:05 [2025-03-20 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720433', 'tblTempUsageDetail_20' ) start [2025-03-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720433', 'tblTempUsageDetail_20' ) end [2025-03-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720433', 'tblTempVendorCDR_20' ) start [2025-03-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720433', 'tblTempVendorCDR_20' ) end [2025-03-20 04:36:17] Production.INFO: ProcessCDR(1,14720433,1,1,2) [2025-03-20 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720433', 'tblTempUsageDetail_20' ) start [2025-03-20 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720433', 'tblTempUsageDetail_20' ) end [2025-03-20 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:36:20] Production.INFO: ==11725== Releasing lock... [2025-03-20 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:36:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:37:05 [end_date_ymd] => 2025-03-20 04:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:37:17] Production.INFO: count ==477 [2025-03-20 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:37:05 - End Time 2025-03-20 04:37:05 [2025-03-20 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720438', 'tblTempUsageDetail_20' ) start [2025-03-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720438', 'tblTempUsageDetail_20' ) end [2025-03-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720438', 'tblTempVendorCDR_20' ) start [2025-03-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720438', 'tblTempVendorCDR_20' ) end [2025-03-20 04:37:17] Production.INFO: ProcessCDR(1,14720438,1,1,2) [2025-03-20 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720438', 'tblTempUsageDetail_20' ) start [2025-03-20 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720438', 'tblTempUsageDetail_20' ) end [2025-03-20 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:37:21] Production.INFO: ==11807== Releasing lock... [2025-03-20 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:38:05 [end_date_ymd] => 2025-03-20 04:38:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:38:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:38:17] Production.INFO: count ==476 [2025-03-20 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:38:05 - End Time 2025-03-20 04:38:05 [2025-03-20 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720443', 'tblTempUsageDetail_20' ) start [2025-03-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720443', 'tblTempUsageDetail_20' ) end [2025-03-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720443', 'tblTempVendorCDR_20' ) start [2025-03-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720443', 'tblTempVendorCDR_20' ) end [2025-03-20 04:38:17] Production.INFO: ProcessCDR(1,14720443,1,1,2) [2025-03-20 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720443', 'tblTempUsageDetail_20' ) start [2025-03-20 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720443', 'tblTempUsageDetail_20' ) end [2025-03-20 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:38:20] Production.INFO: ==11885== Releasing lock... [2025-03-20 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:38:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:39:05 [end_date_ymd] => 2025-03-20 04:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:39:17] Production.INFO: count ==476 [2025-03-20 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:39:05 - End Time 2025-03-20 04:39:05 [2025-03-20 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720448', 'tblTempUsageDetail_20' ) start [2025-03-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720448', 'tblTempUsageDetail_20' ) end [2025-03-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720448', 'tblTempVendorCDR_20' ) start [2025-03-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720448', 'tblTempVendorCDR_20' ) end [2025-03-20 04:39:17] Production.INFO: ProcessCDR(1,14720448,1,1,2) [2025-03-20 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720448', 'tblTempUsageDetail_20' ) start [2025-03-20 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720448', 'tblTempUsageDetail_20' ) end [2025-03-20 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:39:20] Production.INFO: ==11965== Releasing lock... [2025-03-20 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:39:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:40:06 [end_date_ymd] => 2025-03-20 04:40:06 [RateCDR] => 1 ) [2025-03-20 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:40:06' and `end` < '2025-03-20 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:40:18] Production.INFO: count ==468 [2025-03-20 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:40:06 - End Time 2025-03-20 04:40:06 [2025-03-20 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720454', 'tblTempUsageDetail_20' ) start [2025-03-20 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720454', 'tblTempUsageDetail_20' ) end [2025-03-20 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720454', 'tblTempVendorCDR_20' ) start [2025-03-20 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720454', 'tblTempVendorCDR_20' ) end [2025-03-20 04:40:18] Production.INFO: ProcessCDR(1,14720454,1,1,2) [2025-03-20 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720454', 'tblTempUsageDetail_20' ) start [2025-03-20 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720454', 'tblTempUsageDetail_20' ) end [2025-03-20 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:40:21] Production.INFO: ==12045== Releasing lock... [2025-03-20 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:40:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:41:05 [end_date_ymd] => 2025-03-20 04:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:41:17] Production.INFO: count ==451 [2025-03-20 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:41:05 - End Time 2025-03-20 04:41:05 [2025-03-20 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720459', 'tblTempUsageDetail_20' ) start [2025-03-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720459', 'tblTempUsageDetail_20' ) end [2025-03-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720459', 'tblTempVendorCDR_20' ) start [2025-03-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720459', 'tblTempVendorCDR_20' ) end [2025-03-20 04:41:17] Production.INFO: ProcessCDR(1,14720459,1,1,2) [2025-03-20 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720459', 'tblTempUsageDetail_20' ) start [2025-03-20 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720459', 'tblTempUsageDetail_20' ) end [2025-03-20 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:41:21] Production.INFO: ==12129== Releasing lock... [2025-03-20 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:41:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:42:05 [end_date_ymd] => 2025-03-20 04:42:05 [RateCDR] => 1 ) [2025-03-20 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:42:05' and `end` < '2025-03-20 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:42:17] Production.INFO: count ==451 [2025-03-20 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:42:05 - End Time 2025-03-20 04:42:05 [2025-03-20 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720464', 'tblTempUsageDetail_20' ) start [2025-03-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720464', 'tblTempUsageDetail_20' ) end [2025-03-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720464', 'tblTempVendorCDR_20' ) start [2025-03-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720464', 'tblTempVendorCDR_20' ) end [2025-03-20 04:42:17] Production.INFO: ProcessCDR(1,14720464,1,1,2) [2025-03-20 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720464', 'tblTempUsageDetail_20' ) start [2025-03-20 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720464', 'tblTempUsageDetail_20' ) end [2025-03-20 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:42:21] Production.INFO: ==12212== Releasing lock... [2025-03-20 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:43:05 [end_date_ymd] => 2025-03-20 04:43:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:43:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:43:17] Production.INFO: count ==451 [2025-03-20 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:43:05 - End Time 2025-03-20 04:43:05 [2025-03-20 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720469', 'tblTempUsageDetail_20' ) start [2025-03-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720469', 'tblTempUsageDetail_20' ) end [2025-03-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720469', 'tblTempVendorCDR_20' ) start [2025-03-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720469', 'tblTempVendorCDR_20' ) end [2025-03-20 04:43:17] Production.INFO: ProcessCDR(1,14720469,1,1,2) [2025-03-20 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720469', 'tblTempUsageDetail_20' ) start [2025-03-20 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720469', 'tblTempUsageDetail_20' ) end [2025-03-20 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:43:21] Production.INFO: ==12291== Releasing lock... [2025-03-20 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:43:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:44:04 [end_date_ymd] => 2025-03-20 04:44:04 [RateCDR] => 1 ) [2025-03-20 04:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:44:04' and `end` < '2025-03-20 04:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:44:17] Production.INFO: count ==451 [2025-03-20 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:44:04 - End Time 2025-03-20 04:44:04 [2025-03-20 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720474', 'tblTempUsageDetail_20' ) start [2025-03-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720474', 'tblTempUsageDetail_20' ) end [2025-03-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720474', 'tblTempVendorCDR_20' ) start [2025-03-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720474', 'tblTempVendorCDR_20' ) end [2025-03-20 04:44:17] Production.INFO: ProcessCDR(1,14720474,1,1,2) [2025-03-20 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720474', 'tblTempUsageDetail_20' ) start [2025-03-20 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720474', 'tblTempUsageDetail_20' ) end [2025-03-20 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:44:20] Production.INFO: ==12370== Releasing lock... [2025-03-20 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:44:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:45:05 [end_date_ymd] => 2025-03-20 04:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:45:05' and `end` < '2025-03-20 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:45:17] Production.INFO: count ==451 [2025-03-20 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:45:05 - End Time 2025-03-20 04:45:05 [2025-03-20 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720479', 'tblTempUsageDetail_20' ) start [2025-03-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720479', 'tblTempUsageDetail_20' ) end [2025-03-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720479', 'tblTempVendorCDR_20' ) start [2025-03-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720479', 'tblTempVendorCDR_20' ) end [2025-03-20 04:45:17] Production.INFO: ProcessCDR(1,14720479,1,1,2) [2025-03-20 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720479', 'tblTempUsageDetail_20' ) start [2025-03-20 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720479', 'tblTempUsageDetail_20' ) end [2025-03-20 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:45:21] Production.INFO: ==12446== Releasing lock... [2025-03-20 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-20 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:46:06 [end_date_ymd] => 2025-03-20 04:46:06 [RateCDR] => 1 ) [2025-03-20 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:46:06' and `end` < '2025-03-20 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:46:19] Production.INFO: count ==448 [2025-03-20 04:46:19] Production.ERROR: pbx CDR StartTime 2025-03-20 01:46:06 - End Time 2025-03-20 04:46:06 [2025-03-20 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720484', 'tblTempUsageDetail_20' ) start [2025-03-20 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720484', 'tblTempUsageDetail_20' ) end [2025-03-20 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720484', 'tblTempVendorCDR_20' ) start [2025-03-20 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720484', 'tblTempVendorCDR_20' ) end [2025-03-20 04:46:19] Production.INFO: ProcessCDR(1,14720484,1,1,2) [2025-03-20 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720484', 'tblTempUsageDetail_20' ) start [2025-03-20 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720484', 'tblTempUsageDetail_20' ) end [2025-03-20 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:46:23] Production.INFO: ==12520== Releasing lock... [2025-03-20 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:46:23] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:47:06 [end_date_ymd] => 2025-03-20 04:47:06 [RateCDR] => 1 ) [2025-03-20 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:47:06' and `end` < '2025-03-20 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:47:18] Production.INFO: count ==448 [2025-03-20 04:47:19] Production.ERROR: pbx CDR StartTime 2025-03-20 01:47:06 - End Time 2025-03-20 04:47:06 [2025-03-20 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720489', 'tblTempUsageDetail_20' ) start [2025-03-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720489', 'tblTempUsageDetail_20' ) end [2025-03-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720489', 'tblTempVendorCDR_20' ) start [2025-03-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720489', 'tblTempVendorCDR_20' ) end [2025-03-20 04:47:19] Production.INFO: ProcessCDR(1,14720489,1,1,2) [2025-03-20 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720489', 'tblTempUsageDetail_20' ) start [2025-03-20 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720489', 'tblTempUsageDetail_20' ) end [2025-03-20 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:47:22] Production.INFO: ==12592== Releasing lock... [2025-03-20 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:47:22] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:48:06 [end_date_ymd] => 2025-03-20 04:48:06 [RateCDR] => 1 ) [2025-03-20 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:48:06' and `end` < '2025-03-20 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:48:18] Production.INFO: count ==448 [2025-03-20 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:48:06 - End Time 2025-03-20 04:48:06 [2025-03-20 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720494', 'tblTempUsageDetail_20' ) start [2025-03-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720494', 'tblTempUsageDetail_20' ) end [2025-03-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720494', 'tblTempVendorCDR_20' ) start [2025-03-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720494', 'tblTempVendorCDR_20' ) end [2025-03-20 04:48:18] Production.INFO: ProcessCDR(1,14720494,1,1,2) [2025-03-20 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720494', 'tblTempUsageDetail_20' ) start [2025-03-20 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720494', 'tblTempUsageDetail_20' ) end [2025-03-20 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:48:22] Production.INFO: ==12669== Releasing lock... [2025-03-20 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:48:22] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:49:05 [end_date_ymd] => 2025-03-20 04:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:49:17] Production.INFO: count ==448 [2025-03-20 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:49:05 - End Time 2025-03-20 04:49:05 [2025-03-20 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720499', 'tblTempUsageDetail_20' ) start [2025-03-20 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720499', 'tblTempUsageDetail_20' ) end [2025-03-20 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720499', 'tblTempVendorCDR_20' ) start [2025-03-20 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720499', 'tblTempVendorCDR_20' ) end [2025-03-20 04:49:18] Production.INFO: ProcessCDR(1,14720499,1,1,2) [2025-03-20 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720499', 'tblTempUsageDetail_20' ) start [2025-03-20 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720499', 'tblTempUsageDetail_20' ) end [2025-03-20 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:49:21] Production.INFO: ==12743== Releasing lock... [2025-03-20 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:49:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:50:06 [end_date_ymd] => 2025-03-20 04:50:06 [RateCDR] => 1 ) [2025-03-20 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:50:06' and `end` < '2025-03-20 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:50:19] Production.INFO: count ==448 [2025-03-20 04:50:20] Production.ERROR: pbx CDR StartTime 2025-03-20 01:50:06 - End Time 2025-03-20 04:50:06 [2025-03-20 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720505', 'tblTempUsageDetail_20' ) start [2025-03-20 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720505', 'tblTempUsageDetail_20' ) end [2025-03-20 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720505', 'tblTempVendorCDR_20' ) start [2025-03-20 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720505', 'tblTempVendorCDR_20' ) end [2025-03-20 04:50:20] Production.INFO: ProcessCDR(1,14720505,1,1,2) [2025-03-20 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720505', 'tblTempUsageDetail_20' ) start [2025-03-20 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720505', 'tblTempUsageDetail_20' ) end [2025-03-20 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:50:23] Production.INFO: ==12854== Releasing lock... [2025-03-20 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:50:23] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:51:05 [end_date_ymd] => 2025-03-20 04:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:51:17] Production.INFO: count ==448 [2025-03-20 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:51:05 - End Time 2025-03-20 04:51:05 [2025-03-20 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720510', 'tblTempUsageDetail_20' ) start [2025-03-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720510', 'tblTempUsageDetail_20' ) end [2025-03-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720510', 'tblTempVendorCDR_20' ) start [2025-03-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720510', 'tblTempVendorCDR_20' ) end [2025-03-20 04:51:18] Production.INFO: ProcessCDR(1,14720510,1,1,2) [2025-03-20 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720510', 'tblTempUsageDetail_20' ) start [2025-03-20 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720510', 'tblTempUsageDetail_20' ) end [2025-03-20 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:51:21] Production.INFO: ==12931== Releasing lock... [2025-03-20 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:51:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:52:05 [end_date_ymd] => 2025-03-20 04:52:05 [RateCDR] => 1 ) [2025-03-20 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:52:05' and `end` < '2025-03-20 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:52:17] Production.INFO: count ==441 [2025-03-20 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:52:05 - End Time 2025-03-20 04:52:05 [2025-03-20 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720515', 'tblTempUsageDetail_20' ) start [2025-03-20 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720515', 'tblTempUsageDetail_20' ) end [2025-03-20 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720515', 'tblTempVendorCDR_20' ) start [2025-03-20 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720515', 'tblTempVendorCDR_20' ) end [2025-03-20 04:52:18] Production.INFO: ProcessCDR(1,14720515,1,1,2) [2025-03-20 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720515', 'tblTempUsageDetail_20' ) start [2025-03-20 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720515', 'tblTempUsageDetail_20' ) end [2025-03-20 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:52:21] Production.INFO: ==13005== Releasing lock... [2025-03-20 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:53:06 [end_date_ymd] => 2025-03-20 04:53:06 [RateCDR] => 1 ) [2025-03-20 04:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:53:06' and `end` < '2025-03-20 04:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:53:19] Production.INFO: count ==437 [2025-03-20 04:53:19] Production.ERROR: pbx CDR StartTime 2025-03-20 01:53:06 - End Time 2025-03-20 04:53:06 [2025-03-20 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720520', 'tblTempUsageDetail_20' ) start [2025-03-20 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720520', 'tblTempUsageDetail_20' ) end [2025-03-20 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720520', 'tblTempVendorCDR_20' ) start [2025-03-20 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720520', 'tblTempVendorCDR_20' ) end [2025-03-20 04:53:19] Production.INFO: ProcessCDR(1,14720520,1,1,2) [2025-03-20 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720520', 'tblTempUsageDetail_20' ) start [2025-03-20 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720520', 'tblTempUsageDetail_20' ) end [2025-03-20 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:53:22] Production.INFO: ==13096== Releasing lock... [2025-03-20 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:54:05 [end_date_ymd] => 2025-03-20 04:54:05 [RateCDR] => 1 ) [2025-03-20 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:54:05' and `end` < '2025-03-20 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:54:17] Production.INFO: count ==427 [2025-03-20 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:54:05 - End Time 2025-03-20 04:54:05 [2025-03-20 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720525', 'tblTempUsageDetail_20' ) start [2025-03-20 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720525', 'tblTempUsageDetail_20' ) end [2025-03-20 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720525', 'tblTempVendorCDR_20' ) start [2025-03-20 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720525', 'tblTempVendorCDR_20' ) end [2025-03-20 04:54:18] Production.INFO: ProcessCDR(1,14720525,1,1,2) [2025-03-20 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720525', 'tblTempUsageDetail_20' ) start [2025-03-20 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720525', 'tblTempUsageDetail_20' ) end [2025-03-20 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:54:21] Production.INFO: ==13168== Releasing lock... [2025-03-20 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:54:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:55:05 [end_date_ymd] => 2025-03-20 04:55:05 [RateCDR] => 1 ) [2025-03-20 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:55:05' and `end` < '2025-03-20 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:55:18] Production.INFO: count ==420 [2025-03-20 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:55:05 - End Time 2025-03-20 04:55:05 [2025-03-20 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720530', 'tblTempUsageDetail_20' ) start [2025-03-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720530', 'tblTempUsageDetail_20' ) end [2025-03-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720530', 'tblTempVendorCDR_20' ) start [2025-03-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720530', 'tblTempVendorCDR_20' ) end [2025-03-20 04:55:18] Production.INFO: ProcessCDR(1,14720530,1,1,2) [2025-03-20 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720530', 'tblTempUsageDetail_20' ) start [2025-03-20 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720530', 'tblTempUsageDetail_20' ) end [2025-03-20 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:55:21] Production.INFO: ==13246== Releasing lock... [2025-03-20 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:55:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:56:06 [end_date_ymd] => 2025-03-20 04:56:06 [RateCDR] => 1 ) [2025-03-20 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:56:06' and `end` < '2025-03-20 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:56:21] Production.INFO: count ==414 [2025-03-20 04:56:21] Production.ERROR: pbx CDR StartTime 2025-03-20 01:56:06 - End Time 2025-03-20 04:56:06 [2025-03-20 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720535', 'tblTempUsageDetail_20' ) start [2025-03-20 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720535', 'tblTempUsageDetail_20' ) end [2025-03-20 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720535', 'tblTempVendorCDR_20' ) start [2025-03-20 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720535', 'tblTempVendorCDR_20' ) end [2025-03-20 04:56:21] Production.INFO: ProcessCDR(1,14720535,1,1,2) [2025-03-20 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720535', 'tblTempUsageDetail_20' ) start [2025-03-20 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720535', 'tblTempUsageDetail_20' ) end [2025-03-20 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:56:24] Production.INFO: ==13327== Releasing lock... [2025-03-20 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:56:24] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:57:05 [end_date_ymd] => 2025-03-20 04:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:57:17] Production.INFO: count ==400 [2025-03-20 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-20 01:57:05 - End Time 2025-03-20 04:57:05 [2025-03-20 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720540', 'tblTempUsageDetail_20' ) start [2025-03-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720540', 'tblTempUsageDetail_20' ) end [2025-03-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720540', 'tblTempVendorCDR_20' ) start [2025-03-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720540', 'tblTempVendorCDR_20' ) end [2025-03-20 04:57:18] Production.INFO: ProcessCDR(1,14720540,1,1,2) [2025-03-20 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720540', 'tblTempUsageDetail_20' ) start [2025-03-20 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720540', 'tblTempUsageDetail_20' ) end [2025-03-20 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:57:21] Production.INFO: ==13399== Releasing lock... [2025-03-20 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:57:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:58:06 [end_date_ymd] => 2025-03-20 04:58:06 [RateCDR] => 1 ) [2025-03-20 04:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 01:58:06' and `end` < '2025-03-20 04:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 04:58:20] Production.INFO: count ==385 [2025-03-20 04:58:20] Production.ERROR: pbx CDR StartTime 2025-03-20 01:58:06 - End Time 2025-03-20 04:58:06 [2025-03-20 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720545', 'tblTempUsageDetail_20' ) start [2025-03-20 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720545', 'tblTempUsageDetail_20' ) end [2025-03-20 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720545', 'tblTempVendorCDR_20' ) start [2025-03-20 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720545', 'tblTempVendorCDR_20' ) end [2025-03-20 04:58:20] Production.INFO: ProcessCDR(1,14720545,1,1,2) [2025-03-20 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720545', 'tblTempUsageDetail_20' ) start [2025-03-20 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720545', 'tblTempUsageDetail_20' ) end [2025-03-20 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:58:23] Production.INFO: ==13471== Releasing lock... [2025-03-20 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:58:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-20 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 01:59:05 [end_date_ymd] => 2025-03-20 04:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 01:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 04:59:17] Production.INFO: count ==381 [2025-03-20 04:59:17] Production.ERROR: pbx CDR StartTime 2025-03-20 01:59:05 - End Time 2025-03-20 04:59:05 [2025-03-20 04:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720550', 'tblTempUsageDetail_20' ) start [2025-03-20 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720550', 'tblTempUsageDetail_20' ) end [2025-03-20 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720550', 'tblTempVendorCDR_20' ) start [2025-03-20 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720550', 'tblTempVendorCDR_20' ) end [2025-03-20 04:59:17] Production.INFO: ProcessCDR(1,14720550,1,1,2) [2025-03-20 04:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 04:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720550', 'tblTempUsageDetail_20' ) start [2025-03-20 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720550', 'tblTempUsageDetail_20' ) end [2025-03-20 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 04:59:21] Production.INFO: ==13541== Releasing lock... [2025-03-20 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 04:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:00:06 [end_date_ymd] => 2025-03-20 05:00:06 [RateCDR] => 1 ) [2025-03-20 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:00:06' and `end` < '2025-03-20 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:00:19] Production.INFO: count ==361 [2025-03-20 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 02:00:06 - End Time 2025-03-20 05:00:06 [2025-03-20 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720556', 'tblTempUsageDetail_20' ) start [2025-03-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720556', 'tblTempUsageDetail_20' ) end [2025-03-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720556', 'tblTempVendorCDR_20' ) start [2025-03-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720556', 'tblTempVendorCDR_20' ) end [2025-03-20 05:00:19] Production.INFO: ProcessCDR(1,14720556,1,1,2) [2025-03-20 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720556', 'tblTempUsageDetail_20' ) start [2025-03-20 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720556', 'tblTempUsageDetail_20' ) end [2025-03-20 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:00:22] Production.INFO: ==13616== Releasing lock... [2025-03-20 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:01:05 [end_date_ymd] => 2025-03-20 05:01:05 [RateCDR] => 1 ) [2025-03-20 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:01:05' and `end` < '2025-03-20 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:01:17] Production.INFO: count ==345 [2025-03-20 05:01:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:01:05 - End Time 2025-03-20 05:01:05 [2025-03-20 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720561', 'tblTempUsageDetail_20' ) start [2025-03-20 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720561', 'tblTempUsageDetail_20' ) end [2025-03-20 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720561', 'tblTempVendorCDR_20' ) start [2025-03-20 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720561', 'tblTempVendorCDR_20' ) end [2025-03-20 05:01:17] Production.INFO: ProcessCDR(1,14720561,1,1,2) [2025-03-20 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720561', 'tblTempUsageDetail_20' ) start [2025-03-20 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720561', 'tblTempUsageDetail_20' ) end [2025-03-20 05:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:01:20] Production.INFO: ==13703== Releasing lock... [2025-03-20 05:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:01:20] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:02:05 [end_date_ymd] => 2025-03-20 05:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:02:19] Production.INFO: count ==342 [2025-03-20 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-20 02:02:05 - End Time 2025-03-20 05:02:05 [2025-03-20 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720566', 'tblTempUsageDetail_20' ) start [2025-03-20 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720566', 'tblTempUsageDetail_20' ) end [2025-03-20 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720566', 'tblTempVendorCDR_20' ) start [2025-03-20 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720566', 'tblTempVendorCDR_20' ) end [2025-03-20 05:02:19] Production.INFO: ProcessCDR(1,14720566,1,1,2) [2025-03-20 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720566', 'tblTempUsageDetail_20' ) start [2025-03-20 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720566', 'tblTempUsageDetail_20' ) end [2025-03-20 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:02:23] Production.INFO: ==13776== Releasing lock... [2025-03-20 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:02:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:03:05 [end_date_ymd] => 2025-03-20 05:03:05 [RateCDR] => 1 ) [2025-03-20 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:03:05' and `end` < '2025-03-20 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:03:17] Production.INFO: count ==339 [2025-03-20 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:03:05 - End Time 2025-03-20 05:03:05 [2025-03-20 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720571', 'tblTempUsageDetail_20' ) start [2025-03-20 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720571', 'tblTempUsageDetail_20' ) end [2025-03-20 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720571', 'tblTempVendorCDR_20' ) start [2025-03-20 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720571', 'tblTempVendorCDR_20' ) end [2025-03-20 05:03:17] Production.INFO: ProcessCDR(1,14720571,1,1,2) [2025-03-20 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720571', 'tblTempUsageDetail_20' ) start [2025-03-20 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720571', 'tblTempUsageDetail_20' ) end [2025-03-20 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:03:21] Production.INFO: ==13848== Releasing lock... [2025-03-20 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:04:05 [end_date_ymd] => 2025-03-20 05:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:04:18] Production.INFO: count ==337 [2025-03-20 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:04:05 - End Time 2025-03-20 05:04:05 [2025-03-20 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720576', 'tblTempUsageDetail_20' ) start [2025-03-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720576', 'tblTempUsageDetail_20' ) end [2025-03-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720576', 'tblTempVendorCDR_20' ) start [2025-03-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720576', 'tblTempVendorCDR_20' ) end [2025-03-20 05:04:18] Production.INFO: ProcessCDR(1,14720576,1,1,2) [2025-03-20 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720576', 'tblTempUsageDetail_20' ) start [2025-03-20 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720576', 'tblTempUsageDetail_20' ) end [2025-03-20 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:04:21] Production.INFO: ==13924== Releasing lock... [2025-03-20 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:04:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:05:05 [end_date_ymd] => 2025-03-20 05:05:05 [RateCDR] => 1 ) [2025-03-20 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:05:05' and `end` < '2025-03-20 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:05:17] Production.INFO: count ==337 [2025-03-20 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:05:05 - End Time 2025-03-20 05:05:05 [2025-03-20 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720581', 'tblTempUsageDetail_20' ) start [2025-03-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720581', 'tblTempUsageDetail_20' ) end [2025-03-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720581', 'tblTempVendorCDR_20' ) start [2025-03-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720581', 'tblTempVendorCDR_20' ) end [2025-03-20 05:05:17] Production.INFO: ProcessCDR(1,14720581,1,1,2) [2025-03-20 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720581', 'tblTempUsageDetail_20' ) start [2025-03-20 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720581', 'tblTempUsageDetail_20' ) end [2025-03-20 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:05:20] Production.INFO: ==13995== Releasing lock... [2025-03-20 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:05:20] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:06:05 [end_date_ymd] => 2025-03-20 05:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:06:18] Production.INFO: count ==337 [2025-03-20 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:06:05 - End Time 2025-03-20 05:06:05 [2025-03-20 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720586', 'tblTempUsageDetail_20' ) start [2025-03-20 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720586', 'tblTempUsageDetail_20' ) end [2025-03-20 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720586', 'tblTempVendorCDR_20' ) start [2025-03-20 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720586', 'tblTempVendorCDR_20' ) end [2025-03-20 05:06:18] Production.INFO: ProcessCDR(1,14720586,1,1,2) [2025-03-20 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720586', 'tblTempUsageDetail_20' ) start [2025-03-20 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720586', 'tblTempUsageDetail_20' ) end [2025-03-20 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:06:21] Production.INFO: ==14106== Releasing lock... [2025-03-20 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:06:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:07:05 [end_date_ymd] => 2025-03-20 05:07:05 [RateCDR] => 1 ) [2025-03-20 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:07:05' and `end` < '2025-03-20 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:07:17] Production.INFO: count ==337 [2025-03-20 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:07:05 - End Time 2025-03-20 05:07:05 [2025-03-20 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720591', 'tblTempUsageDetail_20' ) start [2025-03-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720591', 'tblTempUsageDetail_20' ) end [2025-03-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720591', 'tblTempVendorCDR_20' ) start [2025-03-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720591', 'tblTempVendorCDR_20' ) end [2025-03-20 05:07:17] Production.INFO: ProcessCDR(1,14720591,1,1,2) [2025-03-20 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720591', 'tblTempUsageDetail_20' ) start [2025-03-20 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720591', 'tblTempUsageDetail_20' ) end [2025-03-20 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:07:21] Production.INFO: ==14181== Releasing lock... [2025-03-20 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:07:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:08:05 [end_date_ymd] => 2025-03-20 05:08:05 [RateCDR] => 1 ) [2025-03-20 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:08:05' and `end` < '2025-03-20 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:08:17] Production.INFO: count ==342 [2025-03-20 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:08:05 - End Time 2025-03-20 05:08:05 [2025-03-20 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720596', 'tblTempUsageDetail_20' ) start [2025-03-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720596', 'tblTempUsageDetail_20' ) end [2025-03-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720596', 'tblTempVendorCDR_20' ) start [2025-03-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720596', 'tblTempVendorCDR_20' ) end [2025-03-20 05:08:17] Production.INFO: ProcessCDR(1,14720596,1,1,2) [2025-03-20 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720596', 'tblTempUsageDetail_20' ) start [2025-03-20 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720596', 'tblTempUsageDetail_20' ) end [2025-03-20 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:08:20] Production.INFO: ==14256== Releasing lock... [2025-03-20 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:08:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:09:05 [end_date_ymd] => 2025-03-20 05:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:09:18] Production.INFO: count ==342 [2025-03-20 05:09:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:09:05 - End Time 2025-03-20 05:09:05 [2025-03-20 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720601', 'tblTempUsageDetail_20' ) start [2025-03-20 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720601', 'tblTempUsageDetail_20' ) end [2025-03-20 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720601', 'tblTempVendorCDR_20' ) start [2025-03-20 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720601', 'tblTempVendorCDR_20' ) end [2025-03-20 05:09:18] Production.INFO: ProcessCDR(1,14720601,1,1,2) [2025-03-20 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720601', 'tblTempUsageDetail_20' ) start [2025-03-20 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720601', 'tblTempUsageDetail_20' ) end [2025-03-20 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:09:21] Production.INFO: ==14326== Releasing lock... [2025-03-20 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:10:06 [end_date_ymd] => 2025-03-20 05:10:06 [RateCDR] => 1 ) [2025-03-20 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:10:06' and `end` < '2025-03-20 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:10:18] Production.INFO: count ==342 [2025-03-20 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:10:06 - End Time 2025-03-20 05:10:06 [2025-03-20 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720607', 'tblTempUsageDetail_20' ) start [2025-03-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720607', 'tblTempUsageDetail_20' ) end [2025-03-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720607', 'tblTempVendorCDR_20' ) start [2025-03-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720607', 'tblTempVendorCDR_20' ) end [2025-03-20 05:10:18] Production.INFO: ProcessCDR(1,14720607,1,1,2) [2025-03-20 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720607', 'tblTempUsageDetail_20' ) start [2025-03-20 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720607', 'tblTempUsageDetail_20' ) end [2025-03-20 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:10:21] Production.INFO: ==14401== Releasing lock... [2025-03-20 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:10:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:11:05 [end_date_ymd] => 2025-03-20 05:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:11:17] Production.INFO: count ==342 [2025-03-20 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:11:05 - End Time 2025-03-20 05:11:05 [2025-03-20 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720612', 'tblTempUsageDetail_20' ) start [2025-03-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720612', 'tblTempUsageDetail_20' ) end [2025-03-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720612', 'tblTempVendorCDR_20' ) start [2025-03-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720612', 'tblTempVendorCDR_20' ) end [2025-03-20 05:11:17] Production.INFO: ProcessCDR(1,14720612,1,1,2) [2025-03-20 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720612', 'tblTempUsageDetail_20' ) start [2025-03-20 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720612', 'tblTempUsageDetail_20' ) end [2025-03-20 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:11:20] Production.INFO: ==14478== Releasing lock... [2025-03-20 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:11:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:12:05 [end_date_ymd] => 2025-03-20 05:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:12:17] Production.INFO: count ==342 [2025-03-20 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:12:05 - End Time 2025-03-20 05:12:05 [2025-03-20 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720617', 'tblTempUsageDetail_20' ) start [2025-03-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720617', 'tblTempUsageDetail_20' ) end [2025-03-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720617', 'tblTempVendorCDR_20' ) start [2025-03-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720617', 'tblTempVendorCDR_20' ) end [2025-03-20 05:12:17] Production.INFO: ProcessCDR(1,14720617,1,1,2) [2025-03-20 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720617', 'tblTempUsageDetail_20' ) start [2025-03-20 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720617', 'tblTempUsageDetail_20' ) end [2025-03-20 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:12:21] Production.INFO: ==14550== Releasing lock... [2025-03-20 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:13:06 [end_date_ymd] => 2025-03-20 05:13:06 [RateCDR] => 1 ) [2025-03-20 05:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:13:06' and `end` < '2025-03-20 05:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:13:18] Production.INFO: count ==342 [2025-03-20 05:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:13:06 - End Time 2025-03-20 05:13:06 [2025-03-20 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720622', 'tblTempUsageDetail_20' ) start [2025-03-20 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720622', 'tblTempUsageDetail_20' ) end [2025-03-20 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720622', 'tblTempVendorCDR_20' ) start [2025-03-20 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720622', 'tblTempVendorCDR_20' ) end [2025-03-20 05:13:18] Production.INFO: ProcessCDR(1,14720622,1,1,2) [2025-03-20 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720622', 'tblTempUsageDetail_20' ) start [2025-03-20 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720622', 'tblTempUsageDetail_20' ) end [2025-03-20 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:13:21] Production.INFO: ==14626== Releasing lock... [2025-03-20 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:13:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:14:05 [end_date_ymd] => 2025-03-20 05:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:14:17] Production.INFO: count ==337 [2025-03-20 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:14:05 - End Time 2025-03-20 05:14:05 [2025-03-20 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720627', 'tblTempUsageDetail_20' ) start [2025-03-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720627', 'tblTempUsageDetail_20' ) end [2025-03-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720627', 'tblTempVendorCDR_20' ) start [2025-03-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720627', 'tblTempVendorCDR_20' ) end [2025-03-20 05:14:17] Production.INFO: ProcessCDR(1,14720627,1,1,2) [2025-03-20 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720627', 'tblTempUsageDetail_20' ) start [2025-03-20 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720627', 'tblTempUsageDetail_20' ) end [2025-03-20 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:14:21] Production.INFO: ==14700== Releasing lock... [2025-03-20 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:14:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:15:06 [end_date_ymd] => 2025-03-20 05:15:06 [RateCDR] => 1 ) [2025-03-20 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:15:06' and `end` < '2025-03-20 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:15:18] Production.INFO: count ==334 [2025-03-20 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:15:06 - End Time 2025-03-20 05:15:06 [2025-03-20 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720632', 'tblTempUsageDetail_20' ) start [2025-03-20 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720632', 'tblTempUsageDetail_20' ) end [2025-03-20 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720632', 'tblTempVendorCDR_20' ) start [2025-03-20 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720632', 'tblTempVendorCDR_20' ) end [2025-03-20 05:15:18] Production.INFO: ProcessCDR(1,14720632,1,1,2) [2025-03-20 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720632', 'tblTempUsageDetail_20' ) start [2025-03-20 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720632', 'tblTempUsageDetail_20' ) end [2025-03-20 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:15:21] Production.INFO: ==14772== Releasing lock... [2025-03-20 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:16:06 [end_date_ymd] => 2025-03-20 05:16:06 [RateCDR] => 1 ) [2025-03-20 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:16:06' and `end` < '2025-03-20 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:16:18] Production.INFO: count ==332 [2025-03-20 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:16:06 - End Time 2025-03-20 05:16:06 [2025-03-20 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720637', 'tblTempUsageDetail_20' ) start [2025-03-20 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720637', 'tblTempUsageDetail_20' ) end [2025-03-20 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720637', 'tblTempVendorCDR_20' ) start [2025-03-20 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720637', 'tblTempVendorCDR_20' ) end [2025-03-20 05:16:18] Production.INFO: ProcessCDR(1,14720637,1,1,2) [2025-03-20 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720637', 'tblTempUsageDetail_20' ) start [2025-03-20 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720637', 'tblTempUsageDetail_20' ) end [2025-03-20 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:16:21] Production.INFO: ==14848== Releasing lock... [2025-03-20 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:17:05 [end_date_ymd] => 2025-03-20 05:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:17:18] Production.INFO: count ==332 [2025-03-20 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:17:05 - End Time 2025-03-20 05:17:05 [2025-03-20 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720642', 'tblTempUsageDetail_20' ) start [2025-03-20 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720642', 'tblTempUsageDetail_20' ) end [2025-03-20 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720642', 'tblTempVendorCDR_20' ) start [2025-03-20 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720642', 'tblTempVendorCDR_20' ) end [2025-03-20 05:17:18] Production.INFO: ProcessCDR(1,14720642,1,1,2) [2025-03-20 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720642', 'tblTempUsageDetail_20' ) start [2025-03-20 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720642', 'tblTempUsageDetail_20' ) end [2025-03-20 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:17:21] Production.INFO: ==14921== Releasing lock... [2025-03-20 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:18:05 [end_date_ymd] => 2025-03-20 05:18:05 [RateCDR] => 1 ) [2025-03-20 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:18:05' and `end` < '2025-03-20 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:18:17] Production.INFO: count ==332 [2025-03-20 05:18:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:18:05 - End Time 2025-03-20 05:18:05 [2025-03-20 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720647', 'tblTempUsageDetail_20' ) start [2025-03-20 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720647', 'tblTempUsageDetail_20' ) end [2025-03-20 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720647', 'tblTempVendorCDR_20' ) start [2025-03-20 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720647', 'tblTempVendorCDR_20' ) end [2025-03-20 05:18:18] Production.INFO: ProcessCDR(1,14720647,1,1,2) [2025-03-20 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720647', 'tblTempUsageDetail_20' ) start [2025-03-20 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720647', 'tblTempUsageDetail_20' ) end [2025-03-20 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:18:21] Production.INFO: ==15009== Releasing lock... [2025-03-20 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:19:05 [end_date_ymd] => 2025-03-20 05:19:05 [RateCDR] => 1 ) [2025-03-20 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:19:05' and `end` < '2025-03-20 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:19:17] Production.INFO: count ==332 [2025-03-20 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:19:05 - End Time 2025-03-20 05:19:05 [2025-03-20 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720652', 'tblTempUsageDetail_20' ) start [2025-03-20 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720652', 'tblTempUsageDetail_20' ) end [2025-03-20 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720652', 'tblTempVendorCDR_20' ) start [2025-03-20 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720652', 'tblTempVendorCDR_20' ) end [2025-03-20 05:19:18] Production.INFO: ProcessCDR(1,14720652,1,1,2) [2025-03-20 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720652', 'tblTempUsageDetail_20' ) start [2025-03-20 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720652', 'tblTempUsageDetail_20' ) end [2025-03-20 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:19:21] Production.INFO: ==15082== Releasing lock... [2025-03-20 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:20:05 [end_date_ymd] => 2025-03-20 05:20:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:20:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:20:18] Production.INFO: count ==332 [2025-03-20 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:20:05 - End Time 2025-03-20 05:20:05 [2025-03-20 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720658', 'tblTempUsageDetail_20' ) start [2025-03-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720658', 'tblTempUsageDetail_20' ) end [2025-03-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720658', 'tblTempVendorCDR_20' ) start [2025-03-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720658', 'tblTempVendorCDR_20' ) end [2025-03-20 05:20:18] Production.INFO: ProcessCDR(1,14720658,1,1,2) [2025-03-20 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720658', 'tblTempUsageDetail_20' ) start [2025-03-20 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720658', 'tblTempUsageDetail_20' ) end [2025-03-20 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:20:21] Production.INFO: ==15157== Releasing lock... [2025-03-20 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:20:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:21:06 [end_date_ymd] => 2025-03-20 05:21:06 [RateCDR] => 1 ) [2025-03-20 05:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:21:06' and `end` < '2025-03-20 05:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:21:18] Production.INFO: count ==332 [2025-03-20 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:21:06 - End Time 2025-03-20 05:21:06 [2025-03-20 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720663', 'tblTempUsageDetail_20' ) start [2025-03-20 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720663', 'tblTempUsageDetail_20' ) end [2025-03-20 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720663', 'tblTempVendorCDR_20' ) start [2025-03-20 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720663', 'tblTempVendorCDR_20' ) end [2025-03-20 05:21:18] Production.INFO: ProcessCDR(1,14720663,1,1,2) [2025-03-20 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720663', 'tblTempUsageDetail_20' ) start [2025-03-20 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720663', 'tblTempUsageDetail_20' ) end [2025-03-20 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:21:21] Production.INFO: ==15272== Releasing lock... [2025-03-20 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:22:05 [end_date_ymd] => 2025-03-20 05:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:22:17] Production.INFO: count ==332 [2025-03-20 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:22:05 - End Time 2025-03-20 05:22:05 [2025-03-20 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720668', 'tblTempUsageDetail_20' ) start [2025-03-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720668', 'tblTempUsageDetail_20' ) end [2025-03-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720668', 'tblTempVendorCDR_20' ) start [2025-03-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720668', 'tblTempVendorCDR_20' ) end [2025-03-20 05:22:17] Production.INFO: ProcessCDR(1,14720668,1,1,2) [2025-03-20 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720668', 'tblTempUsageDetail_20' ) start [2025-03-20 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720668', 'tblTempUsageDetail_20' ) end [2025-03-20 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:22:21] Production.INFO: ==15343== Releasing lock... [2025-03-20 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:23:05 [end_date_ymd] => 2025-03-20 05:23:05 [RateCDR] => 1 ) [2025-03-20 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:23:05' and `end` < '2025-03-20 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:23:17] Production.INFO: count ==332 [2025-03-20 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:23:05 - End Time 2025-03-20 05:23:05 [2025-03-20 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720673', 'tblTempUsageDetail_20' ) start [2025-03-20 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720673', 'tblTempUsageDetail_20' ) end [2025-03-20 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720673', 'tblTempVendorCDR_20' ) start [2025-03-20 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720673', 'tblTempVendorCDR_20' ) end [2025-03-20 05:23:18] Production.INFO: ProcessCDR(1,14720673,1,1,2) [2025-03-20 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720673', 'tblTempUsageDetail_20' ) start [2025-03-20 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720673', 'tblTempUsageDetail_20' ) end [2025-03-20 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:23:21] Production.INFO: ==15418== Releasing lock... [2025-03-20 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:24:05 [end_date_ymd] => 2025-03-20 05:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:24:17] Production.INFO: count ==332 [2025-03-20 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:24:05 - End Time 2025-03-20 05:24:05 [2025-03-20 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720678', 'tblTempUsageDetail_20' ) start [2025-03-20 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720678', 'tblTempUsageDetail_20' ) end [2025-03-20 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720678', 'tblTempVendorCDR_20' ) start [2025-03-20 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720678', 'tblTempVendorCDR_20' ) end [2025-03-20 05:24:17] Production.INFO: ProcessCDR(1,14720678,1,1,2) [2025-03-20 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720678', 'tblTempUsageDetail_20' ) start [2025-03-20 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720678', 'tblTempUsageDetail_20' ) end [2025-03-20 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:24:21] Production.INFO: ==15495== Releasing lock... [2025-03-20 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:25:05 [end_date_ymd] => 2025-03-20 05:25:05 [RateCDR] => 1 ) [2025-03-20 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:25:05' and `end` < '2025-03-20 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:25:17] Production.INFO: count ==332 [2025-03-20 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:25:05 - End Time 2025-03-20 05:25:05 [2025-03-20 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720683', 'tblTempUsageDetail_20' ) start [2025-03-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720683', 'tblTempUsageDetail_20' ) end [2025-03-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720683', 'tblTempVendorCDR_20' ) start [2025-03-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720683', 'tblTempVendorCDR_20' ) end [2025-03-20 05:25:18] Production.INFO: ProcessCDR(1,14720683,1,1,2) [2025-03-20 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720683', 'tblTempUsageDetail_20' ) start [2025-03-20 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720683', 'tblTempUsageDetail_20' ) end [2025-03-20 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:25:21] Production.INFO: ==15565== Releasing lock... [2025-03-20 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:26:05 [end_date_ymd] => 2025-03-20 05:26:05 [RateCDR] => 1 ) [2025-03-20 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:26:05' and `end` < '2025-03-20 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:26:18] Production.INFO: count ==332 [2025-03-20 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:26:05 - End Time 2025-03-20 05:26:05 [2025-03-20 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720688', 'tblTempUsageDetail_20' ) start [2025-03-20 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720688', 'tblTempUsageDetail_20' ) end [2025-03-20 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720688', 'tblTempVendorCDR_20' ) start [2025-03-20 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720688', 'tblTempVendorCDR_20' ) end [2025-03-20 05:26:18] Production.INFO: ProcessCDR(1,14720688,1,1,2) [2025-03-20 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720688', 'tblTempUsageDetail_20' ) start [2025-03-20 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720688', 'tblTempUsageDetail_20' ) end [2025-03-20 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:26:21] Production.INFO: ==15642== Releasing lock... [2025-03-20 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:27:05 [end_date_ymd] => 2025-03-20 05:27:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:27:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:27:17] Production.INFO: count ==332 [2025-03-20 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:27:05 - End Time 2025-03-20 05:27:05 [2025-03-20 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720693', 'tblTempUsageDetail_20' ) start [2025-03-20 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720693', 'tblTempUsageDetail_20' ) end [2025-03-20 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720693', 'tblTempVendorCDR_20' ) start [2025-03-20 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720693', 'tblTempVendorCDR_20' ) end [2025-03-20 05:27:17] Production.INFO: ProcessCDR(1,14720693,1,1,2) [2025-03-20 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720693', 'tblTempUsageDetail_20' ) start [2025-03-20 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720693', 'tblTempUsageDetail_20' ) end [2025-03-20 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:27:21] Production.INFO: ==15714== Releasing lock... [2025-03-20 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:28:06 [end_date_ymd] => 2025-03-20 05:28:06 [RateCDR] => 1 ) [2025-03-20 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:28:06' and `end` < '2025-03-20 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:28:18] Production.INFO: count ==332 [2025-03-20 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:28:06 - End Time 2025-03-20 05:28:06 [2025-03-20 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720698', 'tblTempUsageDetail_20' ) start [2025-03-20 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720698', 'tblTempUsageDetail_20' ) end [2025-03-20 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720698', 'tblTempVendorCDR_20' ) start [2025-03-20 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720698', 'tblTempVendorCDR_20' ) end [2025-03-20 05:28:18] Production.INFO: ProcessCDR(1,14720698,1,1,2) [2025-03-20 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720698', 'tblTempUsageDetail_20' ) start [2025-03-20 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720698', 'tblTempUsageDetail_20' ) end [2025-03-20 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:28:22] Production.INFO: ==15784== Releasing lock... [2025-03-20 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:29:05 [end_date_ymd] => 2025-03-20 05:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:29:17] Production.INFO: count ==332 [2025-03-20 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:29:05 - End Time 2025-03-20 05:29:05 [2025-03-20 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720703', 'tblTempUsageDetail_20' ) start [2025-03-20 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720703', 'tblTempUsageDetail_20' ) end [2025-03-20 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720703', 'tblTempVendorCDR_20' ) start [2025-03-20 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720703', 'tblTempVendorCDR_20' ) end [2025-03-20 05:29:17] Production.INFO: ProcessCDR(1,14720703,1,1,2) [2025-03-20 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720703', 'tblTempUsageDetail_20' ) start [2025-03-20 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720703', 'tblTempUsageDetail_20' ) end [2025-03-20 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:29:21] Production.INFO: ==15859== Releasing lock... [2025-03-20 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:30:07 [end_date_ymd] => 2025-03-20 05:30:07 [RateCDR] => 1 ) [2025-03-20 05:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:30:07' and `end` < '2025-03-20 05:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:30:19] Production.INFO: count ==330 [2025-03-20 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 02:30:07 - End Time 2025-03-20 05:30:07 [2025-03-20 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720709', 'tblTempUsageDetail_20' ) start [2025-03-20 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720709', 'tblTempUsageDetail_20' ) end [2025-03-20 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720709', 'tblTempVendorCDR_20' ) start [2025-03-20 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720709', 'tblTempVendorCDR_20' ) end [2025-03-20 05:30:19] Production.INFO: ProcessCDR(1,14720709,1,1,2) [2025-03-20 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720709', 'tblTempUsageDetail_20' ) start [2025-03-20 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720709', 'tblTempUsageDetail_20' ) end [2025-03-20 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:30:23] Production.INFO: ==15934== Releasing lock... [2025-03-20 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:30:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:31:05 [end_date_ymd] => 2025-03-20 05:31:05 [RateCDR] => 1 ) [2025-03-20 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:31:05' and `end` < '2025-03-20 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:31:17] Production.INFO: count ==330 [2025-03-20 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:31:05 - End Time 2025-03-20 05:31:05 [2025-03-20 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720714', 'tblTempUsageDetail_20' ) start [2025-03-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720714', 'tblTempUsageDetail_20' ) end [2025-03-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720714', 'tblTempVendorCDR_20' ) start [2025-03-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720714', 'tblTempVendorCDR_20' ) end [2025-03-20 05:31:17] Production.INFO: ProcessCDR(1,14720714,1,1,2) [2025-03-20 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720714', 'tblTempUsageDetail_20' ) start [2025-03-20 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720714', 'tblTempUsageDetail_20' ) end [2025-03-20 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:31:20] Production.INFO: ==16009== Releasing lock... [2025-03-20 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:31:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:32:06 [end_date_ymd] => 2025-03-20 05:32:06 [RateCDR] => 1 ) [2025-03-20 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:32:06' and `end` < '2025-03-20 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:32:18] Production.INFO: count ==332 [2025-03-20 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:32:06 - End Time 2025-03-20 05:32:06 [2025-03-20 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720719', 'tblTempUsageDetail_20' ) start [2025-03-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720719', 'tblTempUsageDetail_20' ) end [2025-03-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720719', 'tblTempVendorCDR_20' ) start [2025-03-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720719', 'tblTempVendorCDR_20' ) end [2025-03-20 05:32:18] Production.INFO: ProcessCDR(1,14720719,1,1,2) [2025-03-20 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720719', 'tblTempUsageDetail_20' ) start [2025-03-20 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720719', 'tblTempUsageDetail_20' ) end [2025-03-20 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:32:21] Production.INFO: ==16080== Releasing lock... [2025-03-20 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:33:05 [end_date_ymd] => 2025-03-20 05:33:05 [RateCDR] => 1 ) [2025-03-20 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:33:05' and `end` < '2025-03-20 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:33:17] Production.INFO: count ==335 [2025-03-20 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:33:05 - End Time 2025-03-20 05:33:05 [2025-03-20 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720724', 'tblTempUsageDetail_20' ) start [2025-03-20 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720724', 'tblTempUsageDetail_20' ) end [2025-03-20 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720724', 'tblTempVendorCDR_20' ) start [2025-03-20 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720724', 'tblTempVendorCDR_20' ) end [2025-03-20 05:33:17] Production.INFO: ProcessCDR(1,14720724,1,1,2) [2025-03-20 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720724', 'tblTempUsageDetail_20' ) start [2025-03-20 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720724', 'tblTempUsageDetail_20' ) end [2025-03-20 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:33:21] Production.INFO: ==16156== Releasing lock... [2025-03-20 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:33:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:34:06 [end_date_ymd] => 2025-03-20 05:34:06 [RateCDR] => 1 ) [2025-03-20 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:34:06' and `end` < '2025-03-20 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:34:18] Production.INFO: count ==335 [2025-03-20 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:34:06 - End Time 2025-03-20 05:34:06 [2025-03-20 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720729', 'tblTempUsageDetail_20' ) start [2025-03-20 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720729', 'tblTempUsageDetail_20' ) end [2025-03-20 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720729', 'tblTempVendorCDR_20' ) start [2025-03-20 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720729', 'tblTempVendorCDR_20' ) end [2025-03-20 05:34:18] Production.INFO: ProcessCDR(1,14720729,1,1,2) [2025-03-20 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720729', 'tblTempUsageDetail_20' ) start [2025-03-20 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720729', 'tblTempUsageDetail_20' ) end [2025-03-20 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:34:21] Production.INFO: ==16228== Releasing lock... [2025-03-20 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:34:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:35:05 [end_date_ymd] => 2025-03-20 05:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:35:17] Production.INFO: count ==332 [2025-03-20 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:35:05 - End Time 2025-03-20 05:35:05 [2025-03-20 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720734', 'tblTempUsageDetail_20' ) start [2025-03-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720734', 'tblTempUsageDetail_20' ) end [2025-03-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720734', 'tblTempVendorCDR_20' ) start [2025-03-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720734', 'tblTempVendorCDR_20' ) end [2025-03-20 05:35:17] Production.INFO: ProcessCDR(1,14720734,1,1,2) [2025-03-20 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720734', 'tblTempUsageDetail_20' ) start [2025-03-20 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720734', 'tblTempUsageDetail_20' ) end [2025-03-20 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:35:21] Production.INFO: ==16308== Releasing lock... [2025-03-20 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:36:05 [end_date_ymd] => 2025-03-20 05:36:05 [RateCDR] => 1 ) [2025-03-20 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:36:05' and `end` < '2025-03-20 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:36:17] Production.INFO: count ==330 [2025-03-20 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:36:05 - End Time 2025-03-20 05:36:05 [2025-03-20 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720739', 'tblTempUsageDetail_20' ) start [2025-03-20 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720739', 'tblTempUsageDetail_20' ) end [2025-03-20 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720739', 'tblTempVendorCDR_20' ) start [2025-03-20 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720739', 'tblTempVendorCDR_20' ) end [2025-03-20 05:36:17] Production.INFO: ProcessCDR(1,14720739,1,1,2) [2025-03-20 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720739', 'tblTempUsageDetail_20' ) start [2025-03-20 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720739', 'tblTempUsageDetail_20' ) end [2025-03-20 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:36:21] Production.INFO: ==16385== Releasing lock... [2025-03-20 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:37:05 [end_date_ymd] => 2025-03-20 05:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:37:17] Production.INFO: count ==330 [2025-03-20 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:37:05 - End Time 2025-03-20 05:37:05 [2025-03-20 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720744', 'tblTempUsageDetail_20' ) start [2025-03-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720744', 'tblTempUsageDetail_20' ) end [2025-03-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720744', 'tblTempVendorCDR_20' ) start [2025-03-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720744', 'tblTempVendorCDR_20' ) end [2025-03-20 05:37:17] Production.INFO: ProcessCDR(1,14720744,1,1,2) [2025-03-20 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720744', 'tblTempUsageDetail_20' ) start [2025-03-20 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720744', 'tblTempUsageDetail_20' ) end [2025-03-20 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:37:21] Production.INFO: ==16498== Releasing lock... [2025-03-20 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:38:05 [end_date_ymd] => 2025-03-20 05:38:05 [RateCDR] => 1 ) [2025-03-20 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:38:05' and `end` < '2025-03-20 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:38:18] Production.INFO: count ==330 [2025-03-20 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:38:05 - End Time 2025-03-20 05:38:05 [2025-03-20 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720749', 'tblTempUsageDetail_20' ) start [2025-03-20 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720749', 'tblTempUsageDetail_20' ) end [2025-03-20 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720749', 'tblTempVendorCDR_20' ) start [2025-03-20 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720749', 'tblTempVendorCDR_20' ) end [2025-03-20 05:38:18] Production.INFO: ProcessCDR(1,14720749,1,1,2) [2025-03-20 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720749', 'tblTempUsageDetail_20' ) start [2025-03-20 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720749', 'tblTempUsageDetail_20' ) end [2025-03-20 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:38:21] Production.INFO: ==16577== Releasing lock... [2025-03-20 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:39:05 [end_date_ymd] => 2025-03-20 05:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:39:18] Production.INFO: count ==330 [2025-03-20 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:39:05 - End Time 2025-03-20 05:39:05 [2025-03-20 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720754', 'tblTempUsageDetail_20' ) start [2025-03-20 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720754', 'tblTempUsageDetail_20' ) end [2025-03-20 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720754', 'tblTempVendorCDR_20' ) start [2025-03-20 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720754', 'tblTempVendorCDR_20' ) end [2025-03-20 05:39:18] Production.INFO: ProcessCDR(1,14720754,1,1,2) [2025-03-20 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720754', 'tblTempUsageDetail_20' ) start [2025-03-20 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720754', 'tblTempUsageDetail_20' ) end [2025-03-20 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:39:21] Production.INFO: ==16658== Releasing lock... [2025-03-20 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:40:06 [end_date_ymd] => 2025-03-20 05:40:06 [RateCDR] => 1 ) [2025-03-20 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:40:06' and `end` < '2025-03-20 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:40:18] Production.INFO: count ==328 [2025-03-20 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:40:06 - End Time 2025-03-20 05:40:06 [2025-03-20 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720760', 'tblTempUsageDetail_20' ) start [2025-03-20 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720760', 'tblTempUsageDetail_20' ) end [2025-03-20 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720760', 'tblTempVendorCDR_20' ) start [2025-03-20 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720760', 'tblTempVendorCDR_20' ) end [2025-03-20 05:40:18] Production.INFO: ProcessCDR(1,14720760,1,1,2) [2025-03-20 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720760', 'tblTempUsageDetail_20' ) start [2025-03-20 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720760', 'tblTempUsageDetail_20' ) end [2025-03-20 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:40:22] Production.INFO: ==16739== Releasing lock... [2025-03-20 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:41:06 [end_date_ymd] => 2025-03-20 05:41:06 [RateCDR] => 1 ) [2025-03-20 05:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:41:06' and `end` < '2025-03-20 05:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:41:18] Production.INFO: count ==328 [2025-03-20 05:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:41:06 - End Time 2025-03-20 05:41:06 [2025-03-20 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720765', 'tblTempUsageDetail_20' ) start [2025-03-20 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720765', 'tblTempUsageDetail_20' ) end [2025-03-20 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720765', 'tblTempVendorCDR_20' ) start [2025-03-20 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720765', 'tblTempVendorCDR_20' ) end [2025-03-20 05:41:18] Production.INFO: ProcessCDR(1,14720765,1,1,2) [2025-03-20 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720765', 'tblTempUsageDetail_20' ) start [2025-03-20 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720765', 'tblTempUsageDetail_20' ) end [2025-03-20 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:41:21] Production.INFO: ==16817== Releasing lock... [2025-03-20 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:42:05 [end_date_ymd] => 2025-03-20 05:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:42:17] Production.INFO: count ==325 [2025-03-20 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:42:05 - End Time 2025-03-20 05:42:05 [2025-03-20 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720770', 'tblTempUsageDetail_20' ) start [2025-03-20 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720770', 'tblTempUsageDetail_20' ) end [2025-03-20 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720770', 'tblTempVendorCDR_20' ) start [2025-03-20 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720770', 'tblTempVendorCDR_20' ) end [2025-03-20 05:42:17] Production.INFO: ProcessCDR(1,14720770,1,1,2) [2025-03-20 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720770', 'tblTempUsageDetail_20' ) start [2025-03-20 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720770', 'tblTempUsageDetail_20' ) end [2025-03-20 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:42:21] Production.INFO: ==16891== Releasing lock... [2025-03-20 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-20 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:43:05 [end_date_ymd] => 2025-03-20 05:43:05 [RateCDR] => 1 ) [2025-03-20 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:43:05' and `end` < '2025-03-20 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:43:18] Production.INFO: count ==325 [2025-03-20 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:43:05 - End Time 2025-03-20 05:43:05 [2025-03-20 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720775', 'tblTempUsageDetail_20' ) start [2025-03-20 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720775', 'tblTempUsageDetail_20' ) end [2025-03-20 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720775', 'tblTempVendorCDR_20' ) start [2025-03-20 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720775', 'tblTempVendorCDR_20' ) end [2025-03-20 05:43:18] Production.INFO: ProcessCDR(1,14720775,1,1,2) [2025-03-20 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720775', 'tblTempUsageDetail_20' ) start [2025-03-20 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720775', 'tblTempUsageDetail_20' ) end [2025-03-20 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:43:21] Production.INFO: ==16972== Releasing lock... [2025-03-20 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-20 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:44:05 [end_date_ymd] => 2025-03-20 05:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:44:17] Production.INFO: count ==313 [2025-03-20 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:44:05 - End Time 2025-03-20 05:44:05 [2025-03-20 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720780', 'tblTempUsageDetail_20' ) start [2025-03-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720780', 'tblTempUsageDetail_20' ) end [2025-03-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720780', 'tblTempVendorCDR_20' ) start [2025-03-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720780', 'tblTempVendorCDR_20' ) end [2025-03-20 05:44:17] Production.INFO: ProcessCDR(1,14720780,1,1,2) [2025-03-20 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720780', 'tblTempUsageDetail_20' ) start [2025-03-20 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720780', 'tblTempUsageDetail_20' ) end [2025-03-20 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:44:20] Production.INFO: ==17052== Releasing lock... [2025-03-20 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:44:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-20 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:45:06 [end_date_ymd] => 2025-03-20 05:45:06 [RateCDR] => 1 ) [2025-03-20 05:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:45:06' and `end` < '2025-03-20 05:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:45:18] Production.INFO: count ==308 [2025-03-20 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:45:06 - End Time 2025-03-20 05:45:06 [2025-03-20 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720785', 'tblTempUsageDetail_20' ) start [2025-03-20 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720785', 'tblTempUsageDetail_20' ) end [2025-03-20 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720785', 'tblTempVendorCDR_20' ) start [2025-03-20 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720785', 'tblTempVendorCDR_20' ) end [2025-03-20 05:45:18] Production.INFO: ProcessCDR(1,14720785,1,1,2) [2025-03-20 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720785', 'tblTempUsageDetail_20' ) start [2025-03-20 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720785', 'tblTempUsageDetail_20' ) end [2025-03-20 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:45:21] Production.INFO: ==17128== Releasing lock... [2025-03-20 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:45:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:46:05 [end_date_ymd] => 2025-03-20 05:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:46:17] Production.INFO: count ==302 [2025-03-20 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:46:05 - End Time 2025-03-20 05:46:05 [2025-03-20 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720790', 'tblTempUsageDetail_20' ) start [2025-03-20 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720790', 'tblTempUsageDetail_20' ) end [2025-03-20 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720790', 'tblTempVendorCDR_20' ) start [2025-03-20 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720790', 'tblTempVendorCDR_20' ) end [2025-03-20 05:46:17] Production.INFO: ProcessCDR(1,14720790,1,1,2) [2025-03-20 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720790', 'tblTempUsageDetail_20' ) start [2025-03-20 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720790', 'tblTempUsageDetail_20' ) end [2025-03-20 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:46:21] Production.INFO: ==17210== Releasing lock... [2025-03-20 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:46:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:47:05 [end_date_ymd] => 2025-03-20 05:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:47:17] Production.INFO: count ==290 [2025-03-20 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:47:05 - End Time 2025-03-20 05:47:05 [2025-03-20 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720795', 'tblTempUsageDetail_20' ) start [2025-03-20 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720795', 'tblTempUsageDetail_20' ) end [2025-03-20 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720795', 'tblTempVendorCDR_20' ) start [2025-03-20 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720795', 'tblTempVendorCDR_20' ) end [2025-03-20 05:47:18] Production.INFO: ProcessCDR(1,14720795,1,1,2) [2025-03-20 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720795', 'tblTempUsageDetail_20' ) start [2025-03-20 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720795', 'tblTempUsageDetail_20' ) end [2025-03-20 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:47:21] Production.INFO: ==17301== Releasing lock... [2025-03-20 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-20 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:48:06 [end_date_ymd] => 2025-03-20 05:48:06 [RateCDR] => 1 ) [2025-03-20 05:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:48:06' and `end` < '2025-03-20 05:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:48:18] Production.INFO: count ==283 [2025-03-20 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:48:06 - End Time 2025-03-20 05:48:06 [2025-03-20 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720800', 'tblTempUsageDetail_20' ) start [2025-03-20 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720800', 'tblTempUsageDetail_20' ) end [2025-03-20 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720800', 'tblTempVendorCDR_20' ) start [2025-03-20 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720800', 'tblTempVendorCDR_20' ) end [2025-03-20 05:48:18] Production.INFO: ProcessCDR(1,14720800,1,1,2) [2025-03-20 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720800', 'tblTempUsageDetail_20' ) start [2025-03-20 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720800', 'tblTempUsageDetail_20' ) end [2025-03-20 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:48:22] Production.INFO: ==17378== Releasing lock... [2025-03-20 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:48:22] Production.INFO: 31 MB #Memory Used# [2025-03-20 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:49:05 [end_date_ymd] => 2025-03-20 05:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:49:17] Production.INFO: count ==273 [2025-03-20 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:49:05 - End Time 2025-03-20 05:49:05 [2025-03-20 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720805', 'tblTempUsageDetail_20' ) start [2025-03-20 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720805', 'tblTempUsageDetail_20' ) end [2025-03-20 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720805', 'tblTempVendorCDR_20' ) start [2025-03-20 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720805', 'tblTempVendorCDR_20' ) end [2025-03-20 05:49:18] Production.INFO: ProcessCDR(1,14720805,1,1,2) [2025-03-20 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720805', 'tblTempUsageDetail_20' ) start [2025-03-20 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720805', 'tblTempUsageDetail_20' ) end [2025-03-20 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:49:21] Production.INFO: ==17461== Releasing lock... [2025-03-20 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-20 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:50:05 [end_date_ymd] => 2025-03-20 05:50:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:50:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:50:17] Production.INFO: count ==257 [2025-03-20 05:50:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:50:05 - End Time 2025-03-20 05:50:05 [2025-03-20 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720811', 'tblTempUsageDetail_20' ) start [2025-03-20 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720811', 'tblTempUsageDetail_20' ) end [2025-03-20 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720811', 'tblTempVendorCDR_20' ) start [2025-03-20 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720811', 'tblTempVendorCDR_20' ) end [2025-03-20 05:50:17] Production.INFO: ProcessCDR(1,14720811,1,1,2) [2025-03-20 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720811', 'tblTempUsageDetail_20' ) start [2025-03-20 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720811', 'tblTempUsageDetail_20' ) end [2025-03-20 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:50:21] Production.INFO: ==17542== Releasing lock... [2025-03-20 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:50:21] Production.INFO: 30 MB #Memory Used# [2025-03-20 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:51:05 [end_date_ymd] => 2025-03-20 05:51:05 [RateCDR] => 1 ) [2025-03-20 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:51:05' and `end` < '2025-03-20 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:51:17] Production.INFO: count ==235 [2025-03-20 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:51:05 - End Time 2025-03-20 05:51:05 [2025-03-20 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720816', 'tblTempUsageDetail_20' ) start [2025-03-20 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720816', 'tblTempUsageDetail_20' ) end [2025-03-20 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720816', 'tblTempVendorCDR_20' ) start [2025-03-20 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720816', 'tblTempVendorCDR_20' ) end [2025-03-20 05:51:17] Production.INFO: ProcessCDR(1,14720816,1,1,2) [2025-03-20 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720816', 'tblTempUsageDetail_20' ) start [2025-03-20 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720816', 'tblTempUsageDetail_20' ) end [2025-03-20 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:51:21] Production.INFO: ==17623== Releasing lock... [2025-03-20 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:51:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-20 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:52:06 [end_date_ymd] => 2025-03-20 05:52:06 [RateCDR] => 1 ) [2025-03-20 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:52:06' and `end` < '2025-03-20 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:52:18] Production.INFO: count ==225 [2025-03-20 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:52:06 - End Time 2025-03-20 05:52:06 [2025-03-20 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720821', 'tblTempUsageDetail_20' ) start [2025-03-20 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720821', 'tblTempUsageDetail_20' ) end [2025-03-20 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720821', 'tblTempVendorCDR_20' ) start [2025-03-20 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720821', 'tblTempVendorCDR_20' ) end [2025-03-20 05:52:18] Production.INFO: ProcessCDR(1,14720821,1,1,2) [2025-03-20 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720821', 'tblTempUsageDetail_20' ) start [2025-03-20 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720821', 'tblTempUsageDetail_20' ) end [2025-03-20 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:52:22] Production.INFO: ==17745== Releasing lock... [2025-03-20 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-20 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:53:06 [end_date_ymd] => 2025-03-20 05:53:06 [RateCDR] => 1 ) [2025-03-20 05:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:53:06' and `end` < '2025-03-20 05:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:53:18] Production.INFO: count ==215 [2025-03-20 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:53:06 - End Time 2025-03-20 05:53:06 [2025-03-20 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720826', 'tblTempUsageDetail_20' ) start [2025-03-20 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720826', 'tblTempUsageDetail_20' ) end [2025-03-20 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720826', 'tblTempVendorCDR_20' ) start [2025-03-20 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720826', 'tblTempVendorCDR_20' ) end [2025-03-20 05:53:18] Production.INFO: ProcessCDR(1,14720826,1,1,2) [2025-03-20 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720826', 'tblTempUsageDetail_20' ) start [2025-03-20 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720826', 'tblTempUsageDetail_20' ) end [2025-03-20 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:53:21] Production.INFO: ==17831== Releasing lock... [2025-03-20 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:53:21] Production.INFO: 30 MB #Memory Used# [2025-03-20 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:54:06 [end_date_ymd] => 2025-03-20 05:54:06 [RateCDR] => 1 ) [2025-03-20 05:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:54:06' and `end` < '2025-03-20 05:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:54:18] Production.INFO: count ==206 [2025-03-20 05:54:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:54:06 - End Time 2025-03-20 05:54:06 [2025-03-20 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720831', 'tblTempUsageDetail_20' ) start [2025-03-20 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720831', 'tblTempUsageDetail_20' ) end [2025-03-20 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720831', 'tblTempVendorCDR_20' ) start [2025-03-20 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720831', 'tblTempVendorCDR_20' ) end [2025-03-20 05:54:18] Production.INFO: ProcessCDR(1,14720831,1,1,2) [2025-03-20 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720831', 'tblTempUsageDetail_20' ) start [2025-03-20 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720831', 'tblTempUsageDetail_20' ) end [2025-03-20 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:54:22] Production.INFO: ==17910== Releasing lock... [2025-03-20 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-20 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:55:05 [end_date_ymd] => 2025-03-20 05:55:05 [RateCDR] => 1 ) [2025-03-20 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:55:05' and `end` < '2025-03-20 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:55:18] Production.INFO: count ==207 [2025-03-20 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:55:05 - End Time 2025-03-20 05:55:05 [2025-03-20 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720836', 'tblTempUsageDetail_20' ) start [2025-03-20 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720836', 'tblTempUsageDetail_20' ) end [2025-03-20 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720836', 'tblTempVendorCDR_20' ) start [2025-03-20 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720836', 'tblTempVendorCDR_20' ) end [2025-03-20 05:55:18] Production.INFO: ProcessCDR(1,14720836,1,1,2) [2025-03-20 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720836', 'tblTempUsageDetail_20' ) start [2025-03-20 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720836', 'tblTempUsageDetail_20' ) end [2025-03-20 05:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:55:23] Production.INFO: ==17994== Releasing lock... [2025-03-20 05:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:55:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-20 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:56:06 [end_date_ymd] => 2025-03-20 05:56:06 [RateCDR] => 1 ) [2025-03-20 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:56:06' and `end` < '2025-03-20 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:56:18] Production.INFO: count ==202 [2025-03-20 05:56:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:56:06 - End Time 2025-03-20 05:56:06 [2025-03-20 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720841', 'tblTempUsageDetail_20' ) start [2025-03-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720841', 'tblTempUsageDetail_20' ) end [2025-03-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720841', 'tblTempVendorCDR_20' ) start [2025-03-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720841', 'tblTempVendorCDR_20' ) end [2025-03-20 05:56:18] Production.INFO: ProcessCDR(1,14720841,1,1,2) [2025-03-20 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720841', 'tblTempUsageDetail_20' ) start [2025-03-20 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720841', 'tblTempUsageDetail_20' ) end [2025-03-20 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:56:21] Production.INFO: ==18077== Releasing lock... [2025-03-20 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-20 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:57:05 [end_date_ymd] => 2025-03-20 05:57:05 [RateCDR] => 1 ) [2025-03-20 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:57:05' and `end` < '2025-03-20 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:57:17] Production.INFO: count ==193 [2025-03-20 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:57:05 - End Time 2025-03-20 05:57:05 [2025-03-20 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720846', 'tblTempUsageDetail_20' ) start [2025-03-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720846', 'tblTempUsageDetail_20' ) end [2025-03-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720846', 'tblTempVendorCDR_20' ) start [2025-03-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720846', 'tblTempVendorCDR_20' ) end [2025-03-20 05:57:17] Production.INFO: ProcessCDR(1,14720846,1,1,2) [2025-03-20 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720846', 'tblTempUsageDetail_20' ) start [2025-03-20 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720846', 'tblTempUsageDetail_20' ) end [2025-03-20 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:57:21] Production.INFO: ==18159== Releasing lock... [2025-03-20 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-20 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:58:06 [end_date_ymd] => 2025-03-20 05:58:06 [RateCDR] => 1 ) [2025-03-20 05:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 02:58:06' and `end` < '2025-03-20 05:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 05:58:18] Production.INFO: count ==183 [2025-03-20 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 02:58:06 - End Time 2025-03-20 05:58:06 [2025-03-20 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720851', 'tblTempUsageDetail_20' ) start [2025-03-20 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720851', 'tblTempUsageDetail_20' ) end [2025-03-20 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720851', 'tblTempVendorCDR_20' ) start [2025-03-20 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720851', 'tblTempVendorCDR_20' ) end [2025-03-20 05:58:18] Production.INFO: ProcessCDR(1,14720851,1,1,2) [2025-03-20 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720851', 'tblTempUsageDetail_20' ) start [2025-03-20 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720851', 'tblTempUsageDetail_20' ) end [2025-03-20 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:58:21] Production.INFO: ==18241== Releasing lock... [2025-03-20 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-20 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 02:59:05 [end_date_ymd] => 2025-03-20 05:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 02:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 05:59:17] Production.INFO: count ==178 [2025-03-20 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-20 02:59:05 - End Time 2025-03-20 05:59:05 [2025-03-20 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720856', 'tblTempUsageDetail_20' ) start [2025-03-20 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720856', 'tblTempUsageDetail_20' ) end [2025-03-20 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720856', 'tblTempVendorCDR_20' ) start [2025-03-20 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720856', 'tblTempVendorCDR_20' ) end [2025-03-20 05:59:17] Production.INFO: ProcessCDR(1,14720856,1,1,2) [2025-03-20 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720856', 'tblTempUsageDetail_20' ) start [2025-03-20 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720856', 'tblTempUsageDetail_20' ) end [2025-03-20 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 05:59:21] Production.INFO: ==18324== Releasing lock... [2025-03-20 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 05:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-20 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:00:06 [end_date_ymd] => 2025-03-20 06:00:06 [RateCDR] => 1 ) [2025-03-20 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:00:06' and `end` < '2025-03-20 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:00:19] Production.INFO: count ==160 [2025-03-20 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 03:00:06 - End Time 2025-03-20 06:00:06 [2025-03-20 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720862', 'tblTempUsageDetail_20' ) start [2025-03-20 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720862', 'tblTempUsageDetail_20' ) end [2025-03-20 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720862', 'tblTempVendorCDR_20' ) start [2025-03-20 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720862', 'tblTempVendorCDR_20' ) end [2025-03-20 06:00:19] Production.INFO: ProcessCDR(1,14720862,1,1,2) [2025-03-20 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720862', 'tblTempUsageDetail_20' ) start [2025-03-20 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720862', 'tblTempUsageDetail_20' ) end [2025-03-20 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:00:23] Production.INFO: ==18409== Releasing lock... [2025-03-20 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:01:05 [end_date_ymd] => 2025-03-20 06:01:05 [RateCDR] => 1 ) [2025-03-20 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:01:05' and `end` < '2025-03-20 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:01:17] Production.INFO: count ==150 [2025-03-20 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:01:05 - End Time 2025-03-20 06:01:05 [2025-03-20 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720867', 'tblTempUsageDetail_20' ) start [2025-03-20 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720867', 'tblTempUsageDetail_20' ) end [2025-03-20 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720867', 'tblTempVendorCDR_20' ) start [2025-03-20 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720867', 'tblTempVendorCDR_20' ) end [2025-03-20 06:01:17] Production.INFO: ProcessCDR(1,14720867,1,1,2) [2025-03-20 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720867', 'tblTempUsageDetail_20' ) start [2025-03-20 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720867', 'tblTempUsageDetail_20' ) end [2025-03-20 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:01:20] Production.INFO: ==18506== Releasing lock... [2025-03-20 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:01:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:02:06 [end_date_ymd] => 2025-03-20 06:02:06 [RateCDR] => 1 ) [2025-03-20 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:02:06' and `end` < '2025-03-20 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:02:18] Production.INFO: count ==145 [2025-03-20 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:02:06 - End Time 2025-03-20 06:02:06 [2025-03-20 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720872', 'tblTempUsageDetail_20' ) start [2025-03-20 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720872', 'tblTempUsageDetail_20' ) end [2025-03-20 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720872', 'tblTempVendorCDR_20' ) start [2025-03-20 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720872', 'tblTempVendorCDR_20' ) end [2025-03-20 06:02:18] Production.INFO: ProcessCDR(1,14720872,1,1,2) [2025-03-20 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720872', 'tblTempUsageDetail_20' ) start [2025-03-20 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720872', 'tblTempUsageDetail_20' ) end [2025-03-20 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:02:22] Production.INFO: ==18589== Releasing lock... [2025-03-20 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-20 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:03:05 [end_date_ymd] => 2025-03-20 06:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:03:17] Production.INFO: count ==135 [2025-03-20 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:03:05 - End Time 2025-03-20 06:03:05 [2025-03-20 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720877', 'tblTempUsageDetail_20' ) start [2025-03-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720877', 'tblTempUsageDetail_20' ) end [2025-03-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720877', 'tblTempVendorCDR_20' ) start [2025-03-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720877', 'tblTempVendorCDR_20' ) end [2025-03-20 06:03:17] Production.INFO: ProcessCDR(1,14720877,1,1,2) [2025-03-20 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720877', 'tblTempUsageDetail_20' ) start [2025-03-20 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720877', 'tblTempUsageDetail_20' ) end [2025-03-20 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:03:20] Production.INFO: ==18666== Releasing lock... [2025-03-20 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:04:06 [end_date_ymd] => 2025-03-20 06:04:06 [RateCDR] => 1 ) [2025-03-20 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:04:06' and `end` < '2025-03-20 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:04:18] Production.INFO: count ==125 [2025-03-20 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:04:06 - End Time 2025-03-20 06:04:06 [2025-03-20 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720882', 'tblTempUsageDetail_20' ) start [2025-03-20 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720882', 'tblTempUsageDetail_20' ) end [2025-03-20 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720882', 'tblTempVendorCDR_20' ) start [2025-03-20 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720882', 'tblTempVendorCDR_20' ) end [2025-03-20 06:04:18] Production.INFO: ProcessCDR(1,14720882,1,1,2) [2025-03-20 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720882', 'tblTempUsageDetail_20' ) start [2025-03-20 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720882', 'tblTempUsageDetail_20' ) end [2025-03-20 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:04:21] Production.INFO: ==18748== Releasing lock... [2025-03-20 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:05:05 [end_date_ymd] => 2025-03-20 06:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:05:17] Production.INFO: count ==120 [2025-03-20 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:05:05 - End Time 2025-03-20 06:05:05 [2025-03-20 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720887', 'tblTempUsageDetail_20' ) start [2025-03-20 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720887', 'tblTempUsageDetail_20' ) end [2025-03-20 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720887', 'tblTempVendorCDR_20' ) start [2025-03-20 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720887', 'tblTempVendorCDR_20' ) end [2025-03-20 06:05:17] Production.INFO: ProcessCDR(1,14720887,1,1,2) [2025-03-20 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720887', 'tblTempUsageDetail_20' ) start [2025-03-20 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720887', 'tblTempUsageDetail_20' ) end [2025-03-20 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:05:21] Production.INFO: ==18831== Releasing lock... [2025-03-20 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:05:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:06:06 [end_date_ymd] => 2025-03-20 06:06:06 [RateCDR] => 1 ) [2025-03-20 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:06:06' and `end` < '2025-03-20 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:06:18] Production.INFO: count ==111 [2025-03-20 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:06:06 - End Time 2025-03-20 06:06:06 [2025-03-20 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720892', 'tblTempUsageDetail_20' ) start [2025-03-20 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720892', 'tblTempUsageDetail_20' ) end [2025-03-20 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720892', 'tblTempVendorCDR_20' ) start [2025-03-20 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720892', 'tblTempVendorCDR_20' ) end [2025-03-20 06:06:18] Production.INFO: ProcessCDR(1,14720892,1,1,2) [2025-03-20 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720892', 'tblTempUsageDetail_20' ) start [2025-03-20 06:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720892', 'tblTempUsageDetail_20' ) end [2025-03-20 06:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:06:23] Production.INFO: ==18911== Releasing lock... [2025-03-20 06:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:06:23] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:07:05 [end_date_ymd] => 2025-03-20 06:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:07:17] Production.INFO: count ==101 [2025-03-20 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:07:05 - End Time 2025-03-20 06:07:05 [2025-03-20 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720897', 'tblTempUsageDetail_20' ) start [2025-03-20 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720897', 'tblTempUsageDetail_20' ) end [2025-03-20 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720897', 'tblTempVendorCDR_20' ) start [2025-03-20 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720897', 'tblTempVendorCDR_20' ) end [2025-03-20 06:07:17] Production.INFO: ProcessCDR(1,14720897,1,1,2) [2025-03-20 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720897', 'tblTempUsageDetail_20' ) start [2025-03-20 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720897', 'tblTempUsageDetail_20' ) end [2025-03-20 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:07:21] Production.INFO: ==18993== Releasing lock... [2025-03-20 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:08:05 [end_date_ymd] => 2025-03-20 06:08:05 [RateCDR] => 1 ) [2025-03-20 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:08:05' and `end` < '2025-03-20 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:08:18] Production.INFO: count ==96 [2025-03-20 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:08:05 - End Time 2025-03-20 06:08:05 [2025-03-20 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720902', 'tblTempUsageDetail_20' ) start [2025-03-20 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720902', 'tblTempUsageDetail_20' ) end [2025-03-20 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720902', 'tblTempVendorCDR_20' ) start [2025-03-20 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720902', 'tblTempVendorCDR_20' ) end [2025-03-20 06:08:18] Production.INFO: ProcessCDR(1,14720902,1,1,2) [2025-03-20 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720902', 'tblTempUsageDetail_20' ) start [2025-03-20 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720902', 'tblTempUsageDetail_20' ) end [2025-03-20 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:08:21] Production.INFO: ==19123== Releasing lock... [2025-03-20 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:09:05 [end_date_ymd] => 2025-03-20 06:09:05 [RateCDR] => 1 ) [2025-03-20 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:09:05' and `end` < '2025-03-20 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:09:17] Production.INFO: count ==87 [2025-03-20 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:09:05 - End Time 2025-03-20 06:09:05 [2025-03-20 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720907', 'tblTempUsageDetail_20' ) start [2025-03-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720907', 'tblTempUsageDetail_20' ) end [2025-03-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720907', 'tblTempVendorCDR_20' ) start [2025-03-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720907', 'tblTempVendorCDR_20' ) end [2025-03-20 06:09:17] Production.INFO: ProcessCDR(1,14720907,1,1,2) [2025-03-20 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720907', 'tblTempUsageDetail_20' ) start [2025-03-20 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720907', 'tblTempUsageDetail_20' ) end [2025-03-20 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:09:20] Production.INFO: ==19198== Releasing lock... [2025-03-20 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:09:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:10:06 [end_date_ymd] => 2025-03-20 06:10:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:10:06' and `end` < '2025-03-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 ,'') [2025-03-20 06:10:18] Production.INFO: count ==87 [2025-03-20 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:10:06 - End Time 2025-03-20 06:10:06 [2025-03-20 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720913', 'tblTempUsageDetail_20' ) start [2025-03-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720913', 'tblTempUsageDetail_20' ) end [2025-03-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720913', 'tblTempVendorCDR_20' ) start [2025-03-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720913', 'tblTempVendorCDR_20' ) end [2025-03-20 06:10:18] Production.INFO: ProcessCDR(1,14720913,1,1,2) [2025-03-20 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720913', 'tblTempUsageDetail_20' ) start [2025-03-20 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720913', 'tblTempUsageDetail_20' ) end [2025-03-20 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:10:22] Production.INFO: ==19284== Releasing lock... [2025-03-20 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:10:22] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:11:05 [end_date_ymd] => 2025-03-20 06:11:05 [RateCDR] => 1 ) [2025-03-20 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:11:05' and `end` < '2025-03-20 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:11:17] Production.INFO: count ==87 [2025-03-20 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:11:05 - End Time 2025-03-20 06:11:05 [2025-03-20 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720918', 'tblTempUsageDetail_20' ) start [2025-03-20 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720918', 'tblTempUsageDetail_20' ) end [2025-03-20 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720918', 'tblTempVendorCDR_20' ) start [2025-03-20 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720918', 'tblTempVendorCDR_20' ) end [2025-03-20 06:11:17] Production.INFO: ProcessCDR(1,14720918,1,1,2) [2025-03-20 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720918', 'tblTempUsageDetail_20' ) start [2025-03-20 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720918', 'tblTempUsageDetail_20' ) end [2025-03-20 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:11:20] Production.INFO: ==19368== Releasing lock... [2025-03-20 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:11:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:12:05 [end_date_ymd] => 2025-03-20 06:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:12:17] Production.INFO: count ==87 [2025-03-20 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:12:05 - End Time 2025-03-20 06:12:05 [2025-03-20 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720923', 'tblTempUsageDetail_20' ) start [2025-03-20 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720923', 'tblTempUsageDetail_20' ) end [2025-03-20 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720923', 'tblTempVendorCDR_20' ) start [2025-03-20 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720923', 'tblTempVendorCDR_20' ) end [2025-03-20 06:12:17] Production.INFO: ProcessCDR(1,14720923,1,1,2) [2025-03-20 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720923', 'tblTempUsageDetail_20' ) start [2025-03-20 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720923', 'tblTempUsageDetail_20' ) end [2025-03-20 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:12:21] Production.INFO: ==19446== Releasing lock... [2025-03-20 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:12:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:13:05 [end_date_ymd] => 2025-03-20 06:13:05 [RateCDR] => 1 ) [2025-03-20 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:13:05' and `end` < '2025-03-20 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:13:17] Production.INFO: count ==87 [2025-03-20 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:13:05 - End Time 2025-03-20 06:13:05 [2025-03-20 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720928', 'tblTempUsageDetail_20' ) start [2025-03-20 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720928', 'tblTempUsageDetail_20' ) end [2025-03-20 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720928', 'tblTempVendorCDR_20' ) start [2025-03-20 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720928', 'tblTempVendorCDR_20' ) end [2025-03-20 06:13:17] Production.INFO: ProcessCDR(1,14720928,1,1,2) [2025-03-20 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720928', 'tblTempUsageDetail_20' ) start [2025-03-20 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720928', 'tblTempUsageDetail_20' ) end [2025-03-20 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:13:21] Production.INFO: ==19526== Releasing lock... [2025-03-20 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:13:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:14:06 [end_date_ymd] => 2025-03-20 06:14:06 [RateCDR] => 1 ) [2025-03-20 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:14:06' and `end` < '2025-03-20 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:14:18] Production.INFO: count ==87 [2025-03-20 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:14:06 - End Time 2025-03-20 06:14:06 [2025-03-20 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720933', 'tblTempUsageDetail_20' ) start [2025-03-20 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720933', 'tblTempUsageDetail_20' ) end [2025-03-20 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720933', 'tblTempVendorCDR_20' ) start [2025-03-20 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720933', 'tblTempVendorCDR_20' ) end [2025-03-20 06:14:18] Production.INFO: ProcessCDR(1,14720933,1,1,2) [2025-03-20 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720933', 'tblTempUsageDetail_20' ) start [2025-03-20 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720933', 'tblTempUsageDetail_20' ) end [2025-03-20 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:14:21] Production.INFO: ==19609== Releasing lock... [2025-03-20 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:14:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:15:05 [end_date_ymd] => 2025-03-20 06:15:05 [RateCDR] => 1 ) [2025-03-20 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:15:05' and `end` < '2025-03-20 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:15:17] Production.INFO: count ==87 [2025-03-20 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:15:05 - End Time 2025-03-20 06:15:05 [2025-03-20 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720938', 'tblTempUsageDetail_20' ) start [2025-03-20 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720938', 'tblTempUsageDetail_20' ) end [2025-03-20 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720938', 'tblTempVendorCDR_20' ) start [2025-03-20 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720938', 'tblTempVendorCDR_20' ) end [2025-03-20 06:15:17] Production.INFO: ProcessCDR(1,14720938,1,1,2) [2025-03-20 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720938', 'tblTempUsageDetail_20' ) start [2025-03-20 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720938', 'tblTempUsageDetail_20' ) end [2025-03-20 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:15:21] Production.INFO: ==19686== Releasing lock... [2025-03-20 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:15:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:16:05 [end_date_ymd] => 2025-03-20 06:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:16:17] Production.INFO: count ==86 [2025-03-20 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:16:05 - End Time 2025-03-20 06:16:05 [2025-03-20 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720943', 'tblTempUsageDetail_20' ) start [2025-03-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720943', 'tblTempUsageDetail_20' ) end [2025-03-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720943', 'tblTempVendorCDR_20' ) start [2025-03-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720943', 'tblTempVendorCDR_20' ) end [2025-03-20 06:16:17] Production.INFO: ProcessCDR(1,14720943,1,1,2) [2025-03-20 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720943', 'tblTempUsageDetail_20' ) start [2025-03-20 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720943', 'tblTempUsageDetail_20' ) end [2025-03-20 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:16:20] Production.INFO: ==19763== Releasing lock... [2025-03-20 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:16:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:17:05 [end_date_ymd] => 2025-03-20 06:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:17:17] Production.INFO: count ==86 [2025-03-20 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:17:05 - End Time 2025-03-20 06:17:05 [2025-03-20 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720948', 'tblTempUsageDetail_20' ) start [2025-03-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720948', 'tblTempUsageDetail_20' ) end [2025-03-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720948', 'tblTempVendorCDR_20' ) start [2025-03-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720948', 'tblTempVendorCDR_20' ) end [2025-03-20 06:17:17] Production.INFO: ProcessCDR(1,14720948,1,1,2) [2025-03-20 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720948', 'tblTempUsageDetail_20' ) start [2025-03-20 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720948', 'tblTempUsageDetail_20' ) end [2025-03-20 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:17:20] Production.INFO: ==19839== Releasing lock... [2025-03-20 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:17:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:18:05 [end_date_ymd] => 2025-03-20 06:18:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:18:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:18:17] Production.INFO: count ==86 [2025-03-20 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:18:05 - End Time 2025-03-20 06:18:05 [2025-03-20 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720953', 'tblTempUsageDetail_20' ) start [2025-03-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720953', 'tblTempUsageDetail_20' ) end [2025-03-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720953', 'tblTempVendorCDR_20' ) start [2025-03-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720953', 'tblTempVendorCDR_20' ) end [2025-03-20 06:18:17] Production.INFO: ProcessCDR(1,14720953,1,1,2) [2025-03-20 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720953', 'tblTempUsageDetail_20' ) start [2025-03-20 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720953', 'tblTempUsageDetail_20' ) end [2025-03-20 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:18:21] Production.INFO: ==19919== Releasing lock... [2025-03-20 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:18:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:19:05 [end_date_ymd] => 2025-03-20 06:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:19:17] Production.INFO: count ==91 [2025-03-20 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:19:05 - End Time 2025-03-20 06:19:05 [2025-03-20 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720958', 'tblTempUsageDetail_20' ) start [2025-03-20 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720958', 'tblTempUsageDetail_20' ) end [2025-03-20 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720958', 'tblTempVendorCDR_20' ) start [2025-03-20 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720958', 'tblTempVendorCDR_20' ) end [2025-03-20 06:19:17] Production.INFO: ProcessCDR(1,14720958,1,1,2) [2025-03-20 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720958', 'tblTempUsageDetail_20' ) start [2025-03-20 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720958', 'tblTempUsageDetail_20' ) end [2025-03-20 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:19:21] Production.INFO: ==19994== Releasing lock... [2025-03-20 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:19:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:20:06 [end_date_ymd] => 2025-03-20 06:20:06 [RateCDR] => 1 ) [2025-03-20 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:20:06' and `end` < '2025-03-20 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:20:19] Production.INFO: count ==91 [2025-03-20 06:20:19] Production.ERROR: pbx CDR StartTime 2025-03-20 03:20:06 - End Time 2025-03-20 06:20:06 [2025-03-20 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720964', 'tblTempUsageDetail_20' ) start [2025-03-20 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720964', 'tblTempUsageDetail_20' ) end [2025-03-20 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720964', 'tblTempVendorCDR_20' ) start [2025-03-20 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720964', 'tblTempVendorCDR_20' ) end [2025-03-20 06:20:19] Production.INFO: ProcessCDR(1,14720964,1,1,2) [2025-03-20 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720964', 'tblTempUsageDetail_20' ) start [2025-03-20 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720964', 'tblTempUsageDetail_20' ) end [2025-03-20 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:20:22] Production.INFO: ==20070== Releasing lock... [2025-03-20 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:20:22] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:21:05 [end_date_ymd] => 2025-03-20 06:21:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:21:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:21:18] Production.INFO: count ==91 [2025-03-20 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:21:05 - End Time 2025-03-20 06:21:05 [2025-03-20 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720969', 'tblTempUsageDetail_20' ) start [2025-03-20 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720969', 'tblTempUsageDetail_20' ) end [2025-03-20 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720969', 'tblTempVendorCDR_20' ) start [2025-03-20 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720969', 'tblTempVendorCDR_20' ) end [2025-03-20 06:21:18] Production.INFO: ProcessCDR(1,14720969,1,1,2) [2025-03-20 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720969', 'tblTempUsageDetail_20' ) start [2025-03-20 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720969', 'tblTempUsageDetail_20' ) end [2025-03-20 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:21:21] Production.INFO: ==20147== Releasing lock... [2025-03-20 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:21:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:22:06 [end_date_ymd] => 2025-03-20 06:22:06 [RateCDR] => 1 ) [2025-03-20 06:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:22:06' and `end` < '2025-03-20 06:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:22:18] Production.INFO: count ==91 [2025-03-20 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:22:06 - End Time 2025-03-20 06:22:06 [2025-03-20 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720974', 'tblTempUsageDetail_20' ) start [2025-03-20 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720974', 'tblTempUsageDetail_20' ) end [2025-03-20 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720974', 'tblTempVendorCDR_20' ) start [2025-03-20 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720974', 'tblTempVendorCDR_20' ) end [2025-03-20 06:22:18] Production.INFO: ProcessCDR(1,14720974,1,1,2) [2025-03-20 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720974', 'tblTempUsageDetail_20' ) start [2025-03-20 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720974', 'tblTempUsageDetail_20' ) end [2025-03-20 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:22:22] Production.INFO: ==20222== Releasing lock... [2025-03-20 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:22:22] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:23:05 [end_date_ymd] => 2025-03-20 06:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:23:17] Production.INFO: count ==82 [2025-03-20 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:23:05 - End Time 2025-03-20 06:23:05 [2025-03-20 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720979', 'tblTempUsageDetail_20' ) start [2025-03-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720979', 'tblTempUsageDetail_20' ) end [2025-03-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720979', 'tblTempVendorCDR_20' ) start [2025-03-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720979', 'tblTempVendorCDR_20' ) end [2025-03-20 06:23:17] Production.INFO: ProcessCDR(1,14720979,1,1,2) [2025-03-20 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720979', 'tblTempUsageDetail_20' ) start [2025-03-20 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720979', 'tblTempUsageDetail_20' ) end [2025-03-20 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:23:21] Production.INFO: ==20335== Releasing lock... [2025-03-20 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:24:06 [end_date_ymd] => 2025-03-20 06:24:06 [RateCDR] => 1 ) [2025-03-20 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:24:06' and `end` < '2025-03-20 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:24:18] Production.INFO: count ==79 [2025-03-20 06:24:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:24:06 - End Time 2025-03-20 06:24:06 [2025-03-20 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720984', 'tblTempUsageDetail_20' ) start [2025-03-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720984', 'tblTempUsageDetail_20' ) end [2025-03-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720984', 'tblTempVendorCDR_20' ) start [2025-03-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720984', 'tblTempVendorCDR_20' ) end [2025-03-20 06:24:18] Production.INFO: ProcessCDR(1,14720984,1,1,2) [2025-03-20 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720984', 'tblTempUsageDetail_20' ) start [2025-03-20 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720984', 'tblTempUsageDetail_20' ) end [2025-03-20 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:24:22] Production.INFO: ==20406== Releasing lock... [2025-03-20 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:25:05 [end_date_ymd] => 2025-03-20 06:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:25:17] Production.INFO: count ==84 [2025-03-20 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:25:05 - End Time 2025-03-20 06:25:05 [2025-03-20 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720989', 'tblTempUsageDetail_20' ) start [2025-03-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720989', 'tblTempUsageDetail_20' ) end [2025-03-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720989', 'tblTempVendorCDR_20' ) start [2025-03-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720989', 'tblTempVendorCDR_20' ) end [2025-03-20 06:25:17] Production.INFO: ProcessCDR(1,14720989,1,1,2) [2025-03-20 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720989', 'tblTempUsageDetail_20' ) start [2025-03-20 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720989', 'tblTempUsageDetail_20' ) end [2025-03-20 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:25:21] Production.INFO: ==20478== Releasing lock... [2025-03-20 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:26:05 [end_date_ymd] => 2025-03-20 06:26:05 [RateCDR] => 1 ) [2025-03-20 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:26:05' and `end` < '2025-03-20 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:26:18] Production.INFO: count ==84 [2025-03-20 06:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:26:05 - End Time 2025-03-20 06:26:05 [2025-03-20 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720994', 'tblTempUsageDetail_20' ) start [2025-03-20 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720994', 'tblTempUsageDetail_20' ) end [2025-03-20 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720994', 'tblTempVendorCDR_20' ) start [2025-03-20 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720994', 'tblTempVendorCDR_20' ) end [2025-03-20 06:26:18] Production.INFO: ProcessCDR(1,14720994,1,1,2) [2025-03-20 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720994', 'tblTempUsageDetail_20' ) start [2025-03-20 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720994', 'tblTempUsageDetail_20' ) end [2025-03-20 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:26:21] Production.INFO: ==20557== Releasing lock... [2025-03-20 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:27:05 [end_date_ymd] => 2025-03-20 06:27:05 [RateCDR] => 1 ) [2025-03-20 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:27:05' and `end` < '2025-03-20 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:27:17] Production.INFO: count ==83 [2025-03-20 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:27:05 - End Time 2025-03-20 06:27:05 [2025-03-20 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720999', 'tblTempUsageDetail_20' ) start [2025-03-20 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14720999', 'tblTempUsageDetail_20' ) end [2025-03-20 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720999', 'tblTempVendorCDR_20' ) start [2025-03-20 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14720999', 'tblTempVendorCDR_20' ) end [2025-03-20 06:27:17] Production.INFO: ProcessCDR(1,14720999,1,1,2) [2025-03-20 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14720999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14720999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14720999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14720999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720999', 'tblTempUsageDetail_20' ) start [2025-03-20 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14720999', 'tblTempUsageDetail_20' ) end [2025-03-20 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:27:21] Production.INFO: ==20630== Releasing lock... [2025-03-20 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:28:05 [end_date_ymd] => 2025-03-20 06:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:28:18] Production.INFO: count ==80 [2025-03-20 06:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:28:05 - End Time 2025-03-20 06:28:05 [2025-03-20 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721004', 'tblTempUsageDetail_20' ) start [2025-03-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721004', 'tblTempUsageDetail_20' ) end [2025-03-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721004', 'tblTempVendorCDR_20' ) start [2025-03-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721004', 'tblTempVendorCDR_20' ) end [2025-03-20 06:28:18] Production.INFO: ProcessCDR(1,14721004,1,1,2) [2025-03-20 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721004', 'tblTempUsageDetail_20' ) start [2025-03-20 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721004', 'tblTempUsageDetail_20' ) end [2025-03-20 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:28:21] Production.INFO: ==20706== Releasing lock... [2025-03-20 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:29:05 [end_date_ymd] => 2025-03-20 06:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:29:17] Production.INFO: count ==80 [2025-03-20 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:29:05 - End Time 2025-03-20 06:29:05 [2025-03-20 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721009', 'tblTempUsageDetail_20' ) start [2025-03-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721009', 'tblTempUsageDetail_20' ) end [2025-03-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721009', 'tblTempVendorCDR_20' ) start [2025-03-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721009', 'tblTempVendorCDR_20' ) end [2025-03-20 06:29:17] Production.INFO: ProcessCDR(1,14721009,1,1,2) [2025-03-20 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721009', 'tblTempUsageDetail_20' ) start [2025-03-20 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721009', 'tblTempUsageDetail_20' ) end [2025-03-20 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:29:20] Production.INFO: ==20778== Releasing lock... [2025-03-20 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:30:06 [end_date_ymd] => 2025-03-20 06:30:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:30:06' and `end` < '2025-03-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 ,'') [2025-03-20 06:30:18] Production.INFO: count ==72 [2025-03-20 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:30:06 - End Time 2025-03-20 06:30:06 [2025-03-20 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721014', 'tblTempUsageDetail_20' ) start [2025-03-20 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721014', 'tblTempUsageDetail_20' ) end [2025-03-20 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721014', 'tblTempVendorCDR_20' ) start [2025-03-20 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721014', 'tblTempVendorCDR_20' ) end [2025-03-20 06:30:18] Production.INFO: ProcessCDR(1,14721014,1,1,2) [2025-03-20 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721014', 'tblTempUsageDetail_20' ) start [2025-03-20 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721014', 'tblTempUsageDetail_20' ) end [2025-03-20 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:30:21] Production.INFO: ==20851== Releasing lock... [2025-03-20 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:31:05 [end_date_ymd] => 2025-03-20 06:31:05 [RateCDR] => 1 ) [2025-03-20 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:31:05' and `end` < '2025-03-20 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:31:17] Production.INFO: count ==74 [2025-03-20 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:31:05 - End Time 2025-03-20 06:31:05 [2025-03-20 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721020', 'tblTempUsageDetail_20' ) start [2025-03-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721020', 'tblTempUsageDetail_20' ) end [2025-03-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721020', 'tblTempVendorCDR_20' ) start [2025-03-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721020', 'tblTempVendorCDR_20' ) end [2025-03-20 06:31:17] Production.INFO: ProcessCDR(1,14721020,1,1,2) [2025-03-20 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721020', 'tblTempUsageDetail_20' ) start [2025-03-20 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721020', 'tblTempUsageDetail_20' ) end [2025-03-20 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:31:20] Production.INFO: ==20926== Releasing lock... [2025-03-20 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:32:05 [end_date_ymd] => 2025-03-20 06:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:32:17] Production.INFO: count ==84 [2025-03-20 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:32:05 - End Time 2025-03-20 06:32:05 [2025-03-20 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721025', 'tblTempUsageDetail_20' ) start [2025-03-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721025', 'tblTempUsageDetail_20' ) end [2025-03-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721025', 'tblTempVendorCDR_20' ) start [2025-03-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721025', 'tblTempVendorCDR_20' ) end [2025-03-20 06:32:17] Production.INFO: ProcessCDR(1,14721025,1,1,2) [2025-03-20 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721025', 'tblTempUsageDetail_20' ) start [2025-03-20 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721025', 'tblTempUsageDetail_20' ) end [2025-03-20 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:32:21] Production.INFO: ==20998== Releasing lock... [2025-03-20 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:32:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:33:05 [end_date_ymd] => 2025-03-20 06:33:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:33:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:33:17] Production.INFO: count ==84 [2025-03-20 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:33:05 - End Time 2025-03-20 06:33:05 [2025-03-20 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721030', 'tblTempUsageDetail_20' ) start [2025-03-20 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721030', 'tblTempUsageDetail_20' ) end [2025-03-20 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721030', 'tblTempVendorCDR_20' ) start [2025-03-20 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721030', 'tblTempVendorCDR_20' ) end [2025-03-20 06:33:17] Production.INFO: ProcessCDR(1,14721030,1,1,2) [2025-03-20 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721030', 'tblTempUsageDetail_20' ) start [2025-03-20 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721030', 'tblTempUsageDetail_20' ) end [2025-03-20 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:33:21] Production.INFO: ==21072== Releasing lock... [2025-03-20 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:34:06 [end_date_ymd] => 2025-03-20 06:34:06 [RateCDR] => 1 ) [2025-03-20 06:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:34:06' and `end` < '2025-03-20 06:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:34:18] Production.INFO: count ==84 [2025-03-20 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:34:06 - End Time 2025-03-20 06:34:06 [2025-03-20 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721035', 'tblTempUsageDetail_20' ) start [2025-03-20 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721035', 'tblTempUsageDetail_20' ) end [2025-03-20 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721035', 'tblTempVendorCDR_20' ) start [2025-03-20 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721035', 'tblTempVendorCDR_20' ) end [2025-03-20 06:34:18] Production.INFO: ProcessCDR(1,14721035,1,1,2) [2025-03-20 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721035', 'tblTempUsageDetail_20' ) start [2025-03-20 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721035', 'tblTempUsageDetail_20' ) end [2025-03-20 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:34:21] Production.INFO: ==21145== Releasing lock... [2025-03-20 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:35:05 [end_date_ymd] => 2025-03-20 06:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:35:17] Production.INFO: count ==84 [2025-03-20 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:35:05 - End Time 2025-03-20 06:35:05 [2025-03-20 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721040', 'tblTempUsageDetail_20' ) start [2025-03-20 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721040', 'tblTempUsageDetail_20' ) end [2025-03-20 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721040', 'tblTempVendorCDR_20' ) start [2025-03-20 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721040', 'tblTempVendorCDR_20' ) end [2025-03-20 06:35:17] Production.INFO: ProcessCDR(1,14721040,1,1,2) [2025-03-20 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721040', 'tblTempUsageDetail_20' ) start [2025-03-20 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721040', 'tblTempUsageDetail_20' ) end [2025-03-20 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:35:20] Production.INFO: ==21221== Releasing lock... [2025-03-20 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:35:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:36:05 [end_date_ymd] => 2025-03-20 06:36:05 [RateCDR] => 1 ) [2025-03-20 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:36:05' and `end` < '2025-03-20 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:36:17] Production.INFO: count ==76 [2025-03-20 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:36:05 - End Time 2025-03-20 06:36:05 [2025-03-20 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721045', 'tblTempUsageDetail_20' ) start [2025-03-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721045', 'tblTempUsageDetail_20' ) end [2025-03-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721045', 'tblTempVendorCDR_20' ) start [2025-03-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721045', 'tblTempVendorCDR_20' ) end [2025-03-20 06:36:17] Production.INFO: ProcessCDR(1,14721045,1,1,2) [2025-03-20 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721045', 'tblTempUsageDetail_20' ) start [2025-03-20 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721045', 'tblTempUsageDetail_20' ) end [2025-03-20 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:36:21] Production.INFO: ==21310== Releasing lock... [2025-03-20 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:37:05 [end_date_ymd] => 2025-03-20 06:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:37:17] Production.INFO: count ==75 [2025-03-20 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:37:05 - End Time 2025-03-20 06:37:05 [2025-03-20 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721050', 'tblTempUsageDetail_20' ) start [2025-03-20 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721050', 'tblTempUsageDetail_20' ) end [2025-03-20 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721050', 'tblTempVendorCDR_20' ) start [2025-03-20 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721050', 'tblTempVendorCDR_20' ) end [2025-03-20 06:37:17] Production.INFO: ProcessCDR(1,14721050,1,1,2) [2025-03-20 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721050', 'tblTempUsageDetail_20' ) start [2025-03-20 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721050', 'tblTempUsageDetail_20' ) end [2025-03-20 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:37:20] Production.INFO: ==21402== Releasing lock... [2025-03-20 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:38:05 [end_date_ymd] => 2025-03-20 06:38:05 [RateCDR] => 1 ) [2025-03-20 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:38:05' and `end` < '2025-03-20 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:38:17] Production.INFO: count ==75 [2025-03-20 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:38:05 - End Time 2025-03-20 06:38:05 [2025-03-20 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721055', 'tblTempUsageDetail_20' ) start [2025-03-20 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721055', 'tblTempUsageDetail_20' ) end [2025-03-20 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721055', 'tblTempVendorCDR_20' ) start [2025-03-20 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721055', 'tblTempVendorCDR_20' ) end [2025-03-20 06:38:17] Production.INFO: ProcessCDR(1,14721055,1,1,2) [2025-03-20 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721055', 'tblTempUsageDetail_20' ) start [2025-03-20 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721055', 'tblTempUsageDetail_20' ) end [2025-03-20 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:38:21] Production.INFO: ==21496== Releasing lock... [2025-03-20 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:39:05 [end_date_ymd] => 2025-03-20 06:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:39:18] Production.INFO: count ==75 [2025-03-20 06:39:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:39:05 - End Time 2025-03-20 06:39:05 [2025-03-20 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721060', 'tblTempUsageDetail_20' ) start [2025-03-20 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721060', 'tblTempUsageDetail_20' ) end [2025-03-20 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721060', 'tblTempVendorCDR_20' ) start [2025-03-20 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721060', 'tblTempVendorCDR_20' ) end [2025-03-20 06:39:18] Production.INFO: ProcessCDR(1,14721060,1,1,2) [2025-03-20 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721060', 'tblTempUsageDetail_20' ) start [2025-03-20 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721060', 'tblTempUsageDetail_20' ) end [2025-03-20 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:39:21] Production.INFO: ==21632== Releasing lock... [2025-03-20 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:40:06 [end_date_ymd] => 2025-03-20 06:40:06 [RateCDR] => 1 ) [2025-03-20 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:40:06' and `end` < '2025-03-20 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:40:18] Production.INFO: count ==75 [2025-03-20 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:40:06 - End Time 2025-03-20 06:40:06 [2025-03-20 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721065', 'tblTempUsageDetail_20' ) start [2025-03-20 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721065', 'tblTempUsageDetail_20' ) end [2025-03-20 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721065', 'tblTempVendorCDR_20' ) start [2025-03-20 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721065', 'tblTempVendorCDR_20' ) end [2025-03-20 06:40:18] Production.INFO: ProcessCDR(1,14721065,1,1,2) [2025-03-20 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721065', 'tblTempUsageDetail_20' ) start [2025-03-20 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721065', 'tblTempUsageDetail_20' ) end [2025-03-20 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:40:21] Production.INFO: ==21726== Releasing lock... [2025-03-20 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:41:06 [end_date_ymd] => 2025-03-20 06:41:06 [RateCDR] => 1 ) [2025-03-20 06:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:41:06' and `end` < '2025-03-20 06:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:41:18] Production.INFO: count ==75 [2025-03-20 06:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:41:06 - End Time 2025-03-20 06:41:06 [2025-03-20 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721071', 'tblTempUsageDetail_20' ) start [2025-03-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721071', 'tblTempUsageDetail_20' ) end [2025-03-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721071', 'tblTempVendorCDR_20' ) start [2025-03-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721071', 'tblTempVendorCDR_20' ) end [2025-03-20 06:41:18] Production.INFO: ProcessCDR(1,14721071,1,1,2) [2025-03-20 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721071', 'tblTempUsageDetail_20' ) start [2025-03-20 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721071', 'tblTempUsageDetail_20' ) end [2025-03-20 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:41:21] Production.INFO: ==21823== Releasing lock... [2025-03-20 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:42:05 [end_date_ymd] => 2025-03-20 06:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:42:17] Production.INFO: count ==74 [2025-03-20 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:42:05 - End Time 2025-03-20 06:42:05 [2025-03-20 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721076', 'tblTempUsageDetail_20' ) start [2025-03-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721076', 'tblTempUsageDetail_20' ) end [2025-03-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721076', 'tblTempVendorCDR_20' ) start [2025-03-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721076', 'tblTempVendorCDR_20' ) end [2025-03-20 06:42:17] Production.INFO: ProcessCDR(1,14721076,1,1,2) [2025-03-20 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721076', 'tblTempUsageDetail_20' ) start [2025-03-20 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721076', 'tblTempUsageDetail_20' ) end [2025-03-20 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:42:20] Production.INFO: ==21917== Releasing lock... [2025-03-20 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:43:05 [end_date_ymd] => 2025-03-20 06:43:05 [RateCDR] => 1 ) [2025-03-20 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:43:05' and `end` < '2025-03-20 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:43:17] Production.INFO: count ==71 [2025-03-20 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:43:05 - End Time 2025-03-20 06:43:05 [2025-03-20 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721081', 'tblTempUsageDetail_20' ) start [2025-03-20 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721081', 'tblTempUsageDetail_20' ) end [2025-03-20 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721081', 'tblTempVendorCDR_20' ) start [2025-03-20 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721081', 'tblTempVendorCDR_20' ) end [2025-03-20 06:43:17] Production.INFO: ProcessCDR(1,14721081,1,1,2) [2025-03-20 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721081', 'tblTempUsageDetail_20' ) start [2025-03-20 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721081', 'tblTempUsageDetail_20' ) end [2025-03-20 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:43:21] Production.INFO: ==21987== Releasing lock... [2025-03-20 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:44:05 [end_date_ymd] => 2025-03-20 06:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:44:17] Production.INFO: count ==71 [2025-03-20 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:44:05 - End Time 2025-03-20 06:44:05 [2025-03-20 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721086', 'tblTempUsageDetail_20' ) start [2025-03-20 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721086', 'tblTempUsageDetail_20' ) end [2025-03-20 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721086', 'tblTempVendorCDR_20' ) start [2025-03-20 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721086', 'tblTempVendorCDR_20' ) end [2025-03-20 06:44:17] Production.INFO: ProcessCDR(1,14721086,1,1,2) [2025-03-20 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721086', 'tblTempUsageDetail_20' ) start [2025-03-20 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721086', 'tblTempUsageDetail_20' ) end [2025-03-20 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:44:21] Production.INFO: ==22058== Releasing lock... [2025-03-20 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:45:06 [end_date_ymd] => 2025-03-20 06:45:06 [RateCDR] => 1 ) [2025-03-20 06:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:45:06' and `end` < '2025-03-20 06:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:45:18] Production.INFO: count ==64 [2025-03-20 06:45:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:45:06 - End Time 2025-03-20 06:45:06 [2025-03-20 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721091', 'tblTempUsageDetail_20' ) start [2025-03-20 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721091', 'tblTempUsageDetail_20' ) end [2025-03-20 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721091', 'tblTempVendorCDR_20' ) start [2025-03-20 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721091', 'tblTempVendorCDR_20' ) end [2025-03-20 06:45:18] Production.INFO: ProcessCDR(1,14721091,1,1,2) [2025-03-20 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721091', 'tblTempUsageDetail_20' ) start [2025-03-20 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721091', 'tblTempUsageDetail_20' ) end [2025-03-20 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:45:21] Production.INFO: ==22136== Releasing lock... [2025-03-20 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:46:05 [end_date_ymd] => 2025-03-20 06:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:46:17] Production.INFO: count ==64 [2025-03-20 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:46:05 - End Time 2025-03-20 06:46:05 [2025-03-20 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721096', 'tblTempUsageDetail_20' ) start [2025-03-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721096', 'tblTempUsageDetail_20' ) end [2025-03-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721096', 'tblTempVendorCDR_20' ) start [2025-03-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721096', 'tblTempVendorCDR_20' ) end [2025-03-20 06:46:17] Production.INFO: ProcessCDR(1,14721096,1,1,2) [2025-03-20 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721096', 'tblTempUsageDetail_20' ) start [2025-03-20 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721096', 'tblTempUsageDetail_20' ) end [2025-03-20 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:46:20] Production.INFO: ==22225== Releasing lock... [2025-03-20 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:47:05 [end_date_ymd] => 2025-03-20 06:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:47:17] Production.INFO: count ==64 [2025-03-20 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:47:05 - End Time 2025-03-20 06:47:05 [2025-03-20 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721101', 'tblTempUsageDetail_20' ) start [2025-03-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721101', 'tblTempUsageDetail_20' ) end [2025-03-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721101', 'tblTempVendorCDR_20' ) start [2025-03-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721101', 'tblTempVendorCDR_20' ) end [2025-03-20 06:47:17] Production.INFO: ProcessCDR(1,14721101,1,1,2) [2025-03-20 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721101', 'tblTempUsageDetail_20' ) start [2025-03-20 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721101', 'tblTempUsageDetail_20' ) end [2025-03-20 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:47:20] Production.INFO: ==22309== Releasing lock... [2025-03-20 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:48:05 [end_date_ymd] => 2025-03-20 06:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:48:17] Production.INFO: count ==64 [2025-03-20 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:48:05 - End Time 2025-03-20 06:48:05 [2025-03-20 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721106', 'tblTempUsageDetail_20' ) start [2025-03-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721106', 'tblTempUsageDetail_20' ) end [2025-03-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721106', 'tblTempVendorCDR_20' ) start [2025-03-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721106', 'tblTempVendorCDR_20' ) end [2025-03-20 06:48:17] Production.INFO: ProcessCDR(1,14721106,1,1,2) [2025-03-20 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721106', 'tblTempUsageDetail_20' ) start [2025-03-20 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721106', 'tblTempUsageDetail_20' ) end [2025-03-20 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:48:20] Production.INFO: ==22381== Releasing lock... [2025-03-20 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:48:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:49:05 [end_date_ymd] => 2025-03-20 06:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:49:17] Production.INFO: count ==64 [2025-03-20 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:49:05 - End Time 2025-03-20 06:49:05 [2025-03-20 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721111', 'tblTempUsageDetail_20' ) start [2025-03-20 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721111', 'tblTempUsageDetail_20' ) end [2025-03-20 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721111', 'tblTempVendorCDR_20' ) start [2025-03-20 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721111', 'tblTempVendorCDR_20' ) end [2025-03-20 06:49:17] Production.INFO: ProcessCDR(1,14721111,1,1,2) [2025-03-20 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721111', 'tblTempUsageDetail_20' ) start [2025-03-20 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721111', 'tblTempUsageDetail_20' ) end [2025-03-20 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:49:21] Production.INFO: ==22452== Releasing lock... [2025-03-20 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:50:06 [end_date_ymd] => 2025-03-20 06:50:06 [RateCDR] => 1 ) [2025-03-20 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:50:06' and `end` < '2025-03-20 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:50:19] Production.INFO: count ==64 [2025-03-20 06:50:19] Production.ERROR: pbx CDR StartTime 2025-03-20 03:50:06 - End Time 2025-03-20 06:50:06 [2025-03-20 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721116', 'tblTempUsageDetail_20' ) start [2025-03-20 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721116', 'tblTempUsageDetail_20' ) end [2025-03-20 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721116', 'tblTempVendorCDR_20' ) start [2025-03-20 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721116', 'tblTempVendorCDR_20' ) end [2025-03-20 06:50:19] Production.INFO: ProcessCDR(1,14721116,1,1,2) [2025-03-20 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721116', 'tblTempUsageDetail_20' ) start [2025-03-20 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721116', 'tblTempUsageDetail_20' ) end [2025-03-20 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:50:22] Production.INFO: ==22530== Releasing lock... [2025-03-20 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:51:05 [end_date_ymd] => 2025-03-20 06:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:51:17] Production.INFO: count ==64 [2025-03-20 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:51:05 - End Time 2025-03-20 06:51:05 [2025-03-20 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721122', 'tblTempUsageDetail_20' ) start [2025-03-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721122', 'tblTempUsageDetail_20' ) end [2025-03-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721122', 'tblTempVendorCDR_20' ) start [2025-03-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721122', 'tblTempVendorCDR_20' ) end [2025-03-20 06:51:17] Production.INFO: ProcessCDR(1,14721122,1,1,2) [2025-03-20 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721122', 'tblTempUsageDetail_20' ) start [2025-03-20 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721122', 'tblTempUsageDetail_20' ) end [2025-03-20 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:51:20] Production.INFO: ==22603== Releasing lock... [2025-03-20 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:51:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:52:05 [end_date_ymd] => 2025-03-20 06:52:05 [RateCDR] => 1 ) [2025-03-20 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:52:05' and `end` < '2025-03-20 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:52:18] Production.INFO: count ==64 [2025-03-20 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:52:05 - End Time 2025-03-20 06:52:05 [2025-03-20 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721127', 'tblTempUsageDetail_20' ) start [2025-03-20 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721127', 'tblTempUsageDetail_20' ) end [2025-03-20 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721127', 'tblTempVendorCDR_20' ) start [2025-03-20 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721127', 'tblTempVendorCDR_20' ) end [2025-03-20 06:52:18] Production.INFO: ProcessCDR(1,14721127,1,1,2) [2025-03-20 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721127', 'tblTempUsageDetail_20' ) start [2025-03-20 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721127', 'tblTempUsageDetail_20' ) end [2025-03-20 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:52:21] Production.INFO: ==22677== Releasing lock... [2025-03-20 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:53:05 [end_date_ymd] => 2025-03-20 06:53:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:53:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:53:17] Production.INFO: count ==66 [2025-03-20 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:53:05 - End Time 2025-03-20 06:53:05 [2025-03-20 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721132', 'tblTempUsageDetail_20' ) start [2025-03-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721132', 'tblTempUsageDetail_20' ) end [2025-03-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721132', 'tblTempVendorCDR_20' ) start [2025-03-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721132', 'tblTempVendorCDR_20' ) end [2025-03-20 06:53:17] Production.INFO: ProcessCDR(1,14721132,1,1,2) [2025-03-20 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721132', 'tblTempUsageDetail_20' ) start [2025-03-20 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721132', 'tblTempUsageDetail_20' ) end [2025-03-20 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:53:20] Production.INFO: ==22758== Releasing lock... [2025-03-20 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:53:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:54:05 [end_date_ymd] => 2025-03-20 06:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:54:17] Production.INFO: count ==66 [2025-03-20 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:54:05 - End Time 2025-03-20 06:54:05 [2025-03-20 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721137', 'tblTempUsageDetail_20' ) start [2025-03-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721137', 'tblTempUsageDetail_20' ) end [2025-03-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721137', 'tblTempVendorCDR_20' ) start [2025-03-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721137', 'tblTempVendorCDR_20' ) end [2025-03-20 06:54:17] Production.INFO: ProcessCDR(1,14721137,1,1,2) [2025-03-20 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721137', 'tblTempUsageDetail_20' ) start [2025-03-20 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721137', 'tblTempUsageDetail_20' ) end [2025-03-20 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:54:21] Production.INFO: ==22870== Releasing lock... [2025-03-20 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:55:05 [end_date_ymd] => 2025-03-20 06:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:55:17] Production.INFO: count ==69 [2025-03-20 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:55:05 - End Time 2025-03-20 06:55:05 [2025-03-20 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721142', 'tblTempUsageDetail_20' ) start [2025-03-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721142', 'tblTempUsageDetail_20' ) end [2025-03-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721142', 'tblTempVendorCDR_20' ) start [2025-03-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721142', 'tblTempVendorCDR_20' ) end [2025-03-20 06:55:17] Production.INFO: ProcessCDR(1,14721142,1,1,2) [2025-03-20 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721142', 'tblTempUsageDetail_20' ) start [2025-03-20 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721142', 'tblTempUsageDetail_20' ) end [2025-03-20 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:55:21] Production.INFO: ==22945== Releasing lock... [2025-03-20 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:56:05 [end_date_ymd] => 2025-03-20 06:56:05 [RateCDR] => 1 ) [2025-03-20 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 03:56:05' and `end` < '2025-03-20 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 06:56:18] Production.INFO: count ==64 [2025-03-20 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:56:05 - End Time 2025-03-20 06:56:05 [2025-03-20 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721147', 'tblTempUsageDetail_20' ) start [2025-03-20 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721147', 'tblTempUsageDetail_20' ) end [2025-03-20 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721147', 'tblTempVendorCDR_20' ) start [2025-03-20 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721147', 'tblTempVendorCDR_20' ) end [2025-03-20 06:56:18] Production.INFO: ProcessCDR(1,14721147,1,1,2) [2025-03-20 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721147', 'tblTempUsageDetail_20' ) start [2025-03-20 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721147', 'tblTempUsageDetail_20' ) end [2025-03-20 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:56:21] Production.INFO: ==23018== Releasing lock... [2025-03-20 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:57:05 [end_date_ymd] => 2025-03-20 06:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:57:17] Production.INFO: count ==65 [2025-03-20 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:57:05 - End Time 2025-03-20 06:57:05 [2025-03-20 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721152', 'tblTempUsageDetail_20' ) start [2025-03-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721152', 'tblTempUsageDetail_20' ) end [2025-03-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721152', 'tblTempVendorCDR_20' ) start [2025-03-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721152', 'tblTempVendorCDR_20' ) end [2025-03-20 06:57:17] Production.INFO: ProcessCDR(1,14721152,1,1,2) [2025-03-20 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721152', 'tblTempUsageDetail_20' ) start [2025-03-20 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721152', 'tblTempUsageDetail_20' ) end [2025-03-20 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:57:22] Production.INFO: ==23092== Releasing lock... [2025-03-20 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:58:05 [end_date_ymd] => 2025-03-20 06:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:58:18] Production.INFO: count ==66 [2025-03-20 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 03:58:05 - End Time 2025-03-20 06:58:05 [2025-03-20 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721157', 'tblTempUsageDetail_20' ) start [2025-03-20 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721157', 'tblTempUsageDetail_20' ) end [2025-03-20 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721157', 'tblTempVendorCDR_20' ) start [2025-03-20 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721157', 'tblTempVendorCDR_20' ) end [2025-03-20 06:58:18] Production.INFO: ProcessCDR(1,14721157,1,1,2) [2025-03-20 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721157', 'tblTempUsageDetail_20' ) start [2025-03-20 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721157', 'tblTempUsageDetail_20' ) end [2025-03-20 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:58:22] Production.INFO: ==23173== Releasing lock... [2025-03-20 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 03:59:05 [end_date_ymd] => 2025-03-20 06:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 03:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 06:59:17] Production.INFO: count ==68 [2025-03-20 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-20 03:59:05 - End Time 2025-03-20 06:59:05 [2025-03-20 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721162', 'tblTempUsageDetail_20' ) start [2025-03-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721162', 'tblTempUsageDetail_20' ) end [2025-03-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721162', 'tblTempVendorCDR_20' ) start [2025-03-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721162', 'tblTempVendorCDR_20' ) end [2025-03-20 06:59:17] Production.INFO: ProcessCDR(1,14721162,1,1,2) [2025-03-20 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721162', 'tblTempUsageDetail_20' ) start [2025-03-20 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721162', 'tblTempUsageDetail_20' ) end [2025-03-20 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 06:59:22] Production.INFO: ==23244== Releasing lock... [2025-03-20 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 06:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:00:06 [end_date_ymd] => 2025-03-20 07:00:06 [RateCDR] => 1 ) [2025-03-20 07:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:00:06' and `end` < '2025-03-20 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:00:19] Production.INFO: count ==69 [2025-03-20 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 04:00:06 - End Time 2025-03-20 07:00:06 [2025-03-20 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721168', 'tblTempUsageDetail_20' ) start [2025-03-20 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721168', 'tblTempUsageDetail_20' ) end [2025-03-20 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721168', 'tblTempVendorCDR_20' ) start [2025-03-20 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721168', 'tblTempVendorCDR_20' ) end [2025-03-20 07:00:19] Production.INFO: ProcessCDR(1,14721168,1,1,2) [2025-03-20 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721168', 'tblTempUsageDetail_20' ) start [2025-03-20 07:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721168', 'tblTempUsageDetail_20' ) end [2025-03-20 07:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:00:24] Production.INFO: ==23338== Releasing lock... [2025-03-20 07:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:01:04 [end_date_ymd] => 2025-03-20 07:01:04 [RateCDR] => 1 ) [2025-03-20 07:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:01:04' and `end` < '2025-03-20 07:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:01:16] Production.INFO: count ==69 [2025-03-20 07:01:16] Production.ERROR: pbx CDR StartTime 2025-03-20 04:01:04 - End Time 2025-03-20 07:01:04 [2025-03-20 07:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721173', 'tblTempUsageDetail_20' ) start [2025-03-20 07:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721173', 'tblTempUsageDetail_20' ) end [2025-03-20 07:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721173', 'tblTempVendorCDR_20' ) start [2025-03-20 07:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721173', 'tblTempVendorCDR_20' ) end [2025-03-20 07:01:16] Production.INFO: ProcessCDR(1,14721173,1,1,2) [2025-03-20 07:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721173', 'tblTempUsageDetail_20' ) start [2025-03-20 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721173', 'tblTempUsageDetail_20' ) end [2025-03-20 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:01:20] Production.INFO: ==23443== Releasing lock... [2025-03-20 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:02:05 [end_date_ymd] => 2025-03-20 07:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:02:18] Production.INFO: count ==69 [2025-03-20 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:02:05 - End Time 2025-03-20 07:02:05 [2025-03-20 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721178', 'tblTempUsageDetail_20' ) start [2025-03-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721178', 'tblTempUsageDetail_20' ) end [2025-03-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721178', 'tblTempVendorCDR_20' ) start [2025-03-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721178', 'tblTempVendorCDR_20' ) end [2025-03-20 07:02:18] Production.INFO: ProcessCDR(1,14721178,1,1,2) [2025-03-20 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721178', 'tblTempUsageDetail_20' ) start [2025-03-20 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721178', 'tblTempUsageDetail_20' ) end [2025-03-20 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:02:21] Production.INFO: ==23613== Releasing lock... [2025-03-20 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:03:05 [end_date_ymd] => 2025-03-20 07:03:05 [RateCDR] => 1 ) [2025-03-20 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:03:05' and `end` < '2025-03-20 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:03:17] Production.INFO: count ==69 [2025-03-20 07:03:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:03:05 - End Time 2025-03-20 07:03:05 [2025-03-20 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721183', 'tblTempUsageDetail_20' ) start [2025-03-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721183', 'tblTempUsageDetail_20' ) end [2025-03-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721183', 'tblTempVendorCDR_20' ) start [2025-03-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721183', 'tblTempVendorCDR_20' ) end [2025-03-20 07:03:17] Production.INFO: ProcessCDR(1,14721183,1,1,2) [2025-03-20 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721183', 'tblTempUsageDetail_20' ) start [2025-03-20 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721183', 'tblTempUsageDetail_20' ) end [2025-03-20 07:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:03:20] Production.INFO: ==23701== Releasing lock... [2025-03-20 07:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:04:05 [end_date_ymd] => 2025-03-20 07:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:04:17] Production.INFO: count ==69 [2025-03-20 07:04:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:04:05 - End Time 2025-03-20 07:04:05 [2025-03-20 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721188', 'tblTempUsageDetail_20' ) start [2025-03-20 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721188', 'tblTempUsageDetail_20' ) end [2025-03-20 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721188', 'tblTempVendorCDR_20' ) start [2025-03-20 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721188', 'tblTempVendorCDR_20' ) end [2025-03-20 07:04:17] Production.INFO: ProcessCDR(1,14721188,1,1,2) [2025-03-20 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721188', 'tblTempUsageDetail_20' ) start [2025-03-20 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721188', 'tblTempUsageDetail_20' ) end [2025-03-20 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:04:21] Production.INFO: ==23778== Releasing lock... [2025-03-20 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:05:06 [end_date_ymd] => 2025-03-20 07:05:06 [RateCDR] => 1 ) [2025-03-20 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:05:06' and `end` < '2025-03-20 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:05:19] Production.INFO: count ==69 [2025-03-20 07:05:19] Production.ERROR: pbx CDR StartTime 2025-03-20 04:05:06 - End Time 2025-03-20 07:05:06 [2025-03-20 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721193', 'tblTempUsageDetail_20' ) start [2025-03-20 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721193', 'tblTempUsageDetail_20' ) end [2025-03-20 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721193', 'tblTempVendorCDR_20' ) start [2025-03-20 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721193', 'tblTempVendorCDR_20' ) end [2025-03-20 07:05:19] Production.INFO: ProcessCDR(1,14721193,1,1,2) [2025-03-20 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721193', 'tblTempUsageDetail_20' ) start [2025-03-20 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721193', 'tblTempUsageDetail_20' ) end [2025-03-20 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:05:22] Production.INFO: ==23930== Releasing lock... [2025-03-20 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:06:05 [end_date_ymd] => 2025-03-20 07:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:06:17] Production.INFO: count ==69 [2025-03-20 07:06:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:06:05 - End Time 2025-03-20 07:06:05 [2025-03-20 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721198', 'tblTempUsageDetail_20' ) start [2025-03-20 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721198', 'tblTempUsageDetail_20' ) end [2025-03-20 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721198', 'tblTempVendorCDR_20' ) start [2025-03-20 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721198', 'tblTempVendorCDR_20' ) end [2025-03-20 07:06:17] Production.INFO: ProcessCDR(1,14721198,1,1,2) [2025-03-20 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721198', 'tblTempUsageDetail_20' ) start [2025-03-20 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721198', 'tblTempUsageDetail_20' ) end [2025-03-20 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:06:21] Production.INFO: ==24004== Releasing lock... [2025-03-20 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:07:06 [end_date_ymd] => 2025-03-20 07:07:06 [RateCDR] => 1 ) [2025-03-20 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:07:06' and `end` < '2025-03-20 07:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:07:18] Production.INFO: count ==69 [2025-03-20 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:07:06 - End Time 2025-03-20 07:07:06 [2025-03-20 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721203', 'tblTempUsageDetail_20' ) start [2025-03-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721203', 'tblTempUsageDetail_20' ) end [2025-03-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721203', 'tblTempVendorCDR_20' ) start [2025-03-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721203', 'tblTempVendorCDR_20' ) end [2025-03-20 07:07:18] Production.INFO: ProcessCDR(1,14721203,1,1,2) [2025-03-20 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721203', 'tblTempUsageDetail_20' ) start [2025-03-20 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721203', 'tblTempUsageDetail_20' ) end [2025-03-20 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:07:22] Production.INFO: ==24080== Releasing lock... [2025-03-20 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:08:05 [end_date_ymd] => 2025-03-20 07:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:08:19] Production.INFO: count ==68 [2025-03-20 07:08:19] Production.ERROR: pbx CDR StartTime 2025-03-20 04:08:05 - End Time 2025-03-20 07:08:05 [2025-03-20 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721208', 'tblTempUsageDetail_20' ) start [2025-03-20 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721208', 'tblTempUsageDetail_20' ) end [2025-03-20 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721208', 'tblTempVendorCDR_20' ) start [2025-03-20 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721208', 'tblTempVendorCDR_20' ) end [2025-03-20 07:08:19] Production.INFO: ProcessCDR(1,14721208,1,1,2) [2025-03-20 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721208', 'tblTempUsageDetail_20' ) start [2025-03-20 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721208', 'tblTempUsageDetail_20' ) end [2025-03-20 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:08:22] Production.INFO: ==24171== Releasing lock... [2025-03-20 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:09:06 [end_date_ymd] => 2025-03-20 07:09:06 [RateCDR] => 1 ) [2025-03-20 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:09:06' and `end` < '2025-03-20 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:09:18] Production.INFO: count ==68 [2025-03-20 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:09:06 - End Time 2025-03-20 07:09:06 [2025-03-20 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721213', 'tblTempUsageDetail_20' ) start [2025-03-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721213', 'tblTempUsageDetail_20' ) end [2025-03-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721213', 'tblTempVendorCDR_20' ) start [2025-03-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721213', 'tblTempVendorCDR_20' ) end [2025-03-20 07:09:18] Production.INFO: ProcessCDR(1,14721213,1,1,2) [2025-03-20 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721213', 'tblTempUsageDetail_20' ) start [2025-03-20 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721213', 'tblTempUsageDetail_20' ) end [2025-03-20 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:09:22] Production.INFO: ==24341== Releasing lock... [2025-03-20 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:10:05 [end_date_ymd] => 2025-03-20 07:10:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:10:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:10:20] Production.INFO: count ==68 [2025-03-20 07:10:20] Production.ERROR: pbx CDR StartTime 2025-03-20 04:10:05 - End Time 2025-03-20 07:10:05 [2025-03-20 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721218', 'tblTempUsageDetail_20' ) start [2025-03-20 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721218', 'tblTempUsageDetail_20' ) end [2025-03-20 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721218', 'tblTempVendorCDR_20' ) start [2025-03-20 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721218', 'tblTempVendorCDR_20' ) end [2025-03-20 07:10:20] Production.INFO: ProcessCDR(1,14721218,1,1,2) [2025-03-20 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721218', 'tblTempUsageDetail_20' ) start [2025-03-20 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721218', 'tblTempUsageDetail_20' ) end [2025-03-20 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:10:24] Production.INFO: ==24472== Releasing lock... [2025-03-20 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:10:24] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:11:06 [end_date_ymd] => 2025-03-20 07:11:06 [RateCDR] => 1 ) [2025-03-20 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:11:06' and `end` < '2025-03-20 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:11:19] Production.INFO: count ==68 [2025-03-20 07:11:19] Production.ERROR: pbx CDR StartTime 2025-03-20 04:11:06 - End Time 2025-03-20 07:11:06 [2025-03-20 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721224', 'tblTempUsageDetail_20' ) start [2025-03-20 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721224', 'tblTempUsageDetail_20' ) end [2025-03-20 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721224', 'tblTempVendorCDR_20' ) start [2025-03-20 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721224', 'tblTempVendorCDR_20' ) end [2025-03-20 07:11:19] Production.INFO: ProcessCDR(1,14721224,1,1,2) [2025-03-20 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721224', 'tblTempUsageDetail_20' ) start [2025-03-20 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721224', 'tblTempUsageDetail_20' ) end [2025-03-20 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:11:23] Production.INFO: ==24568== Releasing lock... [2025-03-20 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:11:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:12:05 [end_date_ymd] => 2025-03-20 07:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:12:17] Production.INFO: count ==74 [2025-03-20 07:12:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:12:05 - End Time 2025-03-20 07:12:05 [2025-03-20 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721229', 'tblTempUsageDetail_20' ) start [2025-03-20 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721229', 'tblTempUsageDetail_20' ) end [2025-03-20 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721229', 'tblTempVendorCDR_20' ) start [2025-03-20 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721229', 'tblTempVendorCDR_20' ) end [2025-03-20 07:12:17] Production.INFO: ProcessCDR(1,14721229,1,1,2) [2025-03-20 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721229', 'tblTempUsageDetail_20' ) start [2025-03-20 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721229', 'tblTempUsageDetail_20' ) end [2025-03-20 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:12:21] Production.INFO: ==24742== Releasing lock... [2025-03-20 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:13:05 [end_date_ymd] => 2025-03-20 07:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:13:19] Production.INFO: count ==74 [2025-03-20 07:13:19] Production.ERROR: pbx CDR StartTime 2025-03-20 04:13:05 - End Time 2025-03-20 07:13:05 [2025-03-20 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721234', 'tblTempUsageDetail_20' ) start [2025-03-20 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721234', 'tblTempUsageDetail_20' ) end [2025-03-20 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721234', 'tblTempVendorCDR_20' ) start [2025-03-20 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721234', 'tblTempVendorCDR_20' ) end [2025-03-20 07:13:19] Production.INFO: ProcessCDR(1,14721234,1,1,2) [2025-03-20 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721234', 'tblTempUsageDetail_20' ) start [2025-03-20 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721234', 'tblTempUsageDetail_20' ) end [2025-03-20 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:13:22] Production.INFO: ==24847== Releasing lock... [2025-03-20 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-20 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:14:05 [end_date_ymd] => 2025-03-20 07:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:14:19] Production.INFO: count ==75 [2025-03-20 07:14:19] Production.ERROR: pbx CDR StartTime 2025-03-20 04:14:05 - End Time 2025-03-20 07:14:05 [2025-03-20 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721239', 'tblTempUsageDetail_20' ) start [2025-03-20 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721239', 'tblTempUsageDetail_20' ) end [2025-03-20 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721239', 'tblTempVendorCDR_20' ) start [2025-03-20 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721239', 'tblTempVendorCDR_20' ) end [2025-03-20 07:14:19] Production.INFO: ProcessCDR(1,14721239,1,1,2) [2025-03-20 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721239', 'tblTempUsageDetail_20' ) start [2025-03-20 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721239', 'tblTempUsageDetail_20' ) end [2025-03-20 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:14:24] Production.INFO: ==24966== Releasing lock... [2025-03-20 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:14:24] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:15:05 [end_date_ymd] => 2025-03-20 07:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:15:17] Production.INFO: count ==75 [2025-03-20 07:15:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:15:05 - End Time 2025-03-20 07:15:05 [2025-03-20 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721244', 'tblTempUsageDetail_20' ) start [2025-03-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721244', 'tblTempUsageDetail_20' ) end [2025-03-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721244', 'tblTempVendorCDR_20' ) start [2025-03-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721244', 'tblTempVendorCDR_20' ) end [2025-03-20 07:15:17] Production.INFO: ProcessCDR(1,14721244,1,1,2) [2025-03-20 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721244', 'tblTempUsageDetail_20' ) start [2025-03-20 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721244', 'tblTempUsageDetail_20' ) end [2025-03-20 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:15:21] Production.INFO: ==25084== Releasing lock... [2025-03-20 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:16:05 [end_date_ymd] => 2025-03-20 07:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:16:18] Production.INFO: count ==75 [2025-03-20 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:16:05 - End Time 2025-03-20 07:16:05 [2025-03-20 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721249', 'tblTempUsageDetail_20' ) start [2025-03-20 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721249', 'tblTempUsageDetail_20' ) end [2025-03-20 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721249', 'tblTempVendorCDR_20' ) start [2025-03-20 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721249', 'tblTempVendorCDR_20' ) end [2025-03-20 07:16:18] Production.INFO: ProcessCDR(1,14721249,1,1,2) [2025-03-20 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721249', 'tblTempUsageDetail_20' ) start [2025-03-20 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721249', 'tblTempUsageDetail_20' ) end [2025-03-20 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:16:22] Production.INFO: ==25251== Releasing lock... [2025-03-20 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:17:05 [end_date_ymd] => 2025-03-20 07:17:05 [RateCDR] => 1 ) [2025-03-20 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:17:05' and `end` < '2025-03-20 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:17:18] Production.INFO: count ==75 [2025-03-20 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:17:05 - End Time 2025-03-20 07:17:05 [2025-03-20 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721254', 'tblTempUsageDetail_20' ) start [2025-03-20 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721254', 'tblTempUsageDetail_20' ) end [2025-03-20 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721254', 'tblTempVendorCDR_20' ) start [2025-03-20 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721254', 'tblTempVendorCDR_20' ) end [2025-03-20 07:17:18] Production.INFO: ProcessCDR(1,14721254,1,1,2) [2025-03-20 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721254', 'tblTempUsageDetail_20' ) start [2025-03-20 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721254', 'tblTempUsageDetail_20' ) end [2025-03-20 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:17:21] Production.INFO: ==25343== Releasing lock... [2025-03-20 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:18:06 [end_date_ymd] => 2025-03-20 07:18:06 [RateCDR] => 1 ) [2025-03-20 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:18:06' and `end` < '2025-03-20 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:18:18] Production.INFO: count ==75 [2025-03-20 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:18:06 - End Time 2025-03-20 07:18:06 [2025-03-20 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721259', 'tblTempUsageDetail_20' ) start [2025-03-20 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721259', 'tblTempUsageDetail_20' ) end [2025-03-20 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721259', 'tblTempVendorCDR_20' ) start [2025-03-20 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721259', 'tblTempVendorCDR_20' ) end [2025-03-20 07:18:18] Production.INFO: ProcessCDR(1,14721259,1,1,2) [2025-03-20 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721259', 'tblTempUsageDetail_20' ) start [2025-03-20 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721259', 'tblTempUsageDetail_20' ) end [2025-03-20 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:18:21] Production.INFO: ==25433== Releasing lock... [2025-03-20 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-20 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:19:05 [end_date_ymd] => 2025-03-20 07:19:05 [RateCDR] => 1 ) [2025-03-20 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:19:05' and `end` < '2025-03-20 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:19:17] Production.INFO: count ==80 [2025-03-20 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:19:05 - End Time 2025-03-20 07:19:05 [2025-03-20 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721264', 'tblTempUsageDetail_20' ) start [2025-03-20 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721264', 'tblTempUsageDetail_20' ) end [2025-03-20 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721264', 'tblTempVendorCDR_20' ) start [2025-03-20 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721264', 'tblTempVendorCDR_20' ) end [2025-03-20 07:19:17] Production.INFO: ProcessCDR(1,14721264,1,1,2) [2025-03-20 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721264', 'tblTempUsageDetail_20' ) start [2025-03-20 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721264', 'tblTempUsageDetail_20' ) end [2025-03-20 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:19:20] Production.INFO: ==25529== Releasing lock... [2025-03-20 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:19:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:20:06 [end_date_ymd] => 2025-03-20 07:20:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:20:06' and `end` < '2025-03-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 ,'') [2025-03-20 07:20:18] Production.INFO: count ==88 [2025-03-20 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:20:06 - End Time 2025-03-20 07:20:06 [2025-03-20 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721270', 'tblTempUsageDetail_20' ) start [2025-03-20 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721270', 'tblTempUsageDetail_20' ) end [2025-03-20 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721270', 'tblTempVendorCDR_20' ) start [2025-03-20 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721270', 'tblTempVendorCDR_20' ) end [2025-03-20 07:20:18] Production.INFO: ProcessCDR(1,14721270,1,1,2) [2025-03-20 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721270', 'tblTempUsageDetail_20' ) start [2025-03-20 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721270', 'tblTempUsageDetail_20' ) end [2025-03-20 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:20:22] Production.INFO: ==25623== Releasing lock... [2025-03-20 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:20:22] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:21:05 [end_date_ymd] => 2025-03-20 07:21:05 [RateCDR] => 1 ) [2025-03-20 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:21:05' and `end` < '2025-03-20 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:21:17] Production.INFO: count ==89 [2025-03-20 07:21:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:21:05 - End Time 2025-03-20 07:21:05 [2025-03-20 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721275', 'tblTempUsageDetail_20' ) start [2025-03-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721275', 'tblTempUsageDetail_20' ) end [2025-03-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721275', 'tblTempVendorCDR_20' ) start [2025-03-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721275', 'tblTempVendorCDR_20' ) end [2025-03-20 07:21:17] Production.INFO: ProcessCDR(1,14721275,1,1,2) [2025-03-20 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721275', 'tblTempUsageDetail_20' ) start [2025-03-20 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721275', 'tblTempUsageDetail_20' ) end [2025-03-20 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:21:22] Production.INFO: ==25715== Releasing lock... [2025-03-20 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:21:22] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:22:05 [end_date_ymd] => 2025-03-20 07:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:22:18] Production.INFO: count ==90 [2025-03-20 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:22:05 - End Time 2025-03-20 07:22:05 [2025-03-20 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721280', 'tblTempUsageDetail_20' ) start [2025-03-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721280', 'tblTempUsageDetail_20' ) end [2025-03-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721280', 'tblTempVendorCDR_20' ) start [2025-03-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721280', 'tblTempVendorCDR_20' ) end [2025-03-20 07:22:18] Production.INFO: ProcessCDR(1,14721280,1,1,2) [2025-03-20 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721280', 'tblTempUsageDetail_20' ) start [2025-03-20 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721280', 'tblTempUsageDetail_20' ) end [2025-03-20 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:22:23] Production.INFO: ==25809== Releasing lock... [2025-03-20 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:22:23] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:23:05 [end_date_ymd] => 2025-03-20 07:23:05 [RateCDR] => 1 ) [2025-03-20 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:23:05' and `end` < '2025-03-20 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:23:17] Production.INFO: count ==90 [2025-03-20 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:23:05 - End Time 2025-03-20 07:23:05 [2025-03-20 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721285', 'tblTempUsageDetail_20' ) start [2025-03-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721285', 'tblTempUsageDetail_20' ) end [2025-03-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721285', 'tblTempVendorCDR_20' ) start [2025-03-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721285', 'tblTempVendorCDR_20' ) end [2025-03-20 07:23:17] Production.INFO: ProcessCDR(1,14721285,1,1,2) [2025-03-20 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721285', 'tblTempUsageDetail_20' ) start [2025-03-20 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721285', 'tblTempUsageDetail_20' ) end [2025-03-20 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:23:20] Production.INFO: ==25900== Releasing lock... [2025-03-20 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:23:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:24:05 [end_date_ymd] => 2025-03-20 07:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:24:17] Production.INFO: count ==91 [2025-03-20 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:24:05 - End Time 2025-03-20 07:24:05 [2025-03-20 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721290', 'tblTempUsageDetail_20' ) start [2025-03-20 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721290', 'tblTempUsageDetail_20' ) end [2025-03-20 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721290', 'tblTempVendorCDR_20' ) start [2025-03-20 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721290', 'tblTempVendorCDR_20' ) end [2025-03-20 07:24:17] Production.INFO: ProcessCDR(1,14721290,1,1,2) [2025-03-20 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721290', 'tblTempUsageDetail_20' ) start [2025-03-20 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721290', 'tblTempUsageDetail_20' ) end [2025-03-20 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:24:22] Production.INFO: ==25991== Releasing lock... [2025-03-20 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:24:22] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:25:05 [end_date_ymd] => 2025-03-20 07:25:05 [RateCDR] => 1 ) [2025-03-20 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:25:05' and `end` < '2025-03-20 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:25:17] Production.INFO: count ==91 [2025-03-20 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:25:05 - End Time 2025-03-20 07:25:05 [2025-03-20 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721295', 'tblTempUsageDetail_20' ) start [2025-03-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721295', 'tblTempUsageDetail_20' ) end [2025-03-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721295', 'tblTempVendorCDR_20' ) start [2025-03-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721295', 'tblTempVendorCDR_20' ) end [2025-03-20 07:25:17] Production.INFO: ProcessCDR(1,14721295,1,1,2) [2025-03-20 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721295', 'tblTempUsageDetail_20' ) start [2025-03-20 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721295', 'tblTempUsageDetail_20' ) end [2025-03-20 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:25:20] Production.INFO: ==26117== Releasing lock... [2025-03-20 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:25:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:26:05 [end_date_ymd] => 2025-03-20 07:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:26:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:26:17] Production.INFO: count ==91 [2025-03-20 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:26:05 - End Time 2025-03-20 07:26:05 [2025-03-20 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721300', 'tblTempUsageDetail_20' ) start [2025-03-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721300', 'tblTempUsageDetail_20' ) end [2025-03-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721300', 'tblTempVendorCDR_20' ) start [2025-03-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721300', 'tblTempVendorCDR_20' ) end [2025-03-20 07:26:17] Production.INFO: ProcessCDR(1,14721300,1,1,2) [2025-03-20 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721300', 'tblTempUsageDetail_20' ) start [2025-03-20 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721300', 'tblTempUsageDetail_20' ) end [2025-03-20 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:26:20] Production.INFO: ==26192== Releasing lock... [2025-03-20 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:26:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:27:05 [end_date_ymd] => 2025-03-20 07:27:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:27:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:27:17] Production.INFO: count ==91 [2025-03-20 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:27:05 - End Time 2025-03-20 07:27:05 [2025-03-20 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721305', 'tblTempUsageDetail_20' ) start [2025-03-20 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721305', 'tblTempUsageDetail_20' ) end [2025-03-20 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721305', 'tblTempVendorCDR_20' ) start [2025-03-20 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721305', 'tblTempVendorCDR_20' ) end [2025-03-20 07:27:18] Production.INFO: ProcessCDR(1,14721305,1,1,2) [2025-03-20 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721305', 'tblTempUsageDetail_20' ) start [2025-03-20 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721305', 'tblTempUsageDetail_20' ) end [2025-03-20 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:27:21] Production.INFO: ==26266== Releasing lock... [2025-03-20 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:27:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:28:05 [end_date_ymd] => 2025-03-20 07:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:28:17] Production.INFO: count ==92 [2025-03-20 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:28:05 - End Time 2025-03-20 07:28:05 [2025-03-20 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721310', 'tblTempUsageDetail_20' ) start [2025-03-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721310', 'tblTempUsageDetail_20' ) end [2025-03-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721310', 'tblTempVendorCDR_20' ) start [2025-03-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721310', 'tblTempVendorCDR_20' ) end [2025-03-20 07:28:17] Production.INFO: ProcessCDR(1,14721310,1,1,2) [2025-03-20 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721310', 'tblTempUsageDetail_20' ) start [2025-03-20 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721310', 'tblTempUsageDetail_20' ) end [2025-03-20 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:28:22] Production.INFO: ==26337== Releasing lock... [2025-03-20 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:28:22] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:29:05 [end_date_ymd] => 2025-03-20 07:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:29:17] Production.INFO: count ==92 [2025-03-20 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:29:05 - End Time 2025-03-20 07:29:05 [2025-03-20 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721315', 'tblTempUsageDetail_20' ) start [2025-03-20 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721315', 'tblTempUsageDetail_20' ) end [2025-03-20 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721315', 'tblTempVendorCDR_20' ) start [2025-03-20 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721315', 'tblTempVendorCDR_20' ) end [2025-03-20 07:29:18] Production.INFO: ProcessCDR(1,14721315,1,1,2) [2025-03-20 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721315', 'tblTempUsageDetail_20' ) start [2025-03-20 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721315', 'tblTempUsageDetail_20' ) end [2025-03-20 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:29:21] Production.INFO: ==26411== Releasing lock... [2025-03-20 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:29:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:30:05 [end_date_ymd] => 2025-03-20 07:30:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:30:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:30:17] Production.INFO: count ==94 [2025-03-20 07:30:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:30:05 - End Time 2025-03-20 07:30:05 [2025-03-20 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721321', 'tblTempUsageDetail_20' ) start [2025-03-20 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721321', 'tblTempUsageDetail_20' ) end [2025-03-20 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721321', 'tblTempVendorCDR_20' ) start [2025-03-20 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721321', 'tblTempVendorCDR_20' ) end [2025-03-20 07:30:17] Production.INFO: ProcessCDR(1,14721321,1,1,2) [2025-03-20 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721321', 'tblTempUsageDetail_20' ) start [2025-03-20 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721321', 'tblTempUsageDetail_20' ) end [2025-03-20 07:30:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:30:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:30:20] Production.INFO: ==26485== Releasing lock... [2025-03-20 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:30:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:31:05 [end_date_ymd] => 2025-03-20 07:31:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:31:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:31:17] Production.INFO: count ==94 [2025-03-20 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:31:05 - End Time 2025-03-20 07:31:05 [2025-03-20 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721326', 'tblTempUsageDetail_20' ) start [2025-03-20 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721326', 'tblTempUsageDetail_20' ) end [2025-03-20 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721326', 'tblTempVendorCDR_20' ) start [2025-03-20 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721326', 'tblTempVendorCDR_20' ) end [2025-03-20 07:31:17] Production.INFO: ProcessCDR(1,14721326,1,1,2) [2025-03-20 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721326', 'tblTempUsageDetail_20' ) start [2025-03-20 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721326', 'tblTempUsageDetail_20' ) end [2025-03-20 07:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:31:20] Production.INFO: ==26564== Releasing lock... [2025-03-20 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:31:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:32:05 [end_date_ymd] => 2025-03-20 07:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:32:17] Production.INFO: count ==94 [2025-03-20 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:32:05 - End Time 2025-03-20 07:32:05 [2025-03-20 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721331', 'tblTempUsageDetail_20' ) start [2025-03-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721331', 'tblTempUsageDetail_20' ) end [2025-03-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721331', 'tblTempVendorCDR_20' ) start [2025-03-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721331', 'tblTempVendorCDR_20' ) end [2025-03-20 07:32:17] Production.INFO: ProcessCDR(1,14721331,1,1,2) [2025-03-20 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721331', 'tblTempUsageDetail_20' ) start [2025-03-20 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721331', 'tblTempUsageDetail_20' ) end [2025-03-20 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:32:21] Production.INFO: ==26636== Releasing lock... [2025-03-20 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:33:05 [end_date_ymd] => 2025-03-20 07:33:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:33:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:33:17] Production.INFO: count ==94 [2025-03-20 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:33:05 - End Time 2025-03-20 07:33:05 [2025-03-20 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721336', 'tblTempUsageDetail_20' ) start [2025-03-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721336', 'tblTempUsageDetail_20' ) end [2025-03-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721336', 'tblTempVendorCDR_20' ) start [2025-03-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721336', 'tblTempVendorCDR_20' ) end [2025-03-20 07:33:17] Production.INFO: ProcessCDR(1,14721336,1,1,2) [2025-03-20 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721336', 'tblTempUsageDetail_20' ) start [2025-03-20 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721336', 'tblTempUsageDetail_20' ) end [2025-03-20 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:33:21] Production.INFO: ==26715== Releasing lock... [2025-03-20 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:34:05 [end_date_ymd] => 2025-03-20 07:34:05 [RateCDR] => 1 ) [2025-03-20 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:34:05' and `end` < '2025-03-20 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:34:17] Production.INFO: count ==94 [2025-03-20 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:34:05 - End Time 2025-03-20 07:34:05 [2025-03-20 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721341', 'tblTempUsageDetail_20' ) start [2025-03-20 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721341', 'tblTempUsageDetail_20' ) end [2025-03-20 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721341', 'tblTempVendorCDR_20' ) start [2025-03-20 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721341', 'tblTempVendorCDR_20' ) end [2025-03-20 07:34:17] Production.INFO: ProcessCDR(1,14721341,1,1,2) [2025-03-20 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721341', 'tblTempUsageDetail_20' ) start [2025-03-20 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721341', 'tblTempUsageDetail_20' ) end [2025-03-20 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:34:20] Production.INFO: ==26789== Releasing lock... [2025-03-20 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:34:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:35:05 [end_date_ymd] => 2025-03-20 07:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:35:17] Production.INFO: count ==98 [2025-03-20 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:35:05 - End Time 2025-03-20 07:35:05 [2025-03-20 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721346', 'tblTempUsageDetail_20' ) start [2025-03-20 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721346', 'tblTempUsageDetail_20' ) end [2025-03-20 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721346', 'tblTempVendorCDR_20' ) start [2025-03-20 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721346', 'tblTempVendorCDR_20' ) end [2025-03-20 07:35:17] Production.INFO: ProcessCDR(1,14721346,1,1,2) [2025-03-20 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721346', 'tblTempUsageDetail_20' ) start [2025-03-20 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721346', 'tblTempUsageDetail_20' ) end [2025-03-20 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:35:21] Production.INFO: ==26860== Releasing lock... [2025-03-20 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:36:05 [end_date_ymd] => 2025-03-20 07:36:05 [RateCDR] => 1 ) [2025-03-20 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:36:05' and `end` < '2025-03-20 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:36:17] Production.INFO: count ==99 [2025-03-20 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:36:05 - End Time 2025-03-20 07:36:05 [2025-03-20 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721351', 'tblTempUsageDetail_20' ) start [2025-03-20 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721351', 'tblTempUsageDetail_20' ) end [2025-03-20 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721351', 'tblTempVendorCDR_20' ) start [2025-03-20 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721351', 'tblTempVendorCDR_20' ) end [2025-03-20 07:36:17] Production.INFO: ProcessCDR(1,14721351,1,1,2) [2025-03-20 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721351', 'tblTempUsageDetail_20' ) start [2025-03-20 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721351', 'tblTempUsageDetail_20' ) end [2025-03-20 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:36:22] Production.INFO: ==26932== Releasing lock... [2025-03-20 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:37:05 [end_date_ymd] => 2025-03-20 07:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:37:17] Production.INFO: count ==100 [2025-03-20 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:37:05 - End Time 2025-03-20 07:37:05 [2025-03-20 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721356', 'tblTempUsageDetail_20' ) start [2025-03-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721356', 'tblTempUsageDetail_20' ) end [2025-03-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721356', 'tblTempVendorCDR_20' ) start [2025-03-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721356', 'tblTempVendorCDR_20' ) end [2025-03-20 07:37:17] Production.INFO: ProcessCDR(1,14721356,1,1,2) [2025-03-20 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721356', 'tblTempUsageDetail_20' ) start [2025-03-20 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721356', 'tblTempUsageDetail_20' ) end [2025-03-20 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:37:21] Production.INFO: ==27010== Releasing lock... [2025-03-20 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:38:05 [end_date_ymd] => 2025-03-20 07:38:05 [RateCDR] => 1 ) [2025-03-20 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:38:05' and `end` < '2025-03-20 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:38:18] Production.INFO: count ==100 [2025-03-20 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:38:05 - End Time 2025-03-20 07:38:05 [2025-03-20 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721361', 'tblTempUsageDetail_20' ) start [2025-03-20 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721361', 'tblTempUsageDetail_20' ) end [2025-03-20 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721361', 'tblTempVendorCDR_20' ) start [2025-03-20 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721361', 'tblTempVendorCDR_20' ) end [2025-03-20 07:38:18] Production.INFO: ProcessCDR(1,14721361,1,1,2) [2025-03-20 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721361', 'tblTempUsageDetail_20' ) start [2025-03-20 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721361', 'tblTempUsageDetail_20' ) end [2025-03-20 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:38:21] Production.INFO: ==27086== Releasing lock... [2025-03-20 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:39:05 [end_date_ymd] => 2025-03-20 07:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:39:17] Production.INFO: count ==104 [2025-03-20 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:39:05 - End Time 2025-03-20 07:39:05 [2025-03-20 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721366', 'tblTempUsageDetail_20' ) start [2025-03-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721366', 'tblTempUsageDetail_20' ) end [2025-03-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721366', 'tblTempVendorCDR_20' ) start [2025-03-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721366', 'tblTempVendorCDR_20' ) end [2025-03-20 07:39:17] Production.INFO: ProcessCDR(1,14721366,1,1,2) [2025-03-20 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721366', 'tblTempUsageDetail_20' ) start [2025-03-20 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721366', 'tblTempUsageDetail_20' ) end [2025-03-20 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:39:20] Production.INFO: ==27172== Releasing lock... [2025-03-20 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:39:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:40:06 [end_date_ymd] => 2025-03-20 07:40:06 [RateCDR] => 1 ) [2025-03-20 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:40:06' and `end` < '2025-03-20 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:40:18] Production.INFO: count ==113 [2025-03-20 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:40:06 - End Time 2025-03-20 07:40:06 [2025-03-20 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721371', 'tblTempUsageDetail_20' ) start [2025-03-20 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721371', 'tblTempUsageDetail_20' ) end [2025-03-20 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721371', 'tblTempVendorCDR_20' ) start [2025-03-20 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721371', 'tblTempVendorCDR_20' ) end [2025-03-20 07:40:18] Production.INFO: ProcessCDR(1,14721371,1,1,2) [2025-03-20 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721371', 'tblTempUsageDetail_20' ) start [2025-03-20 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721371', 'tblTempUsageDetail_20' ) end [2025-03-20 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:40:21] Production.INFO: ==27303== Releasing lock... [2025-03-20 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:41:05 [end_date_ymd] => 2025-03-20 07:41:05 [RateCDR] => 1 ) [2025-03-20 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:41:05' and `end` < '2025-03-20 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:41:17] Production.INFO: count ==118 [2025-03-20 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:41:05 - End Time 2025-03-20 07:41:05 [2025-03-20 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721377', 'tblTempUsageDetail_20' ) start [2025-03-20 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721377', 'tblTempUsageDetail_20' ) end [2025-03-20 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721377', 'tblTempVendorCDR_20' ) start [2025-03-20 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721377', 'tblTempVendorCDR_20' ) end [2025-03-20 07:41:17] Production.INFO: ProcessCDR(1,14721377,1,1,2) [2025-03-20 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721377', 'tblTempUsageDetail_20' ) start [2025-03-20 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721377', 'tblTempUsageDetail_20' ) end [2025-03-20 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:41:20] Production.INFO: ==27422== Releasing lock... [2025-03-20 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:41:20] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:42:05 [end_date_ymd] => 2025-03-20 07:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:42:17] Production.INFO: count ==119 [2025-03-20 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:42:05 - End Time 2025-03-20 07:42:05 [2025-03-20 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721382', 'tblTempUsageDetail_20' ) start [2025-03-20 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721382', 'tblTempUsageDetail_20' ) end [2025-03-20 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721382', 'tblTempVendorCDR_20' ) start [2025-03-20 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721382', 'tblTempVendorCDR_20' ) end [2025-03-20 07:42:18] Production.INFO: ProcessCDR(1,14721382,1,1,2) [2025-03-20 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721382', 'tblTempUsageDetail_20' ) start [2025-03-20 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721382', 'tblTempUsageDetail_20' ) end [2025-03-20 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:42:23] Production.INFO: ==27546== Releasing lock... [2025-03-20 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:42:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:43:06 [end_date_ymd] => 2025-03-20 07:43:06 [RateCDR] => 1 ) [2025-03-20 07:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:43:06' and `end` < '2025-03-20 07:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:43:18] Production.INFO: count ==121 [2025-03-20 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:43:06 - End Time 2025-03-20 07:43:06 [2025-03-20 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721387', 'tblTempUsageDetail_20' ) start [2025-03-20 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721387', 'tblTempUsageDetail_20' ) end [2025-03-20 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721387', 'tblTempVendorCDR_20' ) start [2025-03-20 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721387', 'tblTempVendorCDR_20' ) end [2025-03-20 07:43:18] Production.INFO: ProcessCDR(1,14721387,1,1,2) [2025-03-20 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721387', 'tblTempUsageDetail_20' ) start [2025-03-20 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721387', 'tblTempUsageDetail_20' ) end [2025-03-20 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:43:22] Production.INFO: ==27646== Releasing lock... [2025-03-20 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:44:05 [end_date_ymd] => 2025-03-20 07:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:44:17] Production.INFO: count ==121 [2025-03-20 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:44:05 - End Time 2025-03-20 07:44:05 [2025-03-20 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721392', 'tblTempUsageDetail_20' ) start [2025-03-20 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721392', 'tblTempUsageDetail_20' ) end [2025-03-20 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721392', 'tblTempVendorCDR_20' ) start [2025-03-20 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721392', 'tblTempVendorCDR_20' ) end [2025-03-20 07:44:17] Production.INFO: ProcessCDR(1,14721392,1,1,2) [2025-03-20 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721392', 'tblTempUsageDetail_20' ) start [2025-03-20 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721392', 'tblTempUsageDetail_20' ) end [2025-03-20 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:44:21] Production.INFO: ==27737== Releasing lock... [2025-03-20 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:45:06 [end_date_ymd] => 2025-03-20 07:45:06 [RateCDR] => 1 ) [2025-03-20 07:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:45:06' and `end` < '2025-03-20 07:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:45:18] Production.INFO: count ==122 [2025-03-20 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:45:06 - End Time 2025-03-20 07:45:06 [2025-03-20 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721397', 'tblTempUsageDetail_20' ) start [2025-03-20 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721397', 'tblTempUsageDetail_20' ) end [2025-03-20 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721397', 'tblTempVendorCDR_20' ) start [2025-03-20 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721397', 'tblTempVendorCDR_20' ) end [2025-03-20 07:45:18] Production.INFO: ProcessCDR(1,14721397,1,1,2) [2025-03-20 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721397', 'tblTempUsageDetail_20' ) start [2025-03-20 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721397', 'tblTempUsageDetail_20' ) end [2025-03-20 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:45:21] Production.INFO: ==27834== Releasing lock... [2025-03-20 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:45:21] Production.INFO: 29 MB #Memory Used# [2025-03-20 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:46:05 [end_date_ymd] => 2025-03-20 07:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:46:17] Production.INFO: count ==127 [2025-03-20 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:46:05 - End Time 2025-03-20 07:46:05 [2025-03-20 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721402', 'tblTempUsageDetail_20' ) start [2025-03-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721402', 'tblTempUsageDetail_20' ) end [2025-03-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721402', 'tblTempVendorCDR_20' ) start [2025-03-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721402', 'tblTempVendorCDR_20' ) end [2025-03-20 07:46:17] Production.INFO: ProcessCDR(1,14721402,1,1,2) [2025-03-20 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721402', 'tblTempUsageDetail_20' ) start [2025-03-20 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721402', 'tblTempUsageDetail_20' ) end [2025-03-20 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:46:20] Production.INFO: ==27917== Releasing lock... [2025-03-20 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:47:05 [end_date_ymd] => 2025-03-20 07:47:05 [RateCDR] => 1 ) [2025-03-20 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:47:05' and `end` < '2025-03-20 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:47:17] Production.INFO: count ==127 [2025-03-20 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:47:05 - End Time 2025-03-20 07:47:05 [2025-03-20 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721407', 'tblTempUsageDetail_20' ) start [2025-03-20 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721407', 'tblTempUsageDetail_20' ) end [2025-03-20 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721407', 'tblTempVendorCDR_20' ) start [2025-03-20 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721407', 'tblTempVendorCDR_20' ) end [2025-03-20 07:47:18] Production.INFO: ProcessCDR(1,14721407,1,1,2) [2025-03-20 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721407', 'tblTempUsageDetail_20' ) start [2025-03-20 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721407', 'tblTempUsageDetail_20' ) end [2025-03-20 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:47:21] Production.INFO: ==27997== Releasing lock... [2025-03-20 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:48:05 [end_date_ymd] => 2025-03-20 07:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:48:18] Production.INFO: count ==127 [2025-03-20 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:48:05 - End Time 2025-03-20 07:48:05 [2025-03-20 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721412', 'tblTempUsageDetail_20' ) start [2025-03-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721412', 'tblTempUsageDetail_20' ) end [2025-03-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721412', 'tblTempVendorCDR_20' ) start [2025-03-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721412', 'tblTempVendorCDR_20' ) end [2025-03-20 07:48:18] Production.INFO: ProcessCDR(1,14721412,1,1,2) [2025-03-20 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721412', 'tblTempUsageDetail_20' ) start [2025-03-20 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721412', 'tblTempUsageDetail_20' ) end [2025-03-20 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:48:21] Production.INFO: ==28086== Releasing lock... [2025-03-20 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:49:05 [end_date_ymd] => 2025-03-20 07:49:05 [RateCDR] => 1 ) [2025-03-20 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:49:05' and `end` < '2025-03-20 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:49:17] Production.INFO: count ==127 [2025-03-20 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:49:05 - End Time 2025-03-20 07:49:05 [2025-03-20 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721417', 'tblTempUsageDetail_20' ) start [2025-03-20 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721417', 'tblTempUsageDetail_20' ) end [2025-03-20 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721417', 'tblTempVendorCDR_20' ) start [2025-03-20 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721417', 'tblTempVendorCDR_20' ) end [2025-03-20 07:49:17] Production.INFO: ProcessCDR(1,14721417,1,1,2) [2025-03-20 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721417', 'tblTempUsageDetail_20' ) start [2025-03-20 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721417', 'tblTempUsageDetail_20' ) end [2025-03-20 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:49:20] Production.INFO: ==28173== Releasing lock... [2025-03-20 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:50:06 [end_date_ymd] => 2025-03-20 07:50:06 [RateCDR] => 1 ) [2025-03-20 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:50:06' and `end` < '2025-03-20 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:50:18] Production.INFO: count ==127 [2025-03-20 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:50:06 - End Time 2025-03-20 07:50:06 [2025-03-20 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721423', 'tblTempUsageDetail_20' ) start [2025-03-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721423', 'tblTempUsageDetail_20' ) end [2025-03-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721423', 'tblTempVendorCDR_20' ) start [2025-03-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721423', 'tblTempVendorCDR_20' ) end [2025-03-20 07:50:18] Production.INFO: ProcessCDR(1,14721423,1,1,2) [2025-03-20 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721423', 'tblTempUsageDetail_20' ) start [2025-03-20 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721423', 'tblTempUsageDetail_20' ) end [2025-03-20 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:50:21] Production.INFO: ==28264== Releasing lock... [2025-03-20 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:51:06 [end_date_ymd] => 2025-03-20 07:51:06 [RateCDR] => 1 ) [2025-03-20 07:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:51:06' and `end` < '2025-03-20 07:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:51:18] Production.INFO: count ==128 [2025-03-20 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:51:06 - End Time 2025-03-20 07:51:06 [2025-03-20 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721428', 'tblTempUsageDetail_20' ) start [2025-03-20 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721428', 'tblTempUsageDetail_20' ) end [2025-03-20 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721428', 'tblTempVendorCDR_20' ) start [2025-03-20 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721428', 'tblTempVendorCDR_20' ) end [2025-03-20 07:51:18] Production.INFO: ProcessCDR(1,14721428,1,1,2) [2025-03-20 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721428', 'tblTempUsageDetail_20' ) start [2025-03-20 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721428', 'tblTempUsageDetail_20' ) end [2025-03-20 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:51:23] Production.INFO: ==28355== Releasing lock... [2025-03-20 07:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:51:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:52:05 [end_date_ymd] => 2025-03-20 07:52:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:52:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:52:17] Production.INFO: count ==128 [2025-03-20 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:52:05 - End Time 2025-03-20 07:52:05 [2025-03-20 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721433', 'tblTempUsageDetail_20' ) start [2025-03-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721433', 'tblTempUsageDetail_20' ) end [2025-03-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721433', 'tblTempVendorCDR_20' ) start [2025-03-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721433', 'tblTempVendorCDR_20' ) end [2025-03-20 07:52:17] Production.INFO: ProcessCDR(1,14721433,1,1,2) [2025-03-20 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721433', 'tblTempUsageDetail_20' ) start [2025-03-20 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721433', 'tblTempUsageDetail_20' ) end [2025-03-20 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:52:21] Production.INFO: ==28444== Releasing lock... [2025-03-20 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:53:06 [end_date_ymd] => 2025-03-20 07:53:06 [RateCDR] => 1 ) [2025-03-20 07:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:53:06' and `end` < '2025-03-20 07:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:53:18] Production.INFO: count ==128 [2025-03-20 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:53:06 - End Time 2025-03-20 07:53:06 [2025-03-20 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721438', 'tblTempUsageDetail_20' ) start [2025-03-20 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721438', 'tblTempUsageDetail_20' ) end [2025-03-20 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721438', 'tblTempVendorCDR_20' ) start [2025-03-20 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721438', 'tblTempVendorCDR_20' ) end [2025-03-20 07:53:18] Production.INFO: ProcessCDR(1,14721438,1,1,2) [2025-03-20 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721438', 'tblTempUsageDetail_20' ) start [2025-03-20 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721438', 'tblTempUsageDetail_20' ) end [2025-03-20 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:53:22] Production.INFO: ==28529== Releasing lock... [2025-03-20 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:54:05 [end_date_ymd] => 2025-03-20 07:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:54:17] Production.INFO: count ==128 [2025-03-20 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:54:05 - End Time 2025-03-20 07:54:05 [2025-03-20 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721443', 'tblTempUsageDetail_20' ) start [2025-03-20 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721443', 'tblTempUsageDetail_20' ) end [2025-03-20 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721443', 'tblTempVendorCDR_20' ) start [2025-03-20 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721443', 'tblTempVendorCDR_20' ) end [2025-03-20 07:54:17] Production.INFO: ProcessCDR(1,14721443,1,1,2) [2025-03-20 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721443', 'tblTempUsageDetail_20' ) start [2025-03-20 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721443', 'tblTempUsageDetail_20' ) end [2025-03-20 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:54:21] Production.INFO: ==28638== Releasing lock... [2025-03-20 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:55:05 [end_date_ymd] => 2025-03-20 07:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:55:18] Production.INFO: count ==130 [2025-03-20 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-20 04:55:05 - End Time 2025-03-20 07:55:05 [2025-03-20 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721448', 'tblTempUsageDetail_20' ) start [2025-03-20 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721448', 'tblTempUsageDetail_20' ) end [2025-03-20 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721448', 'tblTempVendorCDR_20' ) start [2025-03-20 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721448', 'tblTempVendorCDR_20' ) end [2025-03-20 07:55:18] Production.INFO: ProcessCDR(1,14721448,1,1,2) [2025-03-20 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721448', 'tblTempUsageDetail_20' ) start [2025-03-20 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721448', 'tblTempUsageDetail_20' ) end [2025-03-20 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:55:23] Production.INFO: ==28751== Releasing lock... [2025-03-20 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:55:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:56:05 [end_date_ymd] => 2025-03-20 07:56:05 [RateCDR] => 1 ) [2025-03-20 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:56:05' and `end` < '2025-03-20 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:56:17] Production.INFO: count ==125 [2025-03-20 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:56:05 - End Time 2025-03-20 07:56:05 [2025-03-20 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721453', 'tblTempUsageDetail_20' ) start [2025-03-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721453', 'tblTempUsageDetail_20' ) end [2025-03-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721453', 'tblTempVendorCDR_20' ) start [2025-03-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721453', 'tblTempVendorCDR_20' ) end [2025-03-20 07:56:17] Production.INFO: ProcessCDR(1,14721453,1,1,2) [2025-03-20 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721453', 'tblTempUsageDetail_20' ) start [2025-03-20 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721453', 'tblTempUsageDetail_20' ) end [2025-03-20 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:56:20] Production.INFO: ==28895== Releasing lock... [2025-03-20 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:56:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:57:05 [end_date_ymd] => 2025-03-20 07:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:57:17] Production.INFO: count ==125 [2025-03-20 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:57:05 - End Time 2025-03-20 07:57:05 [2025-03-20 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721458', 'tblTempUsageDetail_20' ) start [2025-03-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721458', 'tblTempUsageDetail_20' ) end [2025-03-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721458', 'tblTempVendorCDR_20' ) start [2025-03-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721458', 'tblTempVendorCDR_20' ) end [2025-03-20 07:57:17] Production.INFO: ProcessCDR(1,14721458,1,1,2) [2025-03-20 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721458', 'tblTempUsageDetail_20' ) start [2025-03-20 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721458', 'tblTempUsageDetail_20' ) end [2025-03-20 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:57:20] Production.INFO: ==29003== Releasing lock... [2025-03-20 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:57:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:58:05 [end_date_ymd] => 2025-03-20 07:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 04:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 07:58:17] Production.INFO: count ==125 [2025-03-20 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:58:05 - End Time 2025-03-20 07:58:05 [2025-03-20 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721463', 'tblTempUsageDetail_20' ) start [2025-03-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721463', 'tblTempUsageDetail_20' ) end [2025-03-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721463', 'tblTempVendorCDR_20' ) start [2025-03-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721463', 'tblTempVendorCDR_20' ) end [2025-03-20 07:58:17] Production.INFO: ProcessCDR(1,14721463,1,1,2) [2025-03-20 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721463', 'tblTempUsageDetail_20' ) start [2025-03-20 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721463', 'tblTempUsageDetail_20' ) end [2025-03-20 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:58:21] Production.INFO: ==29113== Releasing lock... [2025-03-20 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 04:59:04 [end_date_ymd] => 2025-03-20 07:59:04 [RateCDR] => 1 ) [2025-03-20 07:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 04:59:04' and `end` < '2025-03-20 07:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 07:59:17] Production.INFO: count ==126 [2025-03-20 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-20 04:59:04 - End Time 2025-03-20 07:59:04 [2025-03-20 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721468', 'tblTempUsageDetail_20' ) start [2025-03-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721468', 'tblTempUsageDetail_20' ) end [2025-03-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721468', 'tblTempVendorCDR_20' ) start [2025-03-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721468', 'tblTempVendorCDR_20' ) end [2025-03-20 07:59:17] Production.INFO: ProcessCDR(1,14721468,1,1,2) [2025-03-20 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721468', 'tblTempUsageDetail_20' ) start [2025-03-20 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721468', 'tblTempUsageDetail_20' ) end [2025-03-20 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 07:59:20] Production.INFO: ==29221== Releasing lock... [2025-03-20 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 07:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:00:06 [end_date_ymd] => 2025-03-20 08:00:06 [RateCDR] => 1 ) [2025-03-20 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:00:06' and `end` < '2025-03-20 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:00:19] Production.INFO: count ==137 [2025-03-20 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 05:00:06 - End Time 2025-03-20 08:00:06 [2025-03-20 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721474', 'tblTempUsageDetail_20' ) start [2025-03-20 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721474', 'tblTempUsageDetail_20' ) end [2025-03-20 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721474', 'tblTempVendorCDR_20' ) start [2025-03-20 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721474', 'tblTempVendorCDR_20' ) end [2025-03-20 08:00:19] Production.INFO: ProcessCDR(1,14721474,1,1,2) [2025-03-20 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721474', 'tblTempUsageDetail_20' ) start [2025-03-20 08:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721474', 'tblTempUsageDetail_20' ) end [2025-03-20 08:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:00:25] Production.INFO: ==29334== Releasing lock... [2025-03-20 08:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:00:25] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:01:05 [end_date_ymd] => 2025-03-20 08:01:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:01:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:01:17] Production.INFO: count ==152 [2025-03-20 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:01:05 - End Time 2025-03-20 08:01:05 [2025-03-20 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721479', 'tblTempUsageDetail_20' ) start [2025-03-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721479', 'tblTempUsageDetail_20' ) end [2025-03-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721479', 'tblTempVendorCDR_20' ) start [2025-03-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721479', 'tblTempVendorCDR_20' ) end [2025-03-20 08:01:17] Production.INFO: ProcessCDR(1,14721479,1,1,2) [2025-03-20 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721479', 'tblTempUsageDetail_20' ) start [2025-03-20 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721479', 'tblTempUsageDetail_20' ) end [2025-03-20 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:01:20] Production.INFO: ==29445== Releasing lock... [2025-03-20 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:01:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:02:05 [end_date_ymd] => 2025-03-20 08:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:02:17] Production.INFO: count ==151 [2025-03-20 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:02:05 - End Time 2025-03-20 08:02:05 [2025-03-20 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721484', 'tblTempUsageDetail_20' ) start [2025-03-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721484', 'tblTempUsageDetail_20' ) end [2025-03-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721484', 'tblTempVendorCDR_20' ) start [2025-03-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721484', 'tblTempVendorCDR_20' ) end [2025-03-20 08:02:18] Production.INFO: ProcessCDR(1,14721484,1,1,2) [2025-03-20 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721484', 'tblTempUsageDetail_20' ) start [2025-03-20 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721484', 'tblTempUsageDetail_20' ) end [2025-03-20 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:02:23] Production.INFO: ==29543== Releasing lock... [2025-03-20 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:02:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:03:05 [end_date_ymd] => 2025-03-20 08:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:03:17] Production.INFO: count ==151 [2025-03-20 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:03:05 - End Time 2025-03-20 08:03:05 [2025-03-20 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721489', 'tblTempUsageDetail_20' ) start [2025-03-20 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721489', 'tblTempUsageDetail_20' ) end [2025-03-20 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721489', 'tblTempVendorCDR_20' ) start [2025-03-20 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721489', 'tblTempVendorCDR_20' ) end [2025-03-20 08:03:18] Production.INFO: ProcessCDR(1,14721489,1,1,2) [2025-03-20 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721489', 'tblTempUsageDetail_20' ) start [2025-03-20 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721489', 'tblTempUsageDetail_20' ) end [2025-03-20 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:03:21] Production.INFO: ==29647== Releasing lock... [2025-03-20 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:04:06 [end_date_ymd] => 2025-03-20 08:04:06 [RateCDR] => 1 ) [2025-03-20 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:04:06' and `end` < '2025-03-20 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:04:18] Production.INFO: count ==151 [2025-03-20 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:04:06 - End Time 2025-03-20 08:04:06 [2025-03-20 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721494', 'tblTempUsageDetail_20' ) start [2025-03-20 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721494', 'tblTempUsageDetail_20' ) end [2025-03-20 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721494', 'tblTempVendorCDR_20' ) start [2025-03-20 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721494', 'tblTempVendorCDR_20' ) end [2025-03-20 08:04:18] Production.INFO: ProcessCDR(1,14721494,1,1,2) [2025-03-20 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721494', 'tblTempUsageDetail_20' ) start [2025-03-20 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721494', 'tblTempUsageDetail_20' ) end [2025-03-20 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:04:22] Production.INFO: ==29748== Releasing lock... [2025-03-20 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:05:04 [end_date_ymd] => 2025-03-20 08:05:04 [RateCDR] => 1 ) [2025-03-20 08:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:05:04' and `end` < '2025-03-20 08:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:05:16] Production.INFO: count ==155 [2025-03-20 08:05:16] Production.ERROR: pbx CDR StartTime 2025-03-20 05:05:04 - End Time 2025-03-20 08:05:04 [2025-03-20 08:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721499', 'tblTempUsageDetail_20' ) start [2025-03-20 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721499', 'tblTempUsageDetail_20' ) end [2025-03-20 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721499', 'tblTempVendorCDR_20' ) start [2025-03-20 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721499', 'tblTempVendorCDR_20' ) end [2025-03-20 08:05:16] Production.INFO: ProcessCDR(1,14721499,1,1,2) [2025-03-20 08:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721499', 'tblTempUsageDetail_20' ) start [2025-03-20 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721499', 'tblTempUsageDetail_20' ) end [2025-03-20 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:05:20] Production.INFO: ==29857== Releasing lock... [2025-03-20 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:06:05 [end_date_ymd] => 2025-03-20 08:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:06:17] Production.INFO: count ==155 [2025-03-20 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:06:05 - End Time 2025-03-20 08:06:05 [2025-03-20 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721504', 'tblTempUsageDetail_20' ) start [2025-03-20 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721504', 'tblTempUsageDetail_20' ) end [2025-03-20 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721504', 'tblTempVendorCDR_20' ) start [2025-03-20 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721504', 'tblTempVendorCDR_20' ) end [2025-03-20 08:06:17] Production.INFO: ProcessCDR(1,14721504,1,1,2) [2025-03-20 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721504', 'tblTempUsageDetail_20' ) start [2025-03-20 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721504', 'tblTempUsageDetail_20' ) end [2025-03-20 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:06:21] Production.INFO: ==29962== Releasing lock... [2025-03-20 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:07:05 [end_date_ymd] => 2025-03-20 08:07:05 [RateCDR] => 1 ) [2025-03-20 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:07:05' and `end` < '2025-03-20 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:07:17] Production.INFO: count ==155 [2025-03-20 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:07:05 - End Time 2025-03-20 08:07:05 [2025-03-20 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721509', 'tblTempUsageDetail_20' ) start [2025-03-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721509', 'tblTempUsageDetail_20' ) end [2025-03-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721509', 'tblTempVendorCDR_20' ) start [2025-03-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721509', 'tblTempVendorCDR_20' ) end [2025-03-20 08:07:17] Production.INFO: ProcessCDR(1,14721509,1,1,2) [2025-03-20 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721509', 'tblTempUsageDetail_20' ) start [2025-03-20 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721509', 'tblTempUsageDetail_20' ) end [2025-03-20 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:07:20] Production.INFO: ==30065== Releasing lock... [2025-03-20 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:08:05 [end_date_ymd] => 2025-03-20 08:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:08:17] Production.INFO: count ==150 [2025-03-20 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:08:05 - End Time 2025-03-20 08:08:05 [2025-03-20 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721514', 'tblTempUsageDetail_20' ) start [2025-03-20 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721514', 'tblTempUsageDetail_20' ) end [2025-03-20 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721514', 'tblTempVendorCDR_20' ) start [2025-03-20 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721514', 'tblTempVendorCDR_20' ) end [2025-03-20 08:08:17] Production.INFO: ProcessCDR(1,14721514,1,1,2) [2025-03-20 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721514', 'tblTempUsageDetail_20' ) start [2025-03-20 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721514', 'tblTempUsageDetail_20' ) end [2025-03-20 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:08:21] Production.INFO: ==30166== Releasing lock... [2025-03-20 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:09:05 [end_date_ymd] => 2025-03-20 08:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:09:17] Production.INFO: count ==150 [2025-03-20 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:09:05 - End Time 2025-03-20 08:09:05 [2025-03-20 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721519', 'tblTempUsageDetail_20' ) start [2025-03-20 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721519', 'tblTempUsageDetail_20' ) end [2025-03-20 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721519', 'tblTempVendorCDR_20' ) start [2025-03-20 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721519', 'tblTempVendorCDR_20' ) end [2025-03-20 08:09:17] Production.INFO: ProcessCDR(1,14721519,1,1,2) [2025-03-20 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721519', 'tblTempUsageDetail_20' ) start [2025-03-20 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721519', 'tblTempUsageDetail_20' ) end [2025-03-20 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:09:20] Production.INFO: ==30267== Releasing lock... [2025-03-20 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:09:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-20 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:10:06 [end_date_ymd] => 2025-03-20 08:10:06 [RateCDR] => 1 ) [2025-03-20 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:10:06' and `end` < '2025-03-20 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:10:19] Production.INFO: count ==160 [2025-03-20 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-20 05:10:06 - End Time 2025-03-20 08:10:06 [2025-03-20 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721525', 'tblTempUsageDetail_20' ) start [2025-03-20 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721525', 'tblTempUsageDetail_20' ) end [2025-03-20 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721525', 'tblTempVendorCDR_20' ) start [2025-03-20 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721525', 'tblTempVendorCDR_20' ) end [2025-03-20 08:10:19] Production.INFO: ProcessCDR(1,14721525,1,1,2) [2025-03-20 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721525', 'tblTempUsageDetail_20' ) start [2025-03-20 08:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721525', 'tblTempUsageDetail_20' ) end [2025-03-20 08:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:10:26] Production.INFO: ==30382== Releasing lock... [2025-03-20 08:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:10:26] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:11:06 [end_date_ymd] => 2025-03-20 08:11:06 [RateCDR] => 1 ) [2025-03-20 08:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:11:06' and `end` < '2025-03-20 08:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:11:18] Production.INFO: count ==160 [2025-03-20 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:11:06 - End Time 2025-03-20 08:11:06 [2025-03-20 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721530', 'tblTempUsageDetail_20' ) start [2025-03-20 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721530', 'tblTempUsageDetail_20' ) end [2025-03-20 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721530', 'tblTempVendorCDR_20' ) start [2025-03-20 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721530', 'tblTempVendorCDR_20' ) end [2025-03-20 08:11:18] Production.INFO: ProcessCDR(1,14721530,1,1,2) [2025-03-20 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721530', 'tblTempUsageDetail_20' ) start [2025-03-20 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721530', 'tblTempUsageDetail_20' ) end [2025-03-20 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:11:21] Production.INFO: ==30522== Releasing lock... [2025-03-20 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:12:05 [end_date_ymd] => 2025-03-20 08:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:12:17] Production.INFO: count ==168 [2025-03-20 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:12:05 - End Time 2025-03-20 08:12:05 [2025-03-20 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721535', 'tblTempUsageDetail_20' ) start [2025-03-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721535', 'tblTempUsageDetail_20' ) end [2025-03-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721535', 'tblTempVendorCDR_20' ) start [2025-03-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721535', 'tblTempVendorCDR_20' ) end [2025-03-20 08:12:17] Production.INFO: ProcessCDR(1,14721535,1,1,2) [2025-03-20 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721535', 'tblTempUsageDetail_20' ) start [2025-03-20 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721535', 'tblTempUsageDetail_20' ) end [2025-03-20 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:12:21] Production.INFO: ==30617== Releasing lock... [2025-03-20 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:13:06 [end_date_ymd] => 2025-03-20 08:13:06 [RateCDR] => 1 ) [2025-03-20 08:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:13:06' and `end` < '2025-03-20 08:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:13:18] Production.INFO: count ==169 [2025-03-20 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:13:06 - End Time 2025-03-20 08:13:06 [2025-03-20 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721540', 'tblTempUsageDetail_20' ) start [2025-03-20 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721540', 'tblTempUsageDetail_20' ) end [2025-03-20 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721540', 'tblTempVendorCDR_20' ) start [2025-03-20 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721540', 'tblTempVendorCDR_20' ) end [2025-03-20 08:13:18] Production.INFO: ProcessCDR(1,14721540,1,1,2) [2025-03-20 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721540', 'tblTempUsageDetail_20' ) start [2025-03-20 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721540', 'tblTempUsageDetail_20' ) end [2025-03-20 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:13:22] Production.INFO: ==30700== Releasing lock... [2025-03-20 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:14:05 [end_date_ymd] => 2025-03-20 08:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:14:17] Production.INFO: count ==174 [2025-03-20 08:14:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:14:05 - End Time 2025-03-20 08:14:05 [2025-03-20 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721545', 'tblTempUsageDetail_20' ) start [2025-03-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721545', 'tblTempUsageDetail_20' ) end [2025-03-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721545', 'tblTempVendorCDR_20' ) start [2025-03-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721545', 'tblTempVendorCDR_20' ) end [2025-03-20 08:14:17] Production.INFO: ProcessCDR(1,14721545,1,1,2) [2025-03-20 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721545', 'tblTempUsageDetail_20' ) start [2025-03-20 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721545', 'tblTempUsageDetail_20' ) end [2025-03-20 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:14:21] Production.INFO: ==30787== Releasing lock... [2025-03-20 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-20 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:15:05 [end_date_ymd] => 2025-03-20 08:15:05 [RateCDR] => 1 ) [2025-03-20 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:15:05' and `end` < '2025-03-20 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:15:18] Production.INFO: count ==181 [2025-03-20 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:15:05 - End Time 2025-03-20 08:15:05 [2025-03-20 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721550', 'tblTempUsageDetail_20' ) start [2025-03-20 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721550', 'tblTempUsageDetail_20' ) end [2025-03-20 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721550', 'tblTempVendorCDR_20' ) start [2025-03-20 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721550', 'tblTempVendorCDR_20' ) end [2025-03-20 08:15:18] Production.INFO: ProcessCDR(1,14721550,1,1,2) [2025-03-20 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721550', 'tblTempUsageDetail_20' ) start [2025-03-20 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721550', 'tblTempUsageDetail_20' ) end [2025-03-20 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:15:23] Production.INFO: ==30887== Releasing lock... [2025-03-20 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:15:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:16:05 [end_date_ymd] => 2025-03-20 08:16:05 [RateCDR] => 1 ) [2025-03-20 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:16:05' and `end` < '2025-03-20 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:16:17] Production.INFO: count ==181 [2025-03-20 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:16:05 - End Time 2025-03-20 08:16:05 [2025-03-20 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721555', 'tblTempUsageDetail_20' ) start [2025-03-20 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721555', 'tblTempUsageDetail_20' ) end [2025-03-20 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721555', 'tblTempVendorCDR_20' ) start [2025-03-20 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721555', 'tblTempVendorCDR_20' ) end [2025-03-20 08:16:18] Production.INFO: ProcessCDR(1,14721555,1,1,2) [2025-03-20 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721555', 'tblTempUsageDetail_20' ) start [2025-03-20 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721555', 'tblTempUsageDetail_20' ) end [2025-03-20 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:16:21] Production.INFO: ==30977== Releasing lock... [2025-03-20 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-20 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:17:06 [end_date_ymd] => 2025-03-20 08:17:06 [RateCDR] => 1 ) [2025-03-20 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:17:06' and `end` < '2025-03-20 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:17:18] Production.INFO: count ==189 [2025-03-20 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:17:06 - End Time 2025-03-20 08:17:06 [2025-03-20 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721560', 'tblTempUsageDetail_20' ) start [2025-03-20 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721560', 'tblTempUsageDetail_20' ) end [2025-03-20 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721560', 'tblTempVendorCDR_20' ) start [2025-03-20 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721560', 'tblTempVendorCDR_20' ) end [2025-03-20 08:17:18] Production.INFO: ProcessCDR(1,14721560,1,1,2) [2025-03-20 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721560', 'tblTempUsageDetail_20' ) start [2025-03-20 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721560', 'tblTempUsageDetail_20' ) end [2025-03-20 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:17:23] Production.INFO: ==31078== Releasing lock... [2025-03-20 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:17:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-20 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:18:05 [end_date_ymd] => 2025-03-20 08:18:05 [RateCDR] => 1 ) [2025-03-20 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:18:05' and `end` < '2025-03-20 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:18:17] Production.INFO: count ==204 [2025-03-20 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:18:05 - End Time 2025-03-20 08:18:05 [2025-03-20 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721565', 'tblTempUsageDetail_20' ) start [2025-03-20 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721565', 'tblTempUsageDetail_20' ) end [2025-03-20 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721565', 'tblTempVendorCDR_20' ) start [2025-03-20 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721565', 'tblTempVendorCDR_20' ) end [2025-03-20 08:18:17] Production.INFO: ProcessCDR(1,14721565,1,1,2) [2025-03-20 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721565', 'tblTempUsageDetail_20' ) start [2025-03-20 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721565', 'tblTempUsageDetail_20' ) end [2025-03-20 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:18:22] Production.INFO: ==31178== Releasing lock... [2025-03-20 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:18:22] Production.INFO: 30 MB #Memory Used# [2025-03-20 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:19:05 [end_date_ymd] => 2025-03-20 08:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:19:17] Production.INFO: count ==205 [2025-03-20 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:19:05 - End Time 2025-03-20 08:19:05 [2025-03-20 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721570', 'tblTempUsageDetail_20' ) start [2025-03-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721570', 'tblTempUsageDetail_20' ) end [2025-03-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721570', 'tblTempVendorCDR_20' ) start [2025-03-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721570', 'tblTempVendorCDR_20' ) end [2025-03-20 08:19:17] Production.INFO: ProcessCDR(1,14721570,1,1,2) [2025-03-20 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721570', 'tblTempUsageDetail_20' ) start [2025-03-20 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721570', 'tblTempUsageDetail_20' ) end [2025-03-20 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:19:22] Production.INFO: ==31293== Releasing lock... [2025-03-20 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:19:22] Production.INFO: 30 MB #Memory Used# [2025-03-20 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:20:06 [end_date_ymd] => 2025-03-20 08:20:06 [RateCDR] => 1 ) [2025-03-20 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:20:06' and `end` < '2025-03-20 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:20:18] Production.INFO: count ==218 [2025-03-20 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:20:06 - End Time 2025-03-20 08:20:06 [2025-03-20 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721576', 'tblTempUsageDetail_20' ) start [2025-03-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721576', 'tblTempUsageDetail_20' ) end [2025-03-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721576', 'tblTempVendorCDR_20' ) start [2025-03-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721576', 'tblTempVendorCDR_20' ) end [2025-03-20 08:20:18] Production.INFO: ProcessCDR(1,14721576,1,1,2) [2025-03-20 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721576', 'tblTempUsageDetail_20' ) start [2025-03-20 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721576', 'tblTempUsageDetail_20' ) end [2025-03-20 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:20:22] Production.INFO: ==31394== Releasing lock... [2025-03-20 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-20 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:21:06 [end_date_ymd] => 2025-03-20 08:21:06 [RateCDR] => 1 ) [2025-03-20 08:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:21:06' and `end` < '2025-03-20 08:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:21:18] Production.INFO: count ==230 [2025-03-20 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:21:06 - End Time 2025-03-20 08:21:06 [2025-03-20 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721581', 'tblTempUsageDetail_20' ) start [2025-03-20 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721581', 'tblTempUsageDetail_20' ) end [2025-03-20 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721581', 'tblTempVendorCDR_20' ) start [2025-03-20 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721581', 'tblTempVendorCDR_20' ) end [2025-03-20 08:21:18] Production.INFO: ProcessCDR(1,14721581,1,1,2) [2025-03-20 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721581', 'tblTempUsageDetail_20' ) start [2025-03-20 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721581', 'tblTempUsageDetail_20' ) end [2025-03-20 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:21:21] Production.INFO: ==31510== Releasing lock... [2025-03-20 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-20 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:22:05 [end_date_ymd] => 2025-03-20 08:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:22:17] Production.INFO: count ==234 [2025-03-20 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:22:05 - End Time 2025-03-20 08:22:05 [2025-03-20 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721586', 'tblTempUsageDetail_20' ) start [2025-03-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721586', 'tblTempUsageDetail_20' ) end [2025-03-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721586', 'tblTempVendorCDR_20' ) start [2025-03-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721586', 'tblTempVendorCDR_20' ) end [2025-03-20 08:22:17] Production.INFO: ProcessCDR(1,14721586,1,1,2) [2025-03-20 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721586', 'tblTempUsageDetail_20' ) start [2025-03-20 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721586', 'tblTempUsageDetail_20' ) end [2025-03-20 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:22:20] Production.INFO: ==31613== Releasing lock... [2025-03-20 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-20 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:23:05 [end_date_ymd] => 2025-03-20 08:23:05 [RateCDR] => 1 ) [2025-03-20 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:23:05' and `end` < '2025-03-20 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:23:18] Production.INFO: count ==251 [2025-03-20 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:23:05 - End Time 2025-03-20 08:23:05 [2025-03-20 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721591', 'tblTempUsageDetail_20' ) start [2025-03-20 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721591', 'tblTempUsageDetail_20' ) end [2025-03-20 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721591', 'tblTempVendorCDR_20' ) start [2025-03-20 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721591', 'tblTempVendorCDR_20' ) end [2025-03-20 08:23:18] Production.INFO: ProcessCDR(1,14721591,1,1,2) [2025-03-20 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721591', 'tblTempUsageDetail_20' ) start [2025-03-20 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721591', 'tblTempUsageDetail_20' ) end [2025-03-20 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:23:21] Production.INFO: ==31721== Releasing lock... [2025-03-20 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-20 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:24:05 [end_date_ymd] => 2025-03-20 08:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:24:17] Production.INFO: count ==256 [2025-03-20 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:24:05 - End Time 2025-03-20 08:24:05 [2025-03-20 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721596', 'tblTempUsageDetail_20' ) start [2025-03-20 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721596', 'tblTempUsageDetail_20' ) end [2025-03-20 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721596', 'tblTempVendorCDR_20' ) start [2025-03-20 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721596', 'tblTempVendorCDR_20' ) end [2025-03-20 08:24:17] Production.INFO: ProcessCDR(1,14721596,1,1,2) [2025-03-20 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721596', 'tblTempUsageDetail_20' ) start [2025-03-20 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721596', 'tblTempUsageDetail_20' ) end [2025-03-20 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:24:22] Production.INFO: ==31821== Releasing lock... [2025-03-20 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-20 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:25:05 [end_date_ymd] => 2025-03-20 08:25:05 [RateCDR] => 1 ) [2025-03-20 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:25:05' and `end` < '2025-03-20 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:25:18] Production.INFO: count ==257 [2025-03-20 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:25:05 - End Time 2025-03-20 08:25:05 [2025-03-20 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721601', 'tblTempUsageDetail_20' ) start [2025-03-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721601', 'tblTempUsageDetail_20' ) end [2025-03-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721601', 'tblTempVendorCDR_20' ) start [2025-03-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721601', 'tblTempVendorCDR_20' ) end [2025-03-20 08:25:18] Production.INFO: ProcessCDR(1,14721601,1,1,2) [2025-03-20 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721601', 'tblTempUsageDetail_20' ) start [2025-03-20 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721601', 'tblTempUsageDetail_20' ) end [2025-03-20 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:25:23] Production.INFO: ==31921== Releasing lock... [2025-03-20 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:25:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-20 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:26:04 [end_date_ymd] => 2025-03-20 08:26:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:26:04' and `end` < '2025-03-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 ,'') [2025-03-20 08:26:16] Production.INFO: count ==257 [2025-03-20 08:26:16] Production.ERROR: pbx CDR StartTime 2025-03-20 05:26:04 - End Time 2025-03-20 08:26:04 [2025-03-20 08:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721606', 'tblTempUsageDetail_20' ) start [2025-03-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721606', 'tblTempUsageDetail_20' ) end [2025-03-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721606', 'tblTempVendorCDR_20' ) start [2025-03-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721606', 'tblTempVendorCDR_20' ) end [2025-03-20 08:26:17] Production.INFO: ProcessCDR(1,14721606,1,1,2) [2025-03-20 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721606', 'tblTempUsageDetail_20' ) start [2025-03-20 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721606', 'tblTempUsageDetail_20' ) end [2025-03-20 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:26:20] Production.INFO: ==32012== Releasing lock... [2025-03-20 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-20 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:27:05 [end_date_ymd] => 2025-03-20 08:27:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:27:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:27:17] Production.INFO: count ==261 [2025-03-20 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:27:05 - End Time 2025-03-20 08:27:05 [2025-03-20 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721611', 'tblTempUsageDetail_20' ) start [2025-03-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721611', 'tblTempUsageDetail_20' ) end [2025-03-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721611', 'tblTempVendorCDR_20' ) start [2025-03-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721611', 'tblTempVendorCDR_20' ) end [2025-03-20 08:27:17] Production.INFO: ProcessCDR(1,14721611,1,1,2) [2025-03-20 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721611', 'tblTempUsageDetail_20' ) start [2025-03-20 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721611', 'tblTempUsageDetail_20' ) end [2025-03-20 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:27:23] Production.INFO: ==32132== Releasing lock... [2025-03-20 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:27:23] Production.INFO: 31 MB #Memory Used# [2025-03-20 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:28:05 [end_date_ymd] => 2025-03-20 08:28:05 [RateCDR] => 1 ) [2025-03-20 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:28:05' and `end` < '2025-03-20 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:28:17] Production.INFO: count ==261 [2025-03-20 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:28:05 - End Time 2025-03-20 08:28:05 [2025-03-20 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721616', 'tblTempUsageDetail_20' ) start [2025-03-20 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721616', 'tblTempUsageDetail_20' ) end [2025-03-20 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721616', 'tblTempVendorCDR_20' ) start [2025-03-20 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721616', 'tblTempVendorCDR_20' ) end [2025-03-20 08:28:17] Production.INFO: ProcessCDR(1,14721616,1,1,2) [2025-03-20 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721616', 'tblTempUsageDetail_20' ) start [2025-03-20 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721616', 'tblTempUsageDetail_20' ) end [2025-03-20 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:28:21] Production.INFO: ==32223== Releasing lock... [2025-03-20 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:29:05 [end_date_ymd] => 2025-03-20 08:29:05 [RateCDR] => 1 ) [2025-03-20 08:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:29:18] Production.INFO: count ==268 [2025-03-20 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:29:05 - End Time 2025-03-20 08:29:05 [2025-03-20 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721621', 'tblTempUsageDetail_20' ) start [2025-03-20 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721621', 'tblTempUsageDetail_20' ) end [2025-03-20 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721621', 'tblTempVendorCDR_20' ) start [2025-03-20 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721621', 'tblTempVendorCDR_20' ) end [2025-03-20 08:29:18] Production.INFO: ProcessCDR(1,14721621,1,1,2) [2025-03-20 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721621', 'tblTempUsageDetail_20' ) start [2025-03-20 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721621', 'tblTempUsageDetail_20' ) end [2025-03-20 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:29:23] Production.INFO: ==32319== Releasing lock... [2025-03-20 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:29:23] Production.INFO: 30 MB #Memory Used# [2025-03-20 08:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:30:07 [end_date_ymd] => 2025-03-20 08:30:07 [RateCDR] => 1 ) [2025-03-20 08:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:30:07' and `end` < '2025-03-20 08:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:30:19] Production.INFO: count ==292 [2025-03-20 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 05:30:07 - End Time 2025-03-20 08:30:07 [2025-03-20 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721627', 'tblTempUsageDetail_20' ) start [2025-03-20 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721627', 'tblTempUsageDetail_20' ) end [2025-03-20 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721627', 'tblTempVendorCDR_20' ) start [2025-03-20 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721627', 'tblTempVendorCDR_20' ) end [2025-03-20 08:30:19] Production.INFO: ProcessCDR(1,14721627,1,1,2) [2025-03-20 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721627', 'tblTempUsageDetail_20' ) start [2025-03-20 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721627', 'tblTempUsageDetail_20' ) end [2025-03-20 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:30:24] Production.INFO: ==32414== Releasing lock... [2025-03-20 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:30:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:31:05 [end_date_ymd] => 2025-03-20 08:31:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:31:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:31:17] Production.INFO: count ==306 [2025-03-20 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:31:05 - End Time 2025-03-20 08:31:05 [2025-03-20 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721632', 'tblTempUsageDetail_20' ) start [2025-03-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721632', 'tblTempUsageDetail_20' ) end [2025-03-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721632', 'tblTempVendorCDR_20' ) start [2025-03-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721632', 'tblTempVendorCDR_20' ) end [2025-03-20 08:31:17] Production.INFO: ProcessCDR(1,14721632,1,1,2) [2025-03-20 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721632', 'tblTempUsageDetail_20' ) start [2025-03-20 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721632', 'tblTempUsageDetail_20' ) end [2025-03-20 08:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:31:20] Production.INFO: ==32504== Releasing lock... [2025-03-20 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:31:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:32:05 [end_date_ymd] => 2025-03-20 08:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:32:18] Production.INFO: count ==310 [2025-03-20 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:32:05 - End Time 2025-03-20 08:32:05 [2025-03-20 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721637', 'tblTempUsageDetail_20' ) start [2025-03-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721637', 'tblTempUsageDetail_20' ) end [2025-03-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721637', 'tblTempVendorCDR_20' ) start [2025-03-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721637', 'tblTempVendorCDR_20' ) end [2025-03-20 08:32:18] Production.INFO: ProcessCDR(1,14721637,1,1,2) [2025-03-20 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721637', 'tblTempUsageDetail_20' ) start [2025-03-20 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721637', 'tblTempUsageDetail_20' ) end [2025-03-20 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:32:21] Production.INFO: ==32615== Releasing lock... [2025-03-20 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-20 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:33:05 [end_date_ymd] => 2025-03-20 08:33:05 [RateCDR] => 1 ) [2025-03-20 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:33:05' and `end` < '2025-03-20 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:33:17] Production.INFO: count ==308 [2025-03-20 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:33:05 - End Time 2025-03-20 08:33:05 [2025-03-20 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721642', 'tblTempUsageDetail_20' ) start [2025-03-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721642', 'tblTempUsageDetail_20' ) end [2025-03-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721642', 'tblTempVendorCDR_20' ) start [2025-03-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721642', 'tblTempVendorCDR_20' ) end [2025-03-20 08:33:17] Production.INFO: ProcessCDR(1,14721642,1,1,2) [2025-03-20 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721642', 'tblTempUsageDetail_20' ) start [2025-03-20 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721642', 'tblTempUsageDetail_20' ) end [2025-03-20 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:33:20] Production.INFO: ==32730== Releasing lock... [2025-03-20 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:33:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-20 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:34:06 [end_date_ymd] => 2025-03-20 08:34:06 [RateCDR] => 1 ) [2025-03-20 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:34:06' and `end` < '2025-03-20 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:34:18] Production.INFO: count ==309 [2025-03-20 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:34:06 - End Time 2025-03-20 08:34:06 [2025-03-20 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721647', 'tblTempUsageDetail_20' ) start [2025-03-20 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721647', 'tblTempUsageDetail_20' ) end [2025-03-20 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721647', 'tblTempVendorCDR_20' ) start [2025-03-20 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721647', 'tblTempVendorCDR_20' ) end [2025-03-20 08:34:18] Production.INFO: ProcessCDR(1,14721647,1,1,2) [2025-03-20 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721647', 'tblTempUsageDetail_20' ) start [2025-03-20 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721647', 'tblTempUsageDetail_20' ) end [2025-03-20 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:34:23] Production.INFO: ==391== Releasing lock... [2025-03-20 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:34:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-20 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:35:05 [end_date_ymd] => 2025-03-20 08:35:05 [RateCDR] => 1 ) [2025-03-20 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:35:05' and `end` < '2025-03-20 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:35:17] Production.INFO: count ==309 [2025-03-20 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:35:05 - End Time 2025-03-20 08:35:05 [2025-03-20 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721652', 'tblTempUsageDetail_20' ) start [2025-03-20 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721652', 'tblTempUsageDetail_20' ) end [2025-03-20 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721652', 'tblTempVendorCDR_20' ) start [2025-03-20 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721652', 'tblTempVendorCDR_20' ) end [2025-03-20 08:35:17] Production.INFO: ProcessCDR(1,14721652,1,1,2) [2025-03-20 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721652', 'tblTempUsageDetail_20' ) start [2025-03-20 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721652', 'tblTempUsageDetail_20' ) end [2025-03-20 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:35:20] Production.INFO: ==491== Releasing lock... [2025-03-20 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:35:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-20 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:36:06 [end_date_ymd] => 2025-03-20 08:36:06 [RateCDR] => 1 ) [2025-03-20 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:36:06' and `end` < '2025-03-20 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:36:18] Production.INFO: count ==318 [2025-03-20 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:36:06 - End Time 2025-03-20 08:36:06 [2025-03-20 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721657', 'tblTempUsageDetail_20' ) start [2025-03-20 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721657', 'tblTempUsageDetail_20' ) end [2025-03-20 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721657', 'tblTempVendorCDR_20' ) start [2025-03-20 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721657', 'tblTempVendorCDR_20' ) end [2025-03-20 08:36:18] Production.INFO: ProcessCDR(1,14721657,1,1,2) [2025-03-20 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721657', 'tblTempUsageDetail_20' ) start [2025-03-20 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721657', 'tblTempUsageDetail_20' ) end [2025-03-20 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:36:23] Production.INFO: ==596== Releasing lock... [2025-03-20 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:36:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:37:04 [end_date_ymd] => 2025-03-20 08:37:04 [RateCDR] => 1 ) [2025-03-20 08:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:37:04' and `end` < '2025-03-20 08:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:37:16] Production.INFO: count ==318 [2025-03-20 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:37:04 - End Time 2025-03-20 08:37:04 [2025-03-20 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721662', 'tblTempUsageDetail_20' ) start [2025-03-20 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721662', 'tblTempUsageDetail_20' ) end [2025-03-20 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721662', 'tblTempVendorCDR_20' ) start [2025-03-20 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721662', 'tblTempVendorCDR_20' ) end [2025-03-20 08:37:17] Production.INFO: ProcessCDR(1,14721662,1,1,2) [2025-03-20 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721662', 'tblTempUsageDetail_20' ) start [2025-03-20 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721662', 'tblTempUsageDetail_20' ) end [2025-03-20 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:37:20] Production.INFO: ==724== Releasing lock... [2025-03-20 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:37:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-20 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:38:05 [end_date_ymd] => 2025-03-20 08:38:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:38:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:38:17] Production.INFO: count ==320 [2025-03-20 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:38:05 - End Time 2025-03-20 08:38:05 [2025-03-20 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721667', 'tblTempUsageDetail_20' ) start [2025-03-20 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721667', 'tblTempUsageDetail_20' ) end [2025-03-20 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721667', 'tblTempVendorCDR_20' ) start [2025-03-20 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721667', 'tblTempVendorCDR_20' ) end [2025-03-20 08:38:18] Production.INFO: ProcessCDR(1,14721667,1,1,2) [2025-03-20 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721667', 'tblTempUsageDetail_20' ) start [2025-03-20 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721667', 'tblTempUsageDetail_20' ) end [2025-03-20 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:38:21] Production.INFO: ==842== Releasing lock... [2025-03-20 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:38:21] Production.INFO: 31 MB #Memory Used# [2025-03-20 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:39:05 [end_date_ymd] => 2025-03-20 08:39:05 [RateCDR] => 1 ) [2025-03-20 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:39:05' and `end` < '2025-03-20 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:39:17] Production.INFO: count ==326 [2025-03-20 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:39:05 - End Time 2025-03-20 08:39:05 [2025-03-20 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721672', 'tblTempUsageDetail_20' ) start [2025-03-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721672', 'tblTempUsageDetail_20' ) end [2025-03-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721672', 'tblTempVendorCDR_20' ) start [2025-03-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721672', 'tblTempVendorCDR_20' ) end [2025-03-20 08:39:17] Production.INFO: ProcessCDR(1,14721672,1,1,2) [2025-03-20 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721672', 'tblTempUsageDetail_20' ) start [2025-03-20 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721672', 'tblTempUsageDetail_20' ) end [2025-03-20 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:39:21] Production.INFO: ==945== Releasing lock... [2025-03-20 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-20 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:40:05 [end_date_ymd] => 2025-03-20 08:40:05 [RateCDR] => 1 ) [2025-03-20 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:40:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:40:18] Production.INFO: count ==337 [2025-03-20 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:40:05 - End Time 2025-03-20 08:40:05 [2025-03-20 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721677', 'tblTempUsageDetail_20' ) start [2025-03-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721677', 'tblTempUsageDetail_20' ) end [2025-03-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721677', 'tblTempVendorCDR_20' ) start [2025-03-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721677', 'tblTempVendorCDR_20' ) end [2025-03-20 08:40:18] Production.INFO: ProcessCDR(1,14721677,1,1,2) [2025-03-20 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721677', 'tblTempUsageDetail_20' ) start [2025-03-20 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721677', 'tblTempUsageDetail_20' ) end [2025-03-20 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:40:22] Production.INFO: ==1051== Releasing lock... [2025-03-20 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:40:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-20 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:41:06 [end_date_ymd] => 2025-03-20 08:41:06 [RateCDR] => 1 ) [2025-03-20 08:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:41:06' and `end` < '2025-03-20 08:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:41:18] Production.INFO: count ==376 [2025-03-20 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:41:06 - End Time 2025-03-20 08:41:06 [2025-03-20 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721683', 'tblTempUsageDetail_20' ) start [2025-03-20 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721683', 'tblTempUsageDetail_20' ) end [2025-03-20 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721683', 'tblTempVendorCDR_20' ) start [2025-03-20 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721683', 'tblTempVendorCDR_20' ) end [2025-03-20 08:41:18] Production.INFO: ProcessCDR(1,14721683,1,1,2) [2025-03-20 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721683', 'tblTempUsageDetail_20' ) start [2025-03-20 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721683', 'tblTempUsageDetail_20' ) end [2025-03-20 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:41:23] Production.INFO: ==1161== Releasing lock... [2025-03-20 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:41:23] Production.INFO: 31 MB #Memory Used# [2025-03-20 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:42:05 [end_date_ymd] => 2025-03-20 08:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:42:17] Production.INFO: count ==399 [2025-03-20 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:42:05 - End Time 2025-03-20 08:42:05 [2025-03-20 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721688', 'tblTempUsageDetail_20' ) start [2025-03-20 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721688', 'tblTempUsageDetail_20' ) end [2025-03-20 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721688', 'tblTempVendorCDR_20' ) start [2025-03-20 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721688', 'tblTempVendorCDR_20' ) end [2025-03-20 08:42:17] Production.INFO: ProcessCDR(1,14721688,1,1,2) [2025-03-20 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721688', 'tblTempUsageDetail_20' ) start [2025-03-20 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721688', 'tblTempUsageDetail_20' ) end [2025-03-20 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:42:22] Production.INFO: ==1322== Releasing lock... [2025-03-20 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:42:22] Production.INFO: 32 MB #Memory Used# [2025-03-20 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:43:05 [end_date_ymd] => 2025-03-20 08:43:05 [RateCDR] => 1 ) [2025-03-20 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:43:05' and `end` < '2025-03-20 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:43:18] Production.INFO: count ==403 [2025-03-20 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:43:05 - End Time 2025-03-20 08:43:05 [2025-03-20 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721693', 'tblTempUsageDetail_20' ) start [2025-03-20 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721693', 'tblTempUsageDetail_20' ) end [2025-03-20 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721693', 'tblTempVendorCDR_20' ) start [2025-03-20 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721693', 'tblTempVendorCDR_20' ) end [2025-03-20 08:43:18] Production.INFO: ProcessCDR(1,14721693,1,1,2) [2025-03-20 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721693', 'tblTempUsageDetail_20' ) start [2025-03-20 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721693', 'tblTempUsageDetail_20' ) end [2025-03-20 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:43:23] Production.INFO: ==1428== Releasing lock... [2025-03-20 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:43:23] Production.INFO: 32 MB #Memory Used# [2025-03-20 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:44:05 [end_date_ymd] => 2025-03-20 08:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:44:17] Production.INFO: count ==405 [2025-03-20 08:44:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:44:05 - End Time 2025-03-20 08:44:05 [2025-03-20 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721698', 'tblTempUsageDetail_20' ) start [2025-03-20 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721698', 'tblTempUsageDetail_20' ) end [2025-03-20 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721698', 'tblTempVendorCDR_20' ) start [2025-03-20 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721698', 'tblTempVendorCDR_20' ) end [2025-03-20 08:44:17] Production.INFO: ProcessCDR(1,14721698,1,1,2) [2025-03-20 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721698', 'tblTempUsageDetail_20' ) start [2025-03-20 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721698', 'tblTempUsageDetail_20' ) end [2025-03-20 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:44:21] Production.INFO: ==1580== Releasing lock... [2025-03-20 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-20 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:45:05 [end_date_ymd] => 2025-03-20 08:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:45:17] Production.INFO: count ==418 [2025-03-20 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:45:05 - End Time 2025-03-20 08:45:05 [2025-03-20 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721703', 'tblTempUsageDetail_20' ) start [2025-03-20 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721703', 'tblTempUsageDetail_20' ) end [2025-03-20 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721703', 'tblTempVendorCDR_20' ) start [2025-03-20 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721703', 'tblTempVendorCDR_20' ) end [2025-03-20 08:45:18] Production.INFO: ProcessCDR(1,14721703,1,1,2) [2025-03-20 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721703', 'tblTempUsageDetail_20' ) start [2025-03-20 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721703', 'tblTempUsageDetail_20' ) end [2025-03-20 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:45:23] Production.INFO: ==1684== Releasing lock... [2025-03-20 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:45:23] Production.INFO: 32 MB #Memory Used# [2025-03-20 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:46:05 [end_date_ymd] => 2025-03-20 08:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:46:17] Production.INFO: count ==418 [2025-03-20 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:46:05 - End Time 2025-03-20 08:46:05 [2025-03-20 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721708', 'tblTempUsageDetail_20' ) start [2025-03-20 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721708', 'tblTempUsageDetail_20' ) end [2025-03-20 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721708', 'tblTempVendorCDR_20' ) start [2025-03-20 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721708', 'tblTempVendorCDR_20' ) end [2025-03-20 08:46:17] Production.INFO: ProcessCDR(1,14721708,1,1,2) [2025-03-20 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721708', 'tblTempUsageDetail_20' ) start [2025-03-20 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721708', 'tblTempUsageDetail_20' ) end [2025-03-20 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:46:21] Production.INFO: ==1793== Releasing lock... [2025-03-20 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:46:21] Production.INFO: 32 MB #Memory Used# [2025-03-20 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:47:06 [end_date_ymd] => 2025-03-20 08:47:06 [RateCDR] => 1 ) [2025-03-20 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:47:06' and `end` < '2025-03-20 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:47:18] Production.INFO: count ==418 [2025-03-20 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:47:06 - End Time 2025-03-20 08:47:06 [2025-03-20 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721713', 'tblTempUsageDetail_20' ) start [2025-03-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721713', 'tblTempUsageDetail_20' ) end [2025-03-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721713', 'tblTempVendorCDR_20' ) start [2025-03-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721713', 'tblTempVendorCDR_20' ) end [2025-03-20 08:47:18] Production.INFO: ProcessCDR(1,14721713,1,1,2) [2025-03-20 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721713', 'tblTempUsageDetail_20' ) start [2025-03-20 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721713', 'tblTempUsageDetail_20' ) end [2025-03-20 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:47:22] Production.INFO: ==1899== Releasing lock... [2025-03-20 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:47:22] Production.INFO: 32 MB #Memory Used# [2025-03-20 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:48:05 [end_date_ymd] => 2025-03-20 08:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:48:17] Production.INFO: count ==428 [2025-03-20 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:48:05 - End Time 2025-03-20 08:48:05 [2025-03-20 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721718', 'tblTempUsageDetail_20' ) start [2025-03-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721718', 'tblTempUsageDetail_20' ) end [2025-03-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721718', 'tblTempVendorCDR_20' ) start [2025-03-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721718', 'tblTempVendorCDR_20' ) end [2025-03-20 08:48:17] Production.INFO: ProcessCDR(1,14721718,1,1,2) [2025-03-20 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721718', 'tblTempUsageDetail_20' ) start [2025-03-20 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721718', 'tblTempUsageDetail_20' ) end [2025-03-20 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:48:23] Production.INFO: ==2014== Releasing lock... [2025-03-20 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:48:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-20 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:49:05 [end_date_ymd] => 2025-03-20 08:49:05 [RateCDR] => 1 ) [2025-03-20 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:49:05' and `end` < '2025-03-20 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:49:17] Production.INFO: count ==436 [2025-03-20 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:49:05 - End Time 2025-03-20 08:49:05 [2025-03-20 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721723', 'tblTempUsageDetail_20' ) start [2025-03-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721723', 'tblTempUsageDetail_20' ) end [2025-03-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721723', 'tblTempVendorCDR_20' ) start [2025-03-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721723', 'tblTempVendorCDR_20' ) end [2025-03-20 08:49:17] Production.INFO: ProcessCDR(1,14721723,1,1,2) [2025-03-20 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721723', 'tblTempUsageDetail_20' ) start [2025-03-20 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721723', 'tblTempUsageDetail_20' ) end [2025-03-20 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:49:22] Production.INFO: ==2130== Releasing lock... [2025-03-20 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:49:22] Production.INFO: 32 MB #Memory Used# [2025-03-20 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:50:06 [end_date_ymd] => 2025-03-20 08:50:06 [RateCDR] => 1 ) [2025-03-20 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:50:06' and `end` < '2025-03-20 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:50:18] Production.INFO: count ==446 [2025-03-20 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:50:06 - End Time 2025-03-20 08:50:06 [2025-03-20 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721729', 'tblTempUsageDetail_20' ) start [2025-03-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721729', 'tblTempUsageDetail_20' ) end [2025-03-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721729', 'tblTempVendorCDR_20' ) start [2025-03-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721729', 'tblTempVendorCDR_20' ) end [2025-03-20 08:50:18] Production.INFO: ProcessCDR(1,14721729,1,1,2) [2025-03-20 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721729', 'tblTempUsageDetail_20' ) start [2025-03-20 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721729', 'tblTempUsageDetail_20' ) end [2025-03-20 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:50:23] Production.INFO: ==2215== Releasing lock... [2025-03-20 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:50:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-20 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:51:05 [end_date_ymd] => 2025-03-20 08:51:05 [RateCDR] => 1 ) [2025-03-20 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:51:05' and `end` < '2025-03-20 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:51:18] Production.INFO: count ==486 [2025-03-20 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:51:05 - End Time 2025-03-20 08:51:05 [2025-03-20 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721734', 'tblTempUsageDetail_20' ) start [2025-03-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721734', 'tblTempUsageDetail_20' ) end [2025-03-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721734', 'tblTempVendorCDR_20' ) start [2025-03-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721734', 'tblTempVendorCDR_20' ) end [2025-03-20 08:51:18] Production.INFO: ProcessCDR(1,14721734,1,1,2) [2025-03-20 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721734', 'tblTempUsageDetail_20' ) start [2025-03-20 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721734', 'tblTempUsageDetail_20' ) end [2025-03-20 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:51:22] Production.INFO: ==2314== Releasing lock... [2025-03-20 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:52:06 [end_date_ymd] => 2025-03-20 08:52:06 [RateCDR] => 1 ) [2025-03-20 08:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:52:06' and `end` < '2025-03-20 08:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:52:18] Production.INFO: count ==509 [2025-03-20 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:52:06 - End Time 2025-03-20 08:52:06 [2025-03-20 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721739', 'tblTempUsageDetail_20' ) start [2025-03-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721739', 'tblTempUsageDetail_20' ) end [2025-03-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721739', 'tblTempVendorCDR_20' ) start [2025-03-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721739', 'tblTempVendorCDR_20' ) end [2025-03-20 08:52:18] Production.INFO: ProcessCDR(1,14721739,1,1,2) [2025-03-20 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721739', 'tblTempUsageDetail_20' ) start [2025-03-20 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721739', 'tblTempUsageDetail_20' ) end [2025-03-20 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:52:23] Production.INFO: ==2402== Releasing lock... [2025-03-20 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:52:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:53:05 [end_date_ymd] => 2025-03-20 08:53:05 [RateCDR] => 1 ) [2025-03-20 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:53:05' and `end` < '2025-03-20 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:53:17] Production.INFO: count ==522 [2025-03-20 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:53:05 - End Time 2025-03-20 08:53:05 [2025-03-20 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721744', 'tblTempUsageDetail_20' ) start [2025-03-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721744', 'tblTempUsageDetail_20' ) end [2025-03-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721744', 'tblTempVendorCDR_20' ) start [2025-03-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721744', 'tblTempVendorCDR_20' ) end [2025-03-20 08:53:18] Production.INFO: ProcessCDR(1,14721744,1,1,2) [2025-03-20 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721744', 'tblTempUsageDetail_20' ) start [2025-03-20 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721744', 'tblTempUsageDetail_20' ) end [2025-03-20 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:53:23] Production.INFO: ==2509== Releasing lock... [2025-03-20 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:53:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:54:05 [end_date_ymd] => 2025-03-20 08:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:54:17] Production.INFO: count ==530 [2025-03-20 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:54:05 - End Time 2025-03-20 08:54:05 [2025-03-20 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721749', 'tblTempUsageDetail_20' ) start [2025-03-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721749', 'tblTempUsageDetail_20' ) end [2025-03-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721749', 'tblTempVendorCDR_20' ) start [2025-03-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721749', 'tblTempVendorCDR_20' ) end [2025-03-20 08:54:17] Production.INFO: ProcessCDR(1,14721749,1,1,2) [2025-03-20 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721749', 'tblTempUsageDetail_20' ) start [2025-03-20 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721749', 'tblTempUsageDetail_20' ) end [2025-03-20 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:54:21] Production.INFO: ==2617== Releasing lock... [2025-03-20 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:55:05 [end_date_ymd] => 2025-03-20 08:55:05 [RateCDR] => 1 ) [2025-03-20 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:55:05' and `end` < '2025-03-20 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:55:17] Production.INFO: count ==537 [2025-03-20 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:55:05 - End Time 2025-03-20 08:55:05 [2025-03-20 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721754', 'tblTempUsageDetail_20' ) start [2025-03-20 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721754', 'tblTempUsageDetail_20' ) end [2025-03-20 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721754', 'tblTempVendorCDR_20' ) start [2025-03-20 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721754', 'tblTempVendorCDR_20' ) end [2025-03-20 08:55:18] Production.INFO: ProcessCDR(1,14721754,1,1,2) [2025-03-20 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721754', 'tblTempUsageDetail_20' ) start [2025-03-20 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721754', 'tblTempUsageDetail_20' ) end [2025-03-20 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:55:21] Production.INFO: ==2721== Releasing lock... [2025-03-20 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-20 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:56:05 [end_date_ymd] => 2025-03-20 08:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:56:17] Production.INFO: count ==550 [2025-03-20 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:56:05 - End Time 2025-03-20 08:56:05 [2025-03-20 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721759', 'tblTempUsageDetail_20' ) start [2025-03-20 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721759', 'tblTempUsageDetail_20' ) end [2025-03-20 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721759', 'tblTempVendorCDR_20' ) start [2025-03-20 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721759', 'tblTempVendorCDR_20' ) end [2025-03-20 08:56:17] Production.INFO: ProcessCDR(1,14721759,1,1,2) [2025-03-20 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721759', 'tblTempUsageDetail_20' ) start [2025-03-20 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721759', 'tblTempUsageDetail_20' ) end [2025-03-20 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:56:22] Production.INFO: ==2825== Releasing lock... [2025-03-20 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:56:22] Production.INFO: 33 MB #Memory Used# [2025-03-20 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:57:05 [end_date_ymd] => 2025-03-20 08:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:57:17] Production.INFO: count ==558 [2025-03-20 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:57:05 - End Time 2025-03-20 08:57:05 [2025-03-20 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721764', 'tblTempUsageDetail_20' ) start [2025-03-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721764', 'tblTempUsageDetail_20' ) end [2025-03-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721764', 'tblTempVendorCDR_20' ) start [2025-03-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721764', 'tblTempVendorCDR_20' ) end [2025-03-20 08:57:17] Production.INFO: ProcessCDR(1,14721764,1,1,2) [2025-03-20 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721764', 'tblTempUsageDetail_20' ) start [2025-03-20 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721764', 'tblTempUsageDetail_20' ) end [2025-03-20 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:57:21] Production.INFO: ==2949== Releasing lock... [2025-03-20 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:57:21] Production.INFO: 33 MB #Memory Used# [2025-03-20 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:58:05 [end_date_ymd] => 2025-03-20 08:58:05 [RateCDR] => 1 ) [2025-03-20 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 05:58:05' and `end` < '2025-03-20 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 08:58:17] Production.INFO: count ==558 [2025-03-20 08:58:17] Production.ERROR: pbx CDR StartTime 2025-03-20 05:58:05 - End Time 2025-03-20 08:58:05 [2025-03-20 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721769', 'tblTempUsageDetail_20' ) start [2025-03-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721769', 'tblTempUsageDetail_20' ) end [2025-03-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721769', 'tblTempVendorCDR_20' ) start [2025-03-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721769', 'tblTempVendorCDR_20' ) end [2025-03-20 08:58:17] Production.INFO: ProcessCDR(1,14721769,1,1,2) [2025-03-20 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721769', 'tblTempUsageDetail_20' ) start [2025-03-20 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721769', 'tblTempUsageDetail_20' ) end [2025-03-20 08:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:58:20] Production.INFO: ==3102== Releasing lock... [2025-03-20 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:58:21] Production.INFO: 33 MB #Memory Used# [2025-03-20 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 05:59:05 [end_date_ymd] => 2025-03-20 08:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 05:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 08:59:18] Production.INFO: count ==570 [2025-03-20 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-20 05:59:05 - End Time 2025-03-20 08:59:05 [2025-03-20 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721774', 'tblTempUsageDetail_20' ) start [2025-03-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721774', 'tblTempUsageDetail_20' ) end [2025-03-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721774', 'tblTempVendorCDR_20' ) start [2025-03-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721774', 'tblTempVendorCDR_20' ) end [2025-03-20 08:59:18] Production.INFO: ProcessCDR(1,14721774,1,1,2) [2025-03-20 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721774', 'tblTempUsageDetail_20' ) start [2025-03-20 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721774', 'tblTempUsageDetail_20' ) end [2025-03-20 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 08:59:23] Production.INFO: ==3213== Releasing lock... [2025-03-20 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 08:59:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:00:06 [end_date_ymd] => 2025-03-20 09:00:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:00:06' and `end` < '2025-03-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 ,'') [2025-03-20 09:00:19] Production.INFO: count ==587 [2025-03-20 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:00:06 - End Time 2025-03-20 09:00:06 [2025-03-20 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721779', 'tblTempUsageDetail_20' ) start [2025-03-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721779', 'tblTempUsageDetail_20' ) end [2025-03-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721779', 'tblTempVendorCDR_20' ) start [2025-03-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721779', 'tblTempVendorCDR_20' ) end [2025-03-20 09:00:19] Production.INFO: ProcessCDR(1,14721779,1,1,2) [2025-03-20 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721779', 'tblTempUsageDetail_20' ) start [2025-03-20 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721779', 'tblTempUsageDetail_20' ) end [2025-03-20 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:00:24] Production.INFO: ==3326== Releasing lock... [2025-03-20 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:00:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-20 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:01:05 [end_date_ymd] => 2025-03-20 09:01:05 [RateCDR] => 1 ) [2025-03-20 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:01:05' and `end` < '2025-03-20 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:01:17] Production.INFO: count ==618 [2025-03-20 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-20 06:01:05 - End Time 2025-03-20 09:01:05 [2025-03-20 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721785', 'tblTempUsageDetail_20' ) start [2025-03-20 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721785', 'tblTempUsageDetail_20' ) end [2025-03-20 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721785', 'tblTempVendorCDR_20' ) start [2025-03-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721785', 'tblTempVendorCDR_20' ) end [2025-03-20 09:01:18] Production.INFO: ProcessCDR(1,14721785,1,1,2) [2025-03-20 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721785', 'tblTempUsageDetail_20' ) start [2025-03-20 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721785', 'tblTempUsageDetail_20' ) end [2025-03-20 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:01:23] Production.INFO: ==3449== Releasing lock... [2025-03-20 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:01:23] Production.INFO: 33 MB #Memory Used# [2025-03-20 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:02:05 [end_date_ymd] => 2025-03-20 09:02:05 [RateCDR] => 1 ) [2025-03-20 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:02:05' and `end` < '2025-03-20 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:02:18] Production.INFO: count ==629 [2025-03-20 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:02:05 - End Time 2025-03-20 09:02:05 [2025-03-20 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721790', 'tblTempUsageDetail_20' ) start [2025-03-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721790', 'tblTempUsageDetail_20' ) end [2025-03-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721790', 'tblTempVendorCDR_20' ) start [2025-03-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721790', 'tblTempVendorCDR_20' ) end [2025-03-20 09:02:18] Production.INFO: ProcessCDR(1,14721790,1,1,2) [2025-03-20 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721790', 'tblTempUsageDetail_20' ) start [2025-03-20 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721790', 'tblTempUsageDetail_20' ) end [2025-03-20 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:02:23] Production.INFO: ==3568== Releasing lock... [2025-03-20 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:02:23] Production.INFO: 33 MB #Memory Used# [2025-03-20 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:03:05 [end_date_ymd] => 2025-03-20 09:03:05 [RateCDR] => 1 ) [2025-03-20 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:03:05' and `end` < '2025-03-20 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:03:18] Production.INFO: count ==643 [2025-03-20 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:03:05 - End Time 2025-03-20 09:03:05 [2025-03-20 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721795', 'tblTempUsageDetail_20' ) start [2025-03-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721795', 'tblTempUsageDetail_20' ) end [2025-03-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721795', 'tblTempVendorCDR_20' ) start [2025-03-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721795', 'tblTempVendorCDR_20' ) end [2025-03-20 09:03:18] Production.INFO: ProcessCDR(1,14721795,1,1,2) [2025-03-20 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721795', 'tblTempUsageDetail_20' ) start [2025-03-20 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721795', 'tblTempUsageDetail_20' ) end [2025-03-20 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:03:23] Production.INFO: ==3694== Releasing lock... [2025-03-20 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:03:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:04:06 [end_date_ymd] => 2025-03-20 09:04:06 [RateCDR] => 1 ) [2025-03-20 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:04:06' and `end` < '2025-03-20 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:04:18] Production.INFO: count ==647 [2025-03-20 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:04:06 - End Time 2025-03-20 09:04:06 [2025-03-20 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721800', 'tblTempUsageDetail_20' ) start [2025-03-20 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721800', 'tblTempUsageDetail_20' ) end [2025-03-20 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721800', 'tblTempVendorCDR_20' ) start [2025-03-20 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721800', 'tblTempVendorCDR_20' ) end [2025-03-20 09:04:19] Production.INFO: ProcessCDR(1,14721800,1,1,2) [2025-03-20 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721800', 'tblTempUsageDetail_20' ) start [2025-03-20 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721800', 'tblTempUsageDetail_20' ) end [2025-03-20 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:04:22] Production.INFO: ==3822== Releasing lock... [2025-03-20 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-20 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:05:05 [end_date_ymd] => 2025-03-20 09:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:05:18] Production.INFO: count ==659 [2025-03-20 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:05:05 - End Time 2025-03-20 09:05:05 [2025-03-20 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721805', 'tblTempUsageDetail_20' ) start [2025-03-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721805', 'tblTempUsageDetail_20' ) end [2025-03-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721805', 'tblTempVendorCDR_20' ) start [2025-03-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721805', 'tblTempVendorCDR_20' ) end [2025-03-20 09:05:18] Production.INFO: ProcessCDR(1,14721805,1,1,2) [2025-03-20 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721805', 'tblTempUsageDetail_20' ) start [2025-03-20 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721805', 'tblTempUsageDetail_20' ) end [2025-03-20 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:05:23] Production.INFO: ==3942== Releasing lock... [2025-03-20 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:05:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:06:05 [end_date_ymd] => 2025-03-20 09:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:06:18] Production.INFO: count ==660 [2025-03-20 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:06:05 - End Time 2025-03-20 09:06:05 [2025-03-20 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721810', 'tblTempUsageDetail_20' ) start [2025-03-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721810', 'tblTempUsageDetail_20' ) end [2025-03-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721810', 'tblTempVendorCDR_20' ) start [2025-03-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721810', 'tblTempVendorCDR_20' ) end [2025-03-20 09:06:18] Production.INFO: ProcessCDR(1,14721810,1,1,2) [2025-03-20 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721810', 'tblTempUsageDetail_20' ) start [2025-03-20 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721810', 'tblTempUsageDetail_20' ) end [2025-03-20 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:06:23] Production.INFO: ==4050== Releasing lock... [2025-03-20 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:06:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:07:05 [end_date_ymd] => 2025-03-20 09:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:07:18] Production.INFO: count ==689 [2025-03-20 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:07:05 - End Time 2025-03-20 09:07:05 [2025-03-20 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721815', 'tblTempUsageDetail_20' ) start [2025-03-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721815', 'tblTempUsageDetail_20' ) end [2025-03-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721815', 'tblTempVendorCDR_20' ) start [2025-03-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721815', 'tblTempVendorCDR_20' ) end [2025-03-20 09:07:18] Production.INFO: ProcessCDR(1,14721815,1,1,2) [2025-03-20 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721815', 'tblTempUsageDetail_20' ) start [2025-03-20 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721815', 'tblTempUsageDetail_20' ) end [2025-03-20 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:07:24] Production.INFO: ==4160== Releasing lock... [2025-03-20 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:07:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-20 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:08:05 [end_date_ymd] => 2025-03-20 09:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:08:18] Production.INFO: count ==716 [2025-03-20 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:08:05 - End Time 2025-03-20 09:08:05 [2025-03-20 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721820', 'tblTempUsageDetail_20' ) start [2025-03-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721820', 'tblTempUsageDetail_20' ) end [2025-03-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721820', 'tblTempVendorCDR_20' ) start [2025-03-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721820', 'tblTempVendorCDR_20' ) end [2025-03-20 09:08:18] Production.INFO: ProcessCDR(1,14721820,1,1,2) [2025-03-20 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721820', 'tblTempUsageDetail_20' ) start [2025-03-20 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721820', 'tblTempUsageDetail_20' ) end [2025-03-20 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:08:22] Production.INFO: ==4273== Releasing lock... [2025-03-20 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-20 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:09:05 [end_date_ymd] => 2025-03-20 09:09:05 [RateCDR] => 1 ) [2025-03-20 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:09:05' and `end` < '2025-03-20 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:09:18] Production.INFO: count ==743 [2025-03-20 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:09:05 - End Time 2025-03-20 09:09:05 [2025-03-20 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721825', 'tblTempUsageDetail_20' ) start [2025-03-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721825', 'tblTempUsageDetail_20' ) end [2025-03-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721825', 'tblTempVendorCDR_20' ) start [2025-03-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721825', 'tblTempVendorCDR_20' ) end [2025-03-20 09:09:18] Production.INFO: ProcessCDR(1,14721825,1,1,2) [2025-03-20 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721825', 'tblTempUsageDetail_20' ) start [2025-03-20 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721825', 'tblTempUsageDetail_20' ) end [2025-03-20 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:09:24] Production.INFO: ==4374== Releasing lock... [2025-03-20 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:09:24] Production.INFO: 34 MB #Memory Used# [2025-03-20 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:10:06 [end_date_ymd] => 2025-03-20 09:10:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:10:06' and `end` < '2025-03-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 ,'') [2025-03-20 09:10:18] Production.INFO: count ==769 [2025-03-20 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:10:06 - End Time 2025-03-20 09:10:06 [2025-03-20 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721831', 'tblTempUsageDetail_20' ) start [2025-03-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721831', 'tblTempUsageDetail_20' ) end [2025-03-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721831', 'tblTempVendorCDR_20' ) start [2025-03-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721831', 'tblTempVendorCDR_20' ) end [2025-03-20 09:10:19] Production.INFO: ProcessCDR(1,14721831,1,1,2) [2025-03-20 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721831', 'tblTempUsageDetail_20' ) start [2025-03-20 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721831', 'tblTempUsageDetail_20' ) end [2025-03-20 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:10:25] Production.INFO: ==4481== Releasing lock... [2025-03-20 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:10:25] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:11:05 [end_date_ymd] => 2025-03-20 09:11:05 [RateCDR] => 1 ) [2025-03-20 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:11:05' and `end` < '2025-03-20 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:11:18] Production.INFO: count ==844 [2025-03-20 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:11:05 - End Time 2025-03-20 09:11:05 [2025-03-20 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721836', 'tblTempUsageDetail_20' ) start [2025-03-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721836', 'tblTempUsageDetail_20' ) end [2025-03-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721836', 'tblTempVendorCDR_20' ) start [2025-03-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721836', 'tblTempVendorCDR_20' ) end [2025-03-20 09:11:18] Production.INFO: ProcessCDR(1,14721836,1,1,2) [2025-03-20 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721836', 'tblTempUsageDetail_20' ) start [2025-03-20 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721836', 'tblTempUsageDetail_20' ) end [2025-03-20 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:11:23] Production.INFO: ==4572== Releasing lock... [2025-03-20 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:11:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:12:06 [end_date_ymd] => 2025-03-20 09:12:06 [RateCDR] => 1 ) [2025-03-20 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:12:06' and `end` < '2025-03-20 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:12:19] Production.INFO: count ==856 [2025-03-20 09:12:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:12:06 - End Time 2025-03-20 09:12:06 [2025-03-20 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721841', 'tblTempUsageDetail_20' ) start [2025-03-20 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721841', 'tblTempUsageDetail_20' ) end [2025-03-20 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721841', 'tblTempVendorCDR_20' ) start [2025-03-20 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721841', 'tblTempVendorCDR_20' ) end [2025-03-20 09:12:19] Production.INFO: ProcessCDR(1,14721841,1,1,2) [2025-03-20 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721841', 'tblTempUsageDetail_20' ) start [2025-03-20 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721841', 'tblTempUsageDetail_20' ) end [2025-03-20 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:12:25] Production.INFO: ==4676== Releasing lock... [2025-03-20 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:12:25] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:13:06 [end_date_ymd] => 2025-03-20 09:13:06 [RateCDR] => 1 ) [2025-03-20 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:13:06' and `end` < '2025-03-20 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:13:18] Production.INFO: count ==863 [2025-03-20 09:13:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:13:06 - End Time 2025-03-20 09:13:06 [2025-03-20 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721846', 'tblTempUsageDetail_20' ) start [2025-03-20 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721846', 'tblTempUsageDetail_20' ) end [2025-03-20 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721846', 'tblTempVendorCDR_20' ) start [2025-03-20 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721846', 'tblTempVendorCDR_20' ) end [2025-03-20 09:13:19] Production.INFO: ProcessCDR(1,14721846,1,1,2) [2025-03-20 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721846', 'tblTempUsageDetail_20' ) start [2025-03-20 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721846', 'tblTempUsageDetail_20' ) end [2025-03-20 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:13:25] Production.INFO: ==4804== Releasing lock... [2025-03-20 09:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:13:25] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:14:06 [end_date_ymd] => 2025-03-20 09:14:06 [RateCDR] => 1 ) [2025-03-20 09:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:14:06' and `end` < '2025-03-20 09:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:14:18] Production.INFO: count ==864 [2025-03-20 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:14:06 - End Time 2025-03-20 09:14:06 [2025-03-20 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721851', 'tblTempUsageDetail_20' ) start [2025-03-20 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721851', 'tblTempUsageDetail_20' ) end [2025-03-20 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721851', 'tblTempVendorCDR_20' ) start [2025-03-20 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721851', 'tblTempVendorCDR_20' ) end [2025-03-20 09:14:18] Production.INFO: ProcessCDR(1,14721851,1,1,2) [2025-03-20 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721851', 'tblTempUsageDetail_20' ) start [2025-03-20 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721851', 'tblTempUsageDetail_20' ) end [2025-03-20 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:14:24] Production.INFO: ==4910== Releasing lock... [2025-03-20 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:14:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-20 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:15:05 [end_date_ymd] => 2025-03-20 09:15:05 [RateCDR] => 1 ) [2025-03-20 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:15:05' and `end` < '2025-03-20 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:15:18] Production.INFO: count ==877 [2025-03-20 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:15:05 - End Time 2025-03-20 09:15:05 [2025-03-20 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721856', 'tblTempUsageDetail_20' ) start [2025-03-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721856', 'tblTempUsageDetail_20' ) end [2025-03-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721856', 'tblTempVendorCDR_20' ) start [2025-03-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721856', 'tblTempVendorCDR_20' ) end [2025-03-20 09:15:18] Production.INFO: ProcessCDR(1,14721856,1,1,2) [2025-03-20 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721856', 'tblTempUsageDetail_20' ) start [2025-03-20 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721856', 'tblTempUsageDetail_20' ) end [2025-03-20 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:15:24] Production.INFO: ==5005== Releasing lock... [2025-03-20 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:15:24] Production.INFO: 35 MB #Memory Used# [2025-03-20 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:16:05 [end_date_ymd] => 2025-03-20 09:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:16:17] Production.INFO: count ==886 [2025-03-20 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:16:05 - End Time 2025-03-20 09:16:05 [2025-03-20 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721861', 'tblTempUsageDetail_20' ) start [2025-03-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721861', 'tblTempUsageDetail_20' ) end [2025-03-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721861', 'tblTempVendorCDR_20' ) start [2025-03-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721861', 'tblTempVendorCDR_20' ) end [2025-03-20 09:16:18] Production.INFO: ProcessCDR(1,14721861,1,1,2) [2025-03-20 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721861', 'tblTempUsageDetail_20' ) start [2025-03-20 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721861', 'tblTempUsageDetail_20' ) end [2025-03-20 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:16:23] Production.INFO: ==5090== Releasing lock... [2025-03-20 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:16:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:17:05 [end_date_ymd] => 2025-03-20 09:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:17:18] Production.INFO: count ==900 [2025-03-20 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:17:05 - End Time 2025-03-20 09:17:05 [2025-03-20 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721866', 'tblTempUsageDetail_20' ) start [2025-03-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721866', 'tblTempUsageDetail_20' ) end [2025-03-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721866', 'tblTempVendorCDR_20' ) start [2025-03-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721866', 'tblTempVendorCDR_20' ) end [2025-03-20 09:17:18] Production.INFO: ProcessCDR(1,14721866,1,1,2) [2025-03-20 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721866', 'tblTempUsageDetail_20' ) start [2025-03-20 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721866', 'tblTempUsageDetail_20' ) end [2025-03-20 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:17:23] Production.INFO: ==5182== Releasing lock... [2025-03-20 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:17:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:18:06 [end_date_ymd] => 2025-03-20 09:18:06 [RateCDR] => 1 ) [2025-03-20 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:18:06' and `end` < '2025-03-20 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:18:19] Production.INFO: count ==903 [2025-03-20 09:18:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:18:06 - End Time 2025-03-20 09:18:06 [2025-03-20 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721871', 'tblTempUsageDetail_20' ) start [2025-03-20 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721871', 'tblTempUsageDetail_20' ) end [2025-03-20 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721871', 'tblTempVendorCDR_20' ) start [2025-03-20 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721871', 'tblTempVendorCDR_20' ) end [2025-03-20 09:18:19] Production.INFO: ProcessCDR(1,14721871,1,1,2) [2025-03-20 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721871', 'tblTempUsageDetail_20' ) start [2025-03-20 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721871', 'tblTempUsageDetail_20' ) end [2025-03-20 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:18:24] Production.INFO: ==5291== Releasing lock... [2025-03-20 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:18:24] Production.INFO: 35 MB #Memory Used# [2025-03-20 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:19:05 [end_date_ymd] => 2025-03-20 09:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:19:17] Production.INFO: count ==914 [2025-03-20 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:19:05 - End Time 2025-03-20 09:19:05 [2025-03-20 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721876', 'tblTempUsageDetail_20' ) start [2025-03-20 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721876', 'tblTempUsageDetail_20' ) end [2025-03-20 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721876', 'tblTempVendorCDR_20' ) start [2025-03-20 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721876', 'tblTempVendorCDR_20' ) end [2025-03-20 09:19:18] Production.INFO: ProcessCDR(1,14721876,1,1,2) [2025-03-20 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721876', 'tblTempUsageDetail_20' ) start [2025-03-20 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721876', 'tblTempUsageDetail_20' ) end [2025-03-20 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:19:23] Production.INFO: ==5385== Releasing lock... [2025-03-20 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:19:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-20 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:20:07 [end_date_ymd] => 2025-03-20 09:20:07 [RateCDR] => 1 ) [2025-03-20 09:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:20:07' and `end` < '2025-03-20 09:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:20:19] Production.INFO: count ==935 [2025-03-20 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:20:07 - End Time 2025-03-20 09:20:07 [2025-03-20 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721881', 'tblTempUsageDetail_20' ) start [2025-03-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721881', 'tblTempUsageDetail_20' ) end [2025-03-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721881', 'tblTempVendorCDR_20' ) start [2025-03-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721881', 'tblTempVendorCDR_20' ) end [2025-03-20 09:20:19] Production.INFO: ProcessCDR(1,14721881,1,1,2) [2025-03-20 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721881', 'tblTempUsageDetail_20' ) start [2025-03-20 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721881', 'tblTempUsageDetail_20' ) end [2025-03-20 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:20:25] Production.INFO: ==5483== Releasing lock... [2025-03-20 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:20:25] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:21:05 [end_date_ymd] => 2025-03-20 09:21:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:21:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:21:18] Production.INFO: count ==1015 [2025-03-20 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:21:05 - End Time 2025-03-20 09:21:05 [2025-03-20 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721887', 'tblTempUsageDetail_20' ) start [2025-03-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721887', 'tblTempUsageDetail_20' ) end [2025-03-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721887', 'tblTempVendorCDR_20' ) start [2025-03-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721887', 'tblTempVendorCDR_20' ) end [2025-03-20 09:21:18] Production.INFO: ProcessCDR(1,14721887,1,1,2) [2025-03-20 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721887', 'tblTempUsageDetail_20' ) start [2025-03-20 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721887', 'tblTempUsageDetail_20' ) end [2025-03-20 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:21:23] Production.INFO: ==5577== Releasing lock... [2025-03-20 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:21:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:22:06 [end_date_ymd] => 2025-03-20 09:22:06 [RateCDR] => 1 ) [2025-03-20 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:22:06' and `end` < '2025-03-20 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:22:18] Production.INFO: count ==1031 [2025-03-20 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:22:06 - End Time 2025-03-20 09:22:06 [2025-03-20 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721892', 'tblTempUsageDetail_20' ) start [2025-03-20 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721892', 'tblTempUsageDetail_20' ) end [2025-03-20 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721892', 'tblTempVendorCDR_20' ) start [2025-03-20 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721892', 'tblTempVendorCDR_20' ) end [2025-03-20 09:22:19] Production.INFO: ProcessCDR(1,14721892,1,1,2) [2025-03-20 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721892', 'tblTempUsageDetail_20' ) start [2025-03-20 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721892', 'tblTempUsageDetail_20' ) end [2025-03-20 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:22:24] Production.INFO: ==5674== Releasing lock... [2025-03-20 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:22:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:23:05 [end_date_ymd] => 2025-03-20 09:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:23:18] Production.INFO: count ==1060 [2025-03-20 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:23:05 - End Time 2025-03-20 09:23:05 [2025-03-20 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721897', 'tblTempUsageDetail_20' ) start [2025-03-20 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721897', 'tblTempUsageDetail_20' ) end [2025-03-20 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721897', 'tblTempVendorCDR_20' ) start [2025-03-20 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721897', 'tblTempVendorCDR_20' ) end [2025-03-20 09:23:18] Production.INFO: ProcessCDR(1,14721897,1,1,2) [2025-03-20 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721897', 'tblTempUsageDetail_20' ) start [2025-03-20 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721897', 'tblTempUsageDetail_20' ) end [2025-03-20 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:23:24] Production.INFO: ==5773== Releasing lock... [2025-03-20 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:23:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:24:06 [end_date_ymd] => 2025-03-20 09:24:06 [RateCDR] => 1 ) [2025-03-20 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:24:06' and `end` < '2025-03-20 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:24:18] Production.INFO: count ==1067 [2025-03-20 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:24:06 - End Time 2025-03-20 09:24:06 [2025-03-20 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721902', 'tblTempUsageDetail_20' ) start [2025-03-20 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721902', 'tblTempUsageDetail_20' ) end [2025-03-20 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721902', 'tblTempVendorCDR_20' ) start [2025-03-20 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721902', 'tblTempVendorCDR_20' ) end [2025-03-20 09:24:19] Production.INFO: ProcessCDR(1,14721902,1,1,2) [2025-03-20 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721902', 'tblTempUsageDetail_20' ) start [2025-03-20 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721902', 'tblTempUsageDetail_20' ) end [2025-03-20 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:24:24] Production.INFO: ==5877== Releasing lock... [2025-03-20 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:24:24] Production.INFO: 36 MB #Memory Used# [2025-03-20 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:25:06 [end_date_ymd] => 2025-03-20 09:25:06 [RateCDR] => 1 ) [2025-03-20 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:25:06' and `end` < '2025-03-20 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:25:18] Production.INFO: count ==1068 [2025-03-20 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:25:06 - End Time 2025-03-20 09:25:06 [2025-03-20 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721907', 'tblTempUsageDetail_20' ) start [2025-03-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721907', 'tblTempUsageDetail_20' ) end [2025-03-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721907', 'tblTempVendorCDR_20' ) start [2025-03-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721907', 'tblTempVendorCDR_20' ) end [2025-03-20 09:25:18] Production.INFO: ProcessCDR(1,14721907,1,1,2) [2025-03-20 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721907', 'tblTempUsageDetail_20' ) start [2025-03-20 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721907', 'tblTempUsageDetail_20' ) end [2025-03-20 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:25:24] Production.INFO: ==5974== Releasing lock... [2025-03-20 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:25:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:26:06 [end_date_ymd] => 2025-03-20 09:26:06 [RateCDR] => 1 ) [2025-03-20 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:26:06' and `end` < '2025-03-20 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:26:18] Production.INFO: count ==1079 [2025-03-20 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:26:06 - End Time 2025-03-20 09:26:06 [2025-03-20 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721912', 'tblTempUsageDetail_20' ) start [2025-03-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721912', 'tblTempUsageDetail_20' ) end [2025-03-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721912', 'tblTempVendorCDR_20' ) start [2025-03-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721912', 'tblTempVendorCDR_20' ) end [2025-03-20 09:26:18] Production.INFO: ProcessCDR(1,14721912,1,1,2) [2025-03-20 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721912', 'tblTempUsageDetail_20' ) start [2025-03-20 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721912', 'tblTempUsageDetail_20' ) end [2025-03-20 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:26:24] Production.INFO: ==6073== Releasing lock... [2025-03-20 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:26:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:27:05 [end_date_ymd] => 2025-03-20 09:27:05 [RateCDR] => 1 ) [2025-03-20 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:27:05' and `end` < '2025-03-20 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:27:18] Production.INFO: count ==1084 [2025-03-20 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:27:05 - End Time 2025-03-20 09:27:05 [2025-03-20 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721917', 'tblTempUsageDetail_20' ) start [2025-03-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721917', 'tblTempUsageDetail_20' ) end [2025-03-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721917', 'tblTempVendorCDR_20' ) start [2025-03-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721917', 'tblTempVendorCDR_20' ) end [2025-03-20 09:27:18] Production.INFO: ProcessCDR(1,14721917,1,1,2) [2025-03-20 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721917', 'tblTempUsageDetail_20' ) start [2025-03-20 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721917', 'tblTempUsageDetail_20' ) end [2025-03-20 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:27:23] Production.INFO: ==6169== Releasing lock... [2025-03-20 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:27:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:28:05 [end_date_ymd] => 2025-03-20 09:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:28:17] Production.INFO: count ==1102 [2025-03-20 09:28:17] Production.ERROR: pbx CDR StartTime 2025-03-20 06:28:05 - End Time 2025-03-20 09:28:05 [2025-03-20 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721922', 'tblTempUsageDetail_20' ) start [2025-03-20 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721922', 'tblTempUsageDetail_20' ) end [2025-03-20 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721922', 'tblTempVendorCDR_20' ) start [2025-03-20 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721922', 'tblTempVendorCDR_20' ) end [2025-03-20 09:28:18] Production.INFO: ProcessCDR(1,14721922,1,1,2) [2025-03-20 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721922', 'tblTempUsageDetail_20' ) start [2025-03-20 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721922', 'tblTempUsageDetail_20' ) end [2025-03-20 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:28:21] Production.INFO: ==6267== Releasing lock... [2025-03-20 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:28:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:29:05 [end_date_ymd] => 2025-03-20 09:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:29:18] Production.INFO: count ==1110 [2025-03-20 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:29:05 - End Time 2025-03-20 09:29:05 [2025-03-20 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721927', 'tblTempUsageDetail_20' ) start [2025-03-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721927', 'tblTempUsageDetail_20' ) end [2025-03-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721927', 'tblTempVendorCDR_20' ) start [2025-03-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721927', 'tblTempVendorCDR_20' ) end [2025-03-20 09:29:18] Production.INFO: ProcessCDR(1,14721927,1,1,2) [2025-03-20 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721927', 'tblTempUsageDetail_20' ) start [2025-03-20 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721927', 'tblTempUsageDetail_20' ) end [2025-03-20 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:29:23] Production.INFO: ==6406== Releasing lock... [2025-03-20 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:29:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-20 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:30:06 [end_date_ymd] => 2025-03-20 09:30:06 [RateCDR] => 1 ) [2025-03-20 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:30:06' and `end` < '2025-03-20 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:30:19] Production.INFO: count ==1137 [2025-03-20 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:30:06 - End Time 2025-03-20 09:30:06 [2025-03-20 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721933', 'tblTempUsageDetail_20' ) start [2025-03-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721933', 'tblTempUsageDetail_20' ) end [2025-03-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721933', 'tblTempVendorCDR_20' ) start [2025-03-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721933', 'tblTempVendorCDR_20' ) end [2025-03-20 09:30:19] Production.INFO: ProcessCDR(1,14721933,1,1,2) [2025-03-20 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721933', 'tblTempUsageDetail_20' ) start [2025-03-20 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721933', 'tblTempUsageDetail_20' ) end [2025-03-20 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:30:25] Production.INFO: ==6509== Releasing lock... [2025-03-20 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:30:25] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:31:05 [end_date_ymd] => 2025-03-20 09:31:05 [RateCDR] => 1 ) [2025-03-20 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:31:05' and `end` < '2025-03-20 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:31:17] Production.INFO: count ==1219 [2025-03-20 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:31:05 - End Time 2025-03-20 09:31:05 [2025-03-20 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721938', 'tblTempUsageDetail_20' ) start [2025-03-20 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721938', 'tblTempUsageDetail_20' ) end [2025-03-20 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721938', 'tblTempVendorCDR_20' ) start [2025-03-20 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721938', 'tblTempVendorCDR_20' ) end [2025-03-20 09:31:18] Production.INFO: ProcessCDR(1,14721938,1,1,2) [2025-03-20 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721938', 'tblTempUsageDetail_20' ) start [2025-03-20 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721938', 'tblTempUsageDetail_20' ) end [2025-03-20 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:31:21] Production.INFO: ==6610== Releasing lock... [2025-03-20 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:31:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-20 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:32:06 [end_date_ymd] => 2025-03-20 09:32:06 [RateCDR] => 1 ) [2025-03-20 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:32:06' and `end` < '2025-03-20 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:32:18] Production.INFO: count ==1245 [2025-03-20 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:32:06 - End Time 2025-03-20 09:32:06 [2025-03-20 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721943', 'tblTempUsageDetail_20' ) start [2025-03-20 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721943', 'tblTempUsageDetail_20' ) end [2025-03-20 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721943', 'tblTempVendorCDR_20' ) start [2025-03-20 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721943', 'tblTempVendorCDR_20' ) end [2025-03-20 09:32:19] Production.INFO: ProcessCDR(1,14721943,1,1,2) [2025-03-20 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721943', 'tblTempUsageDetail_20' ) start [2025-03-20 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721943', 'tblTempUsageDetail_20' ) end [2025-03-20 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:32:23] Production.INFO: ==6705== Releasing lock... [2025-03-20 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:32:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-20 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:33:05 [end_date_ymd] => 2025-03-20 09:33:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:33:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:33:18] Production.INFO: count ==1269 [2025-03-20 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:33:05 - End Time 2025-03-20 09:33:05 [2025-03-20 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721948', 'tblTempUsageDetail_20' ) start [2025-03-20 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721948', 'tblTempUsageDetail_20' ) end [2025-03-20 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721948', 'tblTempVendorCDR_20' ) start [2025-03-20 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721948', 'tblTempVendorCDR_20' ) end [2025-03-20 09:33:18] Production.INFO: ProcessCDR(1,14721948,1,1,2) [2025-03-20 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721948', 'tblTempUsageDetail_20' ) start [2025-03-20 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721948', 'tblTempUsageDetail_20' ) end [2025-03-20 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:33:22] Production.INFO: ==6806== Releasing lock... [2025-03-20 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:33:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-20 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:34:05 [end_date_ymd] => 2025-03-20 09:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:34:18] Production.INFO: count ==1309 [2025-03-20 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:34:05 - End Time 2025-03-20 09:34:05 [2025-03-20 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721953', 'tblTempUsageDetail_20' ) start [2025-03-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721953', 'tblTempUsageDetail_20' ) end [2025-03-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721953', 'tblTempVendorCDR_20' ) start [2025-03-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721953', 'tblTempVendorCDR_20' ) end [2025-03-20 09:34:18] Production.INFO: ProcessCDR(1,14721953,1,1,2) [2025-03-20 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721953', 'tblTempUsageDetail_20' ) start [2025-03-20 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721953', 'tblTempUsageDetail_20' ) end [2025-03-20 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:34:24] Production.INFO: ==6907== Releasing lock... [2025-03-20 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:34:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-20 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:35:05 [end_date_ymd] => 2025-03-20 09:35:05 [RateCDR] => 1 ) [2025-03-20 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:35:05' and `end` < '2025-03-20 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:35:18] Production.INFO: count ==1319 [2025-03-20 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:35:05 - End Time 2025-03-20 09:35:05 [2025-03-20 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721958', 'tblTempUsageDetail_20' ) start [2025-03-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721958', 'tblTempUsageDetail_20' ) end [2025-03-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721958', 'tblTempVendorCDR_20' ) start [2025-03-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721958', 'tblTempVendorCDR_20' ) end [2025-03-20 09:35:18] Production.INFO: ProcessCDR(1,14721958,1,1,2) [2025-03-20 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721958', 'tblTempUsageDetail_20' ) start [2025-03-20 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721958', 'tblTempUsageDetail_20' ) end [2025-03-20 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:35:24] Production.INFO: ==7002== Releasing lock... [2025-03-20 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:35:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-20 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:36:05 [end_date_ymd] => 2025-03-20 09:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:36:18] Production.INFO: count ==1343 [2025-03-20 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:36:05 - End Time 2025-03-20 09:36:05 [2025-03-20 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721963', 'tblTempUsageDetail_20' ) start [2025-03-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721963', 'tblTempUsageDetail_20' ) end [2025-03-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721963', 'tblTempVendorCDR_20' ) start [2025-03-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721963', 'tblTempVendorCDR_20' ) end [2025-03-20 09:36:18] Production.INFO: ProcessCDR(1,14721963,1,1,2) [2025-03-20 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721963', 'tblTempUsageDetail_20' ) start [2025-03-20 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721963', 'tblTempUsageDetail_20' ) end [2025-03-20 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:36:24] Production.INFO: ==7114== Releasing lock... [2025-03-20 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:36:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:37:04 [end_date_ymd] => 2025-03-20 09:37:04 [RateCDR] => 1 ) [2025-03-20 09:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:37:04' and `end` < '2025-03-20 09:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:37:17] Production.INFO: count ==1368 [2025-03-20 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:37:04 - End Time 2025-03-20 09:37:04 [2025-03-20 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721968', 'tblTempUsageDetail_20' ) start [2025-03-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721968', 'tblTempUsageDetail_20' ) end [2025-03-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721968', 'tblTempVendorCDR_20' ) start [2025-03-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721968', 'tblTempVendorCDR_20' ) end [2025-03-20 09:37:18] Production.INFO: ProcessCDR(1,14721968,1,1,2) [2025-03-20 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721968', 'tblTempUsageDetail_20' ) start [2025-03-20 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721968', 'tblTempUsageDetail_20' ) end [2025-03-20 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:37:22] Production.INFO: ==7211== Releasing lock... [2025-03-20 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:37:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:38:05 [end_date_ymd] => 2025-03-20 09:38:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:38:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:38:17] Production.INFO: count ==1390 [2025-03-20 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:38:05 - End Time 2025-03-20 09:38:05 [2025-03-20 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721971', 'tblTempUsageDetail_20' ) start [2025-03-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721971', 'tblTempUsageDetail_20' ) end [2025-03-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721971', 'tblTempVendorCDR_20' ) start [2025-03-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721971', 'tblTempVendorCDR_20' ) end [2025-03-20 09:38:18] Production.INFO: ProcessCDR(1,14721971,1,1,2) [2025-03-20 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721971', 'tblTempUsageDetail_20' ) start [2025-03-20 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721971', 'tblTempUsageDetail_20' ) end [2025-03-20 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:38:23] Production.INFO: ==7311== Releasing lock... [2025-03-20 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:38:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:39:05 [end_date_ymd] => 2025-03-20 09:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:39:18] Production.INFO: count ==1405 [2025-03-20 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:39:05 - End Time 2025-03-20 09:39:05 [2025-03-20 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721978', 'tblTempUsageDetail_20' ) start [2025-03-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721978', 'tblTempUsageDetail_20' ) end [2025-03-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721978', 'tblTempVendorCDR_20' ) start [2025-03-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721978', 'tblTempVendorCDR_20' ) end [2025-03-20 09:39:18] Production.INFO: ProcessCDR(1,14721978,1,1,2) [2025-03-20 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721978', 'tblTempUsageDetail_20' ) start [2025-03-20 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721978', 'tblTempUsageDetail_20' ) end [2025-03-20 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:39:22] Production.INFO: ==7406== Releasing lock... [2025-03-20 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:39:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-20 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:40:06 [end_date_ymd] => 2025-03-20 09:40:06 [RateCDR] => 1 ) [2025-03-20 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:40:06' and `end` < '2025-03-20 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:40:18] Production.INFO: count ==1436 [2025-03-20 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:40:06 - End Time 2025-03-20 09:40:06 [2025-03-20 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721984', 'tblTempUsageDetail_20' ) start [2025-03-20 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721984', 'tblTempUsageDetail_20' ) end [2025-03-20 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721984', 'tblTempVendorCDR_20' ) start [2025-03-20 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721984', 'tblTempVendorCDR_20' ) end [2025-03-20 09:40:19] Production.INFO: ProcessCDR(1,14721984,1,1,2) [2025-03-20 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721984', 'tblTempUsageDetail_20' ) start [2025-03-20 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721984', 'tblTempUsageDetail_20' ) end [2025-03-20 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:40:24] Production.INFO: ==7514== Releasing lock... [2025-03-20 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:40:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:41:05 [end_date_ymd] => 2025-03-20 09:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:41:18] Production.INFO: count ==1533 [2025-03-20 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:41:05 - End Time 2025-03-20 09:41:05 [2025-03-20 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721989', 'tblTempUsageDetail_20' ) start [2025-03-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721989', 'tblTempUsageDetail_20' ) end [2025-03-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721989', 'tblTempVendorCDR_20' ) start [2025-03-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721989', 'tblTempVendorCDR_20' ) end [2025-03-20 09:41:18] Production.INFO: ProcessCDR(1,14721989,1,1,2) [2025-03-20 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721989', 'tblTempUsageDetail_20' ) start [2025-03-20 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721989', 'tblTempUsageDetail_20' ) end [2025-03-20 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:41:24] Production.INFO: ==7615== Releasing lock... [2025-03-20 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:41:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:42:06 [end_date_ymd] => 2025-03-20 09:42:06 [RateCDR] => 1 ) [2025-03-20 09:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:42:06' and `end` < '2025-03-20 09:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:42:18] Production.INFO: count ==1571 [2025-03-20 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:42:06 - End Time 2025-03-20 09:42:06 [2025-03-20 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721994', 'tblTempUsageDetail_20' ) start [2025-03-20 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721994', 'tblTempUsageDetail_20' ) end [2025-03-20 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721994', 'tblTempVendorCDR_20' ) start [2025-03-20 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721994', 'tblTempVendorCDR_20' ) end [2025-03-20 09:42:19] Production.INFO: ProcessCDR(1,14721994,1,1,2) [2025-03-20 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721994', 'tblTempUsageDetail_20' ) start [2025-03-20 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721994', 'tblTempUsageDetail_20' ) end [2025-03-20 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:42:24] Production.INFO: ==7700== Releasing lock... [2025-03-20 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:42:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-20 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:43:05 [end_date_ymd] => 2025-03-20 09:43:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:43:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:43:18] Production.INFO: count ==1593 [2025-03-20 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:43:05 - End Time 2025-03-20 09:43:05 [2025-03-20 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721999', 'tblTempUsageDetail_20' ) start [2025-03-20 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14721999', 'tblTempUsageDetail_20' ) end [2025-03-20 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721999', 'tblTempVendorCDR_20' ) start [2025-03-20 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14721999', 'tblTempVendorCDR_20' ) end [2025-03-20 09:43:19] Production.INFO: ProcessCDR(1,14721999,1,1,2) [2025-03-20 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14721999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14721999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14721999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14721999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721999', 'tblTempUsageDetail_20' ) start [2025-03-20 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14721999', 'tblTempUsageDetail_20' ) end [2025-03-20 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:43:24] Production.INFO: ==7805== Releasing lock... [2025-03-20 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:43:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-20 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:44:06 [end_date_ymd] => 2025-03-20 09:44:06 [RateCDR] => 1 ) [2025-03-20 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:44:06' and `end` < '2025-03-20 09:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:44:18] Production.INFO: count ==1634 [2025-03-20 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:44:06 - End Time 2025-03-20 09:44:06 [2025-03-20 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722004', 'tblTempUsageDetail_20' ) start [2025-03-20 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722004', 'tblTempUsageDetail_20' ) end [2025-03-20 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722004', 'tblTempVendorCDR_20' ) start [2025-03-20 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722004', 'tblTempVendorCDR_20' ) end [2025-03-20 09:44:19] Production.INFO: ProcessCDR(1,14722004,1,1,2) [2025-03-20 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722004', 'tblTempUsageDetail_20' ) start [2025-03-20 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722004', 'tblTempUsageDetail_20' ) end [2025-03-20 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:44:25] Production.INFO: ==7936== Releasing lock... [2025-03-20 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:44:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-20 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:45:06 [end_date_ymd] => 2025-03-20 09:45:06 [RateCDR] => 1 ) [2025-03-20 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:45:06' and `end` < '2025-03-20 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:45:19] Production.INFO: count ==1643 [2025-03-20 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:45:06 - End Time 2025-03-20 09:45:06 [2025-03-20 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722009', 'tblTempUsageDetail_20' ) start [2025-03-20 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722009', 'tblTempUsageDetail_20' ) end [2025-03-20 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722009', 'tblTempVendorCDR_20' ) start [2025-03-20 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722009', 'tblTempVendorCDR_20' ) end [2025-03-20 09:45:19] Production.INFO: ProcessCDR(1,14722009,1,1,2) [2025-03-20 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722009', 'tblTempUsageDetail_20' ) start [2025-03-20 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722009', 'tblTempUsageDetail_20' ) end [2025-03-20 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:45:25] Production.INFO: ==8043== Releasing lock... [2025-03-20 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:45:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-20 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:46:05 [end_date_ymd] => 2025-03-20 09:46:05 [RateCDR] => 1 ) [2025-03-20 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:46:05' and `end` < '2025-03-20 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:46:18] Production.INFO: count ==1662 [2025-03-20 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:46:05 - End Time 2025-03-20 09:46:05 [2025-03-20 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722014', 'tblTempUsageDetail_20' ) start [2025-03-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722014', 'tblTempUsageDetail_20' ) end [2025-03-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722014', 'tblTempVendorCDR_20' ) start [2025-03-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722014', 'tblTempVendorCDR_20' ) end [2025-03-20 09:46:18] Production.INFO: ProcessCDR(1,14722014,1,1,2) [2025-03-20 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722014', 'tblTempUsageDetail_20' ) start [2025-03-20 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722014', 'tblTempUsageDetail_20' ) end [2025-03-20 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:46:24] Production.INFO: ==8147== Releasing lock... [2025-03-20 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:46:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-20 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:47:06 [end_date_ymd] => 2025-03-20 09:47:06 [RateCDR] => 1 ) [2025-03-20 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:47:06' and `end` < '2025-03-20 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:47:18] Production.INFO: count ==1683 [2025-03-20 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:47:06 - End Time 2025-03-20 09:47:06 [2025-03-20 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722019', 'tblTempUsageDetail_20' ) start [2025-03-20 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722019', 'tblTempUsageDetail_20' ) end [2025-03-20 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722019', 'tblTempVendorCDR_20' ) start [2025-03-20 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722019', 'tblTempVendorCDR_20' ) end [2025-03-20 09:47:19] Production.INFO: ProcessCDR(1,14722019,1,1,2) [2025-03-20 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722019', 'tblTempUsageDetail_20' ) start [2025-03-20 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722019', 'tblTempUsageDetail_20' ) end [2025-03-20 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:47:25] Production.INFO: ==8263== Releasing lock... [2025-03-20 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:47:25] Production.INFO: 40.75 MB #Memory Used# [2025-03-20 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:48:05 [end_date_ymd] => 2025-03-20 09:48:05 [RateCDR] => 1 ) [2025-03-20 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:48:05' and `end` < '2025-03-20 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:48:18] Production.INFO: count ==1700 [2025-03-20 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:48:05 - End Time 2025-03-20 09:48:05 [2025-03-20 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722024', 'tblTempUsageDetail_20' ) start [2025-03-20 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722024', 'tblTempUsageDetail_20' ) end [2025-03-20 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722024', 'tblTempVendorCDR_20' ) start [2025-03-20 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722024', 'tblTempVendorCDR_20' ) end [2025-03-20 09:48:19] Production.INFO: ProcessCDR(1,14722024,1,1,2) [2025-03-20 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722024', 'tblTempUsageDetail_20' ) start [2025-03-20 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722024', 'tblTempUsageDetail_20' ) end [2025-03-20 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:48:25] Production.INFO: ==8355== Releasing lock... [2025-03-20 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:48:25] Production.INFO: 40.75 MB #Memory Used# [2025-03-20 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:49:05 [end_date_ymd] => 2025-03-20 09:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:49:18] Production.INFO: count ==1702 [2025-03-20 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:49:05 - End Time 2025-03-20 09:49:05 [2025-03-20 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722029', 'tblTempUsageDetail_20' ) start [2025-03-20 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722029', 'tblTempUsageDetail_20' ) end [2025-03-20 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722029', 'tblTempVendorCDR_20' ) start [2025-03-20 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722029', 'tblTempVendorCDR_20' ) end [2025-03-20 09:49:19] Production.INFO: ProcessCDR(1,14722029,1,1,2) [2025-03-20 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722029', 'tblTempUsageDetail_20' ) start [2025-03-20 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722029', 'tblTempUsageDetail_20' ) end [2025-03-20 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:49:24] Production.INFO: ==8449== Releasing lock... [2025-03-20 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:49:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-20 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:50:05 [end_date_ymd] => 2025-03-20 09:50:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:50:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:50:18] Production.INFO: count ==1731 [2025-03-20 09:50:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:50:05 - End Time 2025-03-20 09:50:05 [2025-03-20 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722034', 'tblTempUsageDetail_20' ) start [2025-03-20 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722034', 'tblTempUsageDetail_20' ) end [2025-03-20 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722034', 'tblTempVendorCDR_20' ) start [2025-03-20 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722034', 'tblTempVendorCDR_20' ) end [2025-03-20 09:50:19] Production.INFO: ProcessCDR(1,14722034,1,1,2) [2025-03-20 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722034', 'tblTempUsageDetail_20' ) start [2025-03-20 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722034', 'tblTempUsageDetail_20' ) end [2025-03-20 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:50:24] Production.INFO: ==8549== Releasing lock... [2025-03-20 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:50:24] Production.INFO: 41 MB #Memory Used# [2025-03-20 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:51:06 [end_date_ymd] => 2025-03-20 09:51:06 [RateCDR] => 1 ) [2025-03-20 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:51:06' and `end` < '2025-03-20 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:51:18] Production.INFO: count ==1825 [2025-03-20 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:51:06 - End Time 2025-03-20 09:51:06 [2025-03-20 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722040', 'tblTempUsageDetail_20' ) start [2025-03-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722040', 'tblTempUsageDetail_20' ) end [2025-03-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722040', 'tblTempVendorCDR_20' ) start [2025-03-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722040', 'tblTempVendorCDR_20' ) end [2025-03-20 09:51:19] Production.INFO: ProcessCDR(1,14722040,1,1,2) [2025-03-20 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722040', 'tblTempUsageDetail_20' ) start [2025-03-20 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722040', 'tblTempUsageDetail_20' ) end [2025-03-20 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:51:24] Production.INFO: ==8643== Releasing lock... [2025-03-20 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:51:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-20 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:52:05 [end_date_ymd] => 2025-03-20 09:52:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:52:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:52:18] Production.INFO: count ==1843 [2025-03-20 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:52:05 - End Time 2025-03-20 09:52:05 [2025-03-20 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722045', 'tblTempUsageDetail_20' ) start [2025-03-20 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722045', 'tblTempUsageDetail_20' ) end [2025-03-20 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722045', 'tblTempVendorCDR_20' ) start [2025-03-20 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722045', 'tblTempVendorCDR_20' ) end [2025-03-20 09:52:19] Production.INFO: ProcessCDR(1,14722045,1,1,2) [2025-03-20 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722045', 'tblTempUsageDetail_20' ) start [2025-03-20 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722045', 'tblTempUsageDetail_20' ) end [2025-03-20 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:52:23] Production.INFO: ==8730== Releasing lock... [2025-03-20 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:52:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:53:05 [end_date_ymd] => 2025-03-20 09:53:05 [RateCDR] => 1 ) [2025-03-20 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:53:05' and `end` < '2025-03-20 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:53:18] Production.INFO: count ==1847 [2025-03-20 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:53:05 - End Time 2025-03-20 09:53:05 [2025-03-20 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722050', 'tblTempUsageDetail_20' ) start [2025-03-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722050', 'tblTempUsageDetail_20' ) end [2025-03-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722050', 'tblTempVendorCDR_20' ) start [2025-03-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722050', 'tblTempVendorCDR_20' ) end [2025-03-20 09:53:18] Production.INFO: ProcessCDR(1,14722050,1,1,2) [2025-03-20 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722050', 'tblTempUsageDetail_20' ) start [2025-03-20 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722050', 'tblTempUsageDetail_20' ) end [2025-03-20 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:53:23] Production.INFO: ==8820== Releasing lock... [2025-03-20 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:53:23] Production.INFO: 42 MB #Memory Used# [2025-03-20 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:54:05 [end_date_ymd] => 2025-03-20 09:54:05 [RateCDR] => 1 ) [2025-03-20 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:54:05' and `end` < '2025-03-20 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:54:18] Production.INFO: count ==1857 [2025-03-20 09:54:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:54:05 - End Time 2025-03-20 09:54:05 [2025-03-20 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722055', 'tblTempUsageDetail_20' ) start [2025-03-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722055', 'tblTempUsageDetail_20' ) end [2025-03-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722055', 'tblTempVendorCDR_20' ) start [2025-03-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722055', 'tblTempVendorCDR_20' ) end [2025-03-20 09:54:18] Production.INFO: ProcessCDR(1,14722055,1,1,2) [2025-03-20 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722055', 'tblTempUsageDetail_20' ) start [2025-03-20 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722055', 'tblTempUsageDetail_20' ) end [2025-03-20 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:54:24] Production.INFO: ==8922== Releasing lock... [2025-03-20 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:54:24] Production.INFO: 42 MB #Memory Used# [2025-03-20 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:55:06 [end_date_ymd] => 2025-03-20 09:55:06 [RateCDR] => 1 ) [2025-03-20 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:55:06' and `end` < '2025-03-20 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:55:18] Production.INFO: count ==1886 [2025-03-20 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:55:06 - End Time 2025-03-20 09:55:06 [2025-03-20 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722060', 'tblTempUsageDetail_20' ) start [2025-03-20 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722060', 'tblTempUsageDetail_20' ) end [2025-03-20 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722060', 'tblTempVendorCDR_20' ) start [2025-03-20 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722060', 'tblTempVendorCDR_20' ) end [2025-03-20 09:55:19] Production.INFO: ProcessCDR(1,14722060,1,1,2) [2025-03-20 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722060', 'tblTempUsageDetail_20' ) start [2025-03-20 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722060', 'tblTempUsageDetail_20' ) end [2025-03-20 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:55:25] Production.INFO: ==9011== Releasing lock... [2025-03-20 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:55:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:56:05 [end_date_ymd] => 2025-03-20 09:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:56:18] Production.INFO: count ==1895 [2025-03-20 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:56:05 - End Time 2025-03-20 09:56:05 [2025-03-20 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722065', 'tblTempUsageDetail_20' ) start [2025-03-20 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722065', 'tblTempUsageDetail_20' ) end [2025-03-20 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722065', 'tblTempVendorCDR_20' ) start [2025-03-20 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722065', 'tblTempVendorCDR_20' ) end [2025-03-20 09:56:19] Production.INFO: ProcessCDR(1,14722065,1,1,2) [2025-03-20 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722065', 'tblTempUsageDetail_20' ) start [2025-03-20 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722065', 'tblTempUsageDetail_20' ) end [2025-03-20 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:56:24] Production.INFO: ==9106== Releasing lock... [2025-03-20 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:56:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:57:05 [end_date_ymd] => 2025-03-20 09:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 06:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 09:57:18] Production.INFO: count ==1908 [2025-03-20 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:57:05 - End Time 2025-03-20 09:57:05 [2025-03-20 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722070', 'tblTempUsageDetail_20' ) start [2025-03-20 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722070', 'tblTempUsageDetail_20' ) end [2025-03-20 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722070', 'tblTempVendorCDR_20' ) start [2025-03-20 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722070', 'tblTempVendorCDR_20' ) end [2025-03-20 09:57:19] Production.INFO: ProcessCDR(1,14722070,1,1,2) [2025-03-20 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722070', 'tblTempUsageDetail_20' ) start [2025-03-20 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722070', 'tblTempUsageDetail_20' ) end [2025-03-20 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:57:24] Production.INFO: ==9192== Releasing lock... [2025-03-20 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:57:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:58:05 [end_date_ymd] => 2025-03-20 09:58:05 [RateCDR] => 1 ) [2025-03-20 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:58:05' and `end` < '2025-03-20 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:58:18] Production.INFO: count ==1914 [2025-03-20 09:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 06:58:05 - End Time 2025-03-20 09:58:05 [2025-03-20 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722075', 'tblTempUsageDetail_20' ) start [2025-03-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722075', 'tblTempUsageDetail_20' ) end [2025-03-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722075', 'tblTempVendorCDR_20' ) start [2025-03-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722075', 'tblTempVendorCDR_20' ) end [2025-03-20 09:58:18] Production.INFO: ProcessCDR(1,14722075,1,1,2) [2025-03-20 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722075', 'tblTempUsageDetail_20' ) start [2025-03-20 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722075', 'tblTempUsageDetail_20' ) end [2025-03-20 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:58:24] Production.INFO: ==9274== Releasing lock... [2025-03-20 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:58:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-20 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 06:59:06 [end_date_ymd] => 2025-03-20 09:59:06 [RateCDR] => 1 ) [2025-03-20 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 06:59:06' and `end` < '2025-03-20 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 09:59:19] Production.INFO: count ==1938 [2025-03-20 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-20 06:59:06 - End Time 2025-03-20 09:59:06 [2025-03-20 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722080', 'tblTempUsageDetail_20' ) start [2025-03-20 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722080', 'tblTempUsageDetail_20' ) end [2025-03-20 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722080', 'tblTempVendorCDR_20' ) start [2025-03-20 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722080', 'tblTempVendorCDR_20' ) end [2025-03-20 09:59:19] Production.INFO: ProcessCDR(1,14722080,1,1,2) [2025-03-20 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722080', 'tblTempUsageDetail_20' ) start [2025-03-20 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722080', 'tblTempUsageDetail_20' ) end [2025-03-20 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 09:59:25] Production.INFO: ==9404== Releasing lock... [2025-03-20 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 09:59:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-20 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:00:06 [end_date_ymd] => 2025-03-20 10:00:06 [RateCDR] => 1 ) [2025-03-20 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:00:06' and `end` < '2025-03-20 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:00:18] Production.INFO: count ==1961 [2025-03-20 10:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:00:06 - End Time 2025-03-20 10:00:06 [2025-03-20 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722085', 'tblTempUsageDetail_20' ) start [2025-03-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722085', 'tblTempUsageDetail_20' ) end [2025-03-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722085', 'tblTempVendorCDR_20' ) start [2025-03-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722085', 'tblTempVendorCDR_20' ) end [2025-03-20 10:00:19] Production.INFO: ProcessCDR(1,14722085,1,1,2) [2025-03-20 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722085', 'tblTempUsageDetail_20' ) start [2025-03-20 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722085', 'tblTempUsageDetail_20' ) end [2025-03-20 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:00:24] Production.INFO: ==9495== Releasing lock... [2025-03-20 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:00:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-20 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:01:06 [end_date_ymd] => 2025-03-20 10:01:06 [RateCDR] => 1 ) [2025-03-20 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:01:06' and `end` < '2025-03-20 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:01:19] Production.INFO: count ==2037 [2025-03-20 10:01:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:01:06 - End Time 2025-03-20 10:01:06 [2025-03-20 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722091', 'tblTempUsageDetail_20' ) start [2025-03-20 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722091', 'tblTempUsageDetail_20' ) end [2025-03-20 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722091', 'tblTempVendorCDR_20' ) start [2025-03-20 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722091', 'tblTempVendorCDR_20' ) end [2025-03-20 10:01:20] Production.INFO: ProcessCDR(1,14722091,1,1,2) [2025-03-20 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722091', 'tblTempUsageDetail_20' ) start [2025-03-20 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722091', 'tblTempUsageDetail_20' ) end [2025-03-20 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:01:26] Production.INFO: ==9597== Releasing lock... [2025-03-20 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:01:26] Production.INFO: 43.25 MB #Memory Used# [2025-03-20 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:02:05 [end_date_ymd] => 2025-03-20 10:02:05 [RateCDR] => 1 ) [2025-03-20 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:02:05' and `end` < '2025-03-20 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:02:18] Production.INFO: count ==2056 [2025-03-20 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 07:02:05 - End Time 2025-03-20 10:02:05 [2025-03-20 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722096', 'tblTempUsageDetail_20' ) start [2025-03-20 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722096', 'tblTempUsageDetail_20' ) end [2025-03-20 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722096', 'tblTempVendorCDR_20' ) start [2025-03-20 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722096', 'tblTempVendorCDR_20' ) end [2025-03-20 10:02:18] Production.INFO: ProcessCDR(1,14722096,1,1,2) [2025-03-20 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722096', 'tblTempUsageDetail_20' ) start [2025-03-20 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722096', 'tblTempUsageDetail_20' ) end [2025-03-20 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:02:24] Production.INFO: ==9689== Releasing lock... [2025-03-20 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:02:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-20 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:03:06 [end_date_ymd] => 2025-03-20 10:03:06 [RateCDR] => 1 ) [2025-03-20 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:03:06' and `end` < '2025-03-20 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:03:19] Production.INFO: count ==2068 [2025-03-20 10:03:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:03:06 - End Time 2025-03-20 10:03:06 [2025-03-20 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722101', 'tblTempUsageDetail_20' ) start [2025-03-20 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722101', 'tblTempUsageDetail_20' ) end [2025-03-20 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722101', 'tblTempVendorCDR_20' ) start [2025-03-20 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722101', 'tblTempVendorCDR_20' ) end [2025-03-20 10:03:20] Production.INFO: ProcessCDR(1,14722101,1,1,2) [2025-03-20 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722101', 'tblTempUsageDetail_20' ) start [2025-03-20 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722101', 'tblTempUsageDetail_20' ) end [2025-03-20 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:03:25] Production.INFO: ==9781== Releasing lock... [2025-03-20 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:03:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-20 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:04:05 [end_date_ymd] => 2025-03-20 10:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:04:18] Production.INFO: count ==2091 [2025-03-20 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:04:05 - End Time 2025-03-20 10:04:05 [2025-03-20 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722106', 'tblTempUsageDetail_20' ) start [2025-03-20 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722106', 'tblTempUsageDetail_20' ) end [2025-03-20 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722106', 'tblTempVendorCDR_20' ) start [2025-03-20 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722106', 'tblTempVendorCDR_20' ) end [2025-03-20 10:04:19] Production.INFO: ProcessCDR(1,14722106,1,1,2) [2025-03-20 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722106', 'tblTempUsageDetail_20' ) start [2025-03-20 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722106', 'tblTempUsageDetail_20' ) end [2025-03-20 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:04:25] Production.INFO: ==9865== Releasing lock... [2025-03-20 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:04:25] Production.INFO: 44 MB #Memory Used# [2025-03-20 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:05:06 [end_date_ymd] => 2025-03-20 10:05:06 [RateCDR] => 1 ) [2025-03-20 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:05:06' and `end` < '2025-03-20 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:05:18] Production.INFO: count ==2108 [2025-03-20 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:05:06 - End Time 2025-03-20 10:05:06 [2025-03-20 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722111', 'tblTempUsageDetail_20' ) start [2025-03-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722111', 'tblTempUsageDetail_20' ) end [2025-03-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722111', 'tblTempVendorCDR_20' ) start [2025-03-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722111', 'tblTempVendorCDR_20' ) end [2025-03-20 10:05:19] Production.INFO: ProcessCDR(1,14722111,1,1,2) [2025-03-20 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722111', 'tblTempUsageDetail_20' ) start [2025-03-20 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722111', 'tblTempUsageDetail_20' ) end [2025-03-20 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:05:24] Production.INFO: ==9960== Releasing lock... [2025-03-20 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:05:24] Production.INFO: 44 MB #Memory Used# [2025-03-20 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:06:06 [end_date_ymd] => 2025-03-20 10:06:06 [RateCDR] => 1 ) [2025-03-20 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:06:06' and `end` < '2025-03-20 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:06:18] Production.INFO: count ==2154 [2025-03-20 10:06:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:06:06 - End Time 2025-03-20 10:06:06 [2025-03-20 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722116', 'tblTempUsageDetail_20' ) start [2025-03-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722116', 'tblTempUsageDetail_20' ) end [2025-03-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722116', 'tblTempVendorCDR_20' ) start [2025-03-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722116', 'tblTempVendorCDR_20' ) end [2025-03-20 10:06:19] Production.INFO: ProcessCDR(1,14722116,1,1,2) [2025-03-20 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722116', 'tblTempUsageDetail_20' ) start [2025-03-20 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722116', 'tblTempUsageDetail_20' ) end [2025-03-20 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:06:24] Production.INFO: ==10054== Releasing lock... [2025-03-20 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:06:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-20 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:07:05 [end_date_ymd] => 2025-03-20 10:07:05 [RateCDR] => 1 ) [2025-03-20 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:07:05' and `end` < '2025-03-20 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:07:18] Production.INFO: count ==2164 [2025-03-20 10:07:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:07:05 - End Time 2025-03-20 10:07:05 [2025-03-20 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722121', 'tblTempUsageDetail_20' ) start [2025-03-20 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722121', 'tblTempUsageDetail_20' ) end [2025-03-20 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722121', 'tblTempVendorCDR_20' ) start [2025-03-20 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722121', 'tblTempVendorCDR_20' ) end [2025-03-20 10:07:19] Production.INFO: ProcessCDR(1,14722121,1,1,2) [2025-03-20 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722121', 'tblTempUsageDetail_20' ) start [2025-03-20 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722121', 'tblTempUsageDetail_20' ) end [2025-03-20 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:07:24] Production.INFO: ==10140== Releasing lock... [2025-03-20 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:07:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-20 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:08:06 [end_date_ymd] => 2025-03-20 10:08:06 [RateCDR] => 1 ) [2025-03-20 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:08:06' and `end` < '2025-03-20 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:08:18] Production.INFO: count ==2199 [2025-03-20 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:08:06 - End Time 2025-03-20 10:08:06 [2025-03-20 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722126', 'tblTempUsageDetail_20' ) start [2025-03-20 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722126', 'tblTempUsageDetail_20' ) end [2025-03-20 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722126', 'tblTempVendorCDR_20' ) start [2025-03-20 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722126', 'tblTempVendorCDR_20' ) end [2025-03-20 10:08:19] Production.INFO: ProcessCDR(1,14722126,1,1,2) [2025-03-20 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722126', 'tblTempUsageDetail_20' ) start [2025-03-20 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722126', 'tblTempUsageDetail_20' ) end [2025-03-20 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:08:25] Production.INFO: ==10218== Releasing lock... [2025-03-20 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:08:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-20 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:09:06 [end_date_ymd] => 2025-03-20 10:09:06 [RateCDR] => 1 ) [2025-03-20 10:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:09:06' and `end` < '2025-03-20 10:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:09:18] Production.INFO: count ==2251 [2025-03-20 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:09:06 - End Time 2025-03-20 10:09:06 [2025-03-20 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722131', 'tblTempUsageDetail_20' ) start [2025-03-20 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722131', 'tblTempUsageDetail_20' ) end [2025-03-20 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722131', 'tblTempVendorCDR_20' ) start [2025-03-20 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722131', 'tblTempVendorCDR_20' ) end [2025-03-20 10:09:19] Production.INFO: ProcessCDR(1,14722131,1,1,2) [2025-03-20 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722131', 'tblTempUsageDetail_20' ) start [2025-03-20 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722131', 'tblTempUsageDetail_20' ) end [2025-03-20 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:09:25] Production.INFO: ==10305== Releasing lock... [2025-03-20 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:09:25] Production.INFO: 45 MB #Memory Used# [2025-03-20 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:10:06 [end_date_ymd] => 2025-03-20 10:10:06 [RateCDR] => 1 ) [2025-03-20 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:10:06' and `end` < '2025-03-20 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:10:19] Production.INFO: count ==2287 [2025-03-20 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:10:06 - End Time 2025-03-20 10:10:06 [2025-03-20 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722137', 'tblTempUsageDetail_20' ) start [2025-03-20 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722137', 'tblTempUsageDetail_20' ) end [2025-03-20 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722137', 'tblTempVendorCDR_20' ) start [2025-03-20 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722137', 'tblTempVendorCDR_20' ) end [2025-03-20 10:10:20] Production.INFO: ProcessCDR(1,14722137,1,1,2) [2025-03-20 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722137', 'tblTempUsageDetail_20' ) start [2025-03-20 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722137', 'tblTempUsageDetail_20' ) end [2025-03-20 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:10:26] Production.INFO: ==10396== Releasing lock... [2025-03-20 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:10:26] Production.INFO: 45.25 MB #Memory Used# [2025-03-20 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:11:06 [end_date_ymd] => 2025-03-20 10:11:06 [RateCDR] => 1 ) [2025-03-20 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:11:06' and `end` < '2025-03-20 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:11:18] Production.INFO: count ==2373 [2025-03-20 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:11:06 - End Time 2025-03-20 10:11:06 [2025-03-20 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722142', 'tblTempUsageDetail_20' ) start [2025-03-20 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722142', 'tblTempUsageDetail_20' ) end [2025-03-20 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722142', 'tblTempVendorCDR_20' ) start [2025-03-20 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722142', 'tblTempVendorCDR_20' ) end [2025-03-20 10:11:19] Production.INFO: ProcessCDR(1,14722142,1,1,2) [2025-03-20 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722142', 'tblTempUsageDetail_20' ) start [2025-03-20 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722142', 'tblTempUsageDetail_20' ) end [2025-03-20 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:11:25] Production.INFO: ==10482== Releasing lock... [2025-03-20 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:11:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-20 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:12:06 [end_date_ymd] => 2025-03-20 10:12:06 [RateCDR] => 1 ) [2025-03-20 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:12:06' and `end` < '2025-03-20 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:12:19] Production.INFO: count ==2385 [2025-03-20 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:12:06 - End Time 2025-03-20 10:12:06 [2025-03-20 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722147', 'tblTempUsageDetail_20' ) start [2025-03-20 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722147', 'tblTempUsageDetail_20' ) end [2025-03-20 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722147', 'tblTempVendorCDR_20' ) start [2025-03-20 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722147', 'tblTempVendorCDR_20' ) end [2025-03-20 10:12:20] Production.INFO: ProcessCDR(1,14722147,1,1,2) [2025-03-20 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722147', 'tblTempUsageDetail_20' ) start [2025-03-20 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722147', 'tblTempUsageDetail_20' ) end [2025-03-20 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:12:25] Production.INFO: ==10578== Releasing lock... [2025-03-20 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:12:25] Production.INFO: 46 MB #Memory Used# [2025-03-20 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:13:05 [end_date_ymd] => 2025-03-20 10:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:13:18] Production.INFO: count ==2405 [2025-03-20 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:13:05 - End Time 2025-03-20 10:13:05 [2025-03-20 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722152', 'tblTempUsageDetail_20' ) start [2025-03-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722152', 'tblTempUsageDetail_20' ) end [2025-03-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722152', 'tblTempVendorCDR_20' ) start [2025-03-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722152', 'tblTempVendorCDR_20' ) end [2025-03-20 10:13:19] Production.INFO: ProcessCDR(1,14722152,1,1,2) [2025-03-20 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722152', 'tblTempUsageDetail_20' ) start [2025-03-20 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722152', 'tblTempUsageDetail_20' ) end [2025-03-20 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:13:24] Production.INFO: ==10677== Releasing lock... [2025-03-20 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:13:24] Production.INFO: 46 MB #Memory Used# [2025-03-20 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:14:06 [end_date_ymd] => 2025-03-20 10:14:06 [RateCDR] => 1 ) [2025-03-20 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:14:06' and `end` < '2025-03-20 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:14:19] Production.INFO: count ==2411 [2025-03-20 10:14:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:14:06 - End Time 2025-03-20 10:14:06 [2025-03-20 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722157', 'tblTempUsageDetail_20' ) start [2025-03-20 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722157', 'tblTempUsageDetail_20' ) end [2025-03-20 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722157', 'tblTempVendorCDR_20' ) start [2025-03-20 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722157', 'tblTempVendorCDR_20' ) end [2025-03-20 10:14:20] Production.INFO: ProcessCDR(1,14722157,1,1,2) [2025-03-20 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722157', 'tblTempUsageDetail_20' ) start [2025-03-20 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722157', 'tblTempUsageDetail_20' ) end [2025-03-20 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:14:25] Production.INFO: ==10767== Releasing lock... [2025-03-20 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:14:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-20 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:15:06 [end_date_ymd] => 2025-03-20 10:15:06 [RateCDR] => 1 ) [2025-03-20 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:15:06' and `end` < '2025-03-20 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:15:19] Production.INFO: count ==2423 [2025-03-20 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:15:06 - End Time 2025-03-20 10:15:06 [2025-03-20 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722162', 'tblTempUsageDetail_20' ) start [2025-03-20 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722162', 'tblTempUsageDetail_20' ) end [2025-03-20 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722162', 'tblTempVendorCDR_20' ) start [2025-03-20 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722162', 'tblTempVendorCDR_20' ) end [2025-03-20 10:15:20] Production.INFO: ProcessCDR(1,14722162,1,1,2) [2025-03-20 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722162', 'tblTempUsageDetail_20' ) start [2025-03-20 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722162', 'tblTempUsageDetail_20' ) end [2025-03-20 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:15:25] Production.INFO: ==10904== Releasing lock... [2025-03-20 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:15:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-20 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:16:05 [end_date_ymd] => 2025-03-20 10:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:16:18] Production.INFO: count ==2427 [2025-03-20 10:16:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:16:05 - End Time 2025-03-20 10:16:05 [2025-03-20 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722167', 'tblTempUsageDetail_20' ) start [2025-03-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722167', 'tblTempUsageDetail_20' ) end [2025-03-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722167', 'tblTempVendorCDR_20' ) start [2025-03-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722167', 'tblTempVendorCDR_20' ) end [2025-03-20 10:16:19] Production.INFO: ProcessCDR(1,14722167,1,1,2) [2025-03-20 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722167', 'tblTempUsageDetail_20' ) start [2025-03-20 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722167', 'tblTempUsageDetail_20' ) end [2025-03-20 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:16:25] Production.INFO: ==11001== Releasing lock... [2025-03-20 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:16:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-20 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:17:06 [end_date_ymd] => 2025-03-20 10:17:06 [RateCDR] => 1 ) [2025-03-20 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:17:06' and `end` < '2025-03-20 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:17:18] Production.INFO: count ==2441 [2025-03-20 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:17:06 - End Time 2025-03-20 10:17:06 [2025-03-20 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722172', 'tblTempUsageDetail_20' ) start [2025-03-20 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722172', 'tblTempUsageDetail_20' ) end [2025-03-20 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722172', 'tblTempVendorCDR_20' ) start [2025-03-20 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722172', 'tblTempVendorCDR_20' ) end [2025-03-20 10:17:19] Production.INFO: ProcessCDR(1,14722172,1,1,2) [2025-03-20 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722172', 'tblTempUsageDetail_20' ) start [2025-03-20 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722172', 'tblTempUsageDetail_20' ) end [2025-03-20 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:17:25] Production.INFO: ==11106== Releasing lock... [2025-03-20 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:17:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-20 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:18:05 [end_date_ymd] => 2025-03-20 10:18:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:18:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:18:18] Production.INFO: count ==2470 [2025-03-20 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:18:05 - End Time 2025-03-20 10:18:05 [2025-03-20 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722177', 'tblTempUsageDetail_20' ) start [2025-03-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722177', 'tblTempUsageDetail_20' ) end [2025-03-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722177', 'tblTempVendorCDR_20' ) start [2025-03-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722177', 'tblTempVendorCDR_20' ) end [2025-03-20 10:18:19] Production.INFO: ProcessCDR(1,14722177,1,1,2) [2025-03-20 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722177', 'tblTempUsageDetail_20' ) start [2025-03-20 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722177', 'tblTempUsageDetail_20' ) end [2025-03-20 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:18:24] Production.INFO: ==11211== Releasing lock... [2025-03-20 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:18:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-20 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:19:05 [end_date_ymd] => 2025-03-20 10:19:05 [RateCDR] => 1 ) [2025-03-20 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:19:05' and `end` < '2025-03-20 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:19:18] Production.INFO: count ==2479 [2025-03-20 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:19:05 - End Time 2025-03-20 10:19:05 [2025-03-20 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722182', 'tblTempUsageDetail_20' ) start [2025-03-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722182', 'tblTempUsageDetail_20' ) end [2025-03-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722182', 'tblTempVendorCDR_20' ) start [2025-03-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722182', 'tblTempVendorCDR_20' ) end [2025-03-20 10:19:19] Production.INFO: ProcessCDR(1,14722182,1,1,2) [2025-03-20 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722182', 'tblTempUsageDetail_20' ) start [2025-03-20 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722182', 'tblTempUsageDetail_20' ) end [2025-03-20 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:19:24] Production.INFO: ==11321== Releasing lock... [2025-03-20 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:19:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-20 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:20:06 [end_date_ymd] => 2025-03-20 10:20:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:20:06' and `end` < '2025-03-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 ,'') [2025-03-20 10:20:19] Production.INFO: count ==2501 [2025-03-20 10:20:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:20:06 - End Time 2025-03-20 10:20:06 [2025-03-20 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722188', 'tblTempUsageDetail_20' ) start [2025-03-20 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722188', 'tblTempUsageDetail_20' ) end [2025-03-20 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722188', 'tblTempVendorCDR_20' ) start [2025-03-20 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722188', 'tblTempVendorCDR_20' ) end [2025-03-20 10:20:20] Production.INFO: ProcessCDR(1,14722188,1,1,2) [2025-03-20 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722188', 'tblTempUsageDetail_20' ) start [2025-03-20 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722188', 'tblTempUsageDetail_20' ) end [2025-03-20 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:20:25] Production.INFO: ==11427== Releasing lock... [2025-03-20 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:20:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-20 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:21:05 [end_date_ymd] => 2025-03-20 10:21:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:21:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:21:18] Production.INFO: count ==2618 [2025-03-20 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:21:05 - End Time 2025-03-20 10:21:05 [2025-03-20 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722193', 'tblTempUsageDetail_20' ) start [2025-03-20 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722193', 'tblTempUsageDetail_20' ) end [2025-03-20 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722193', 'tblTempVendorCDR_20' ) start [2025-03-20 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722193', 'tblTempVendorCDR_20' ) end [2025-03-20 10:21:19] Production.INFO: ProcessCDR(1,14722193,1,1,2) [2025-03-20 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722193', 'tblTempUsageDetail_20' ) start [2025-03-20 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722193', 'tblTempUsageDetail_20' ) end [2025-03-20 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:21:24] Production.INFO: ==11535== Releasing lock... [2025-03-20 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:21:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-20 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:22:05 [end_date_ymd] => 2025-03-20 10:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:22:17] Production.INFO: count ==2650 [2025-03-20 10:22:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:22:05 - End Time 2025-03-20 10:22:05 [2025-03-20 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722198', 'tblTempUsageDetail_20' ) start [2025-03-20 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722198', 'tblTempUsageDetail_20' ) end [2025-03-20 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722198', 'tblTempVendorCDR_20' ) start [2025-03-20 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722198', 'tblTempVendorCDR_20' ) end [2025-03-20 10:22:19] Production.INFO: ProcessCDR(1,14722198,1,1,2) [2025-03-20 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722198', 'tblTempUsageDetail_20' ) start [2025-03-20 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722198', 'tblTempUsageDetail_20' ) end [2025-03-20 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:22:24] Production.INFO: ==11654== Releasing lock... [2025-03-20 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:22:24] Production.INFO: 48 MB #Memory Used# [2025-03-20 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:23:05 [end_date_ymd] => 2025-03-20 10:23:05 [RateCDR] => 1 ) [2025-03-20 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:23:05' and `end` < '2025-03-20 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:23:18] Production.INFO: count ==2654 [2025-03-20 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:23:05 - End Time 2025-03-20 10:23:05 [2025-03-20 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722203', 'tblTempUsageDetail_20' ) start [2025-03-20 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722203', 'tblTempUsageDetail_20' ) end [2025-03-20 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722203', 'tblTempVendorCDR_20' ) start [2025-03-20 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722203', 'tblTempVendorCDR_20' ) end [2025-03-20 10:23:19] Production.INFO: ProcessCDR(1,14722203,1,1,2) [2025-03-20 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722203', 'tblTempUsageDetail_20' ) start [2025-03-20 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722203', 'tblTempUsageDetail_20' ) end [2025-03-20 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:23:24] Production.INFO: ==11767== Releasing lock... [2025-03-20 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:23:24] Production.INFO: 48 MB #Memory Used# [2025-03-20 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:24:05 [end_date_ymd] => 2025-03-20 10:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:24:18] Production.INFO: count ==2666 [2025-03-20 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:24:05 - End Time 2025-03-20 10:24:05 [2025-03-20 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722208', 'tblTempUsageDetail_20' ) start [2025-03-20 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722208', 'tblTempUsageDetail_20' ) end [2025-03-20 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722208', 'tblTempVendorCDR_20' ) start [2025-03-20 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722208', 'tblTempVendorCDR_20' ) end [2025-03-20 10:24:19] Production.INFO: ProcessCDR(1,14722208,1,1,2) [2025-03-20 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722208', 'tblTempUsageDetail_20' ) start [2025-03-20 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722208', 'tblTempUsageDetail_20' ) end [2025-03-20 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:24:24] Production.INFO: ==11867== Releasing lock... [2025-03-20 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:24:24] Production.INFO: 48 MB #Memory Used# [2025-03-20 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:25:05 [end_date_ymd] => 2025-03-20 10:25:05 [RateCDR] => 1 ) [2025-03-20 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:25:05' and `end` < '2025-03-20 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:25:18] Production.INFO: count ==2684 [2025-03-20 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:25:05 - End Time 2025-03-20 10:25:05 [2025-03-20 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722213', 'tblTempUsageDetail_20' ) start [2025-03-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722213', 'tblTempUsageDetail_20' ) end [2025-03-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722213', 'tblTempVendorCDR_20' ) start [2025-03-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722213', 'tblTempVendorCDR_20' ) end [2025-03-20 10:25:19] Production.INFO: ProcessCDR(1,14722213,1,1,2) [2025-03-20 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722213', 'tblTempUsageDetail_20' ) start [2025-03-20 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722213', 'tblTempUsageDetail_20' ) end [2025-03-20 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:25:24] Production.INFO: ==11985== Releasing lock... [2025-03-20 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:25:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-20 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:26:05 [end_date_ymd] => 2025-03-20 10:26:05 [RateCDR] => 1 ) [2025-03-20 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:26:05' and `end` < '2025-03-20 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:26:18] Production.INFO: count ==2698 [2025-03-20 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:26:05 - End Time 2025-03-20 10:26:05 [2025-03-20 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722218', 'tblTempUsageDetail_20' ) start [2025-03-20 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722218', 'tblTempUsageDetail_20' ) end [2025-03-20 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722218', 'tblTempVendorCDR_20' ) start [2025-03-20 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722218', 'tblTempVendorCDR_20' ) end [2025-03-20 10:26:19] Production.INFO: ProcessCDR(1,14722218,1,1,2) [2025-03-20 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722218', 'tblTempUsageDetail_20' ) start [2025-03-20 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722218', 'tblTempUsageDetail_20' ) end [2025-03-20 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:26:25] Production.INFO: ==12097== Releasing lock... [2025-03-20 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:26:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-20 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:27:05 [end_date_ymd] => 2025-03-20 10:27:05 [RateCDR] => 1 ) [2025-03-20 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:27:05' and `end` < '2025-03-20 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:27:18] Production.INFO: count ==2712 [2025-03-20 10:27:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:27:05 - End Time 2025-03-20 10:27:05 [2025-03-20 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722223', 'tblTempUsageDetail_20' ) start [2025-03-20 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722223', 'tblTempUsageDetail_20' ) end [2025-03-20 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722223', 'tblTempVendorCDR_20' ) start [2025-03-20 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722223', 'tblTempVendorCDR_20' ) end [2025-03-20 10:27:19] Production.INFO: ProcessCDR(1,14722223,1,1,2) [2025-03-20 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722223', 'tblTempUsageDetail_20' ) start [2025-03-20 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722223', 'tblTempUsageDetail_20' ) end [2025-03-20 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:27:24] Production.INFO: ==12207== Releasing lock... [2025-03-20 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:27:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-20 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:28:05 [end_date_ymd] => 2025-03-20 10:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:28:18] Production.INFO: count ==2727 [2025-03-20 10:28:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:28:05 - End Time 2025-03-20 10:28:05 [2025-03-20 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722228', 'tblTempUsageDetail_20' ) start [2025-03-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722228', 'tblTempUsageDetail_20' ) end [2025-03-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722228', 'tblTempVendorCDR_20' ) start [2025-03-20 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722228', 'tblTempVendorCDR_20' ) end [2025-03-20 10:28:20] Production.INFO: ProcessCDR(1,14722228,1,1,2) [2025-03-20 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722228', 'tblTempUsageDetail_20' ) start [2025-03-20 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722228', 'tblTempUsageDetail_20' ) end [2025-03-20 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:28:24] Production.INFO: ==12307== Releasing lock... [2025-03-20 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:28:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-20 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:29:05 [end_date_ymd] => 2025-03-20 10:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:29:18] Production.INFO: count ==2747 [2025-03-20 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:29:05 - End Time 2025-03-20 10:29:05 [2025-03-20 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722233', 'tblTempUsageDetail_20' ) start [2025-03-20 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722233', 'tblTempUsageDetail_20' ) end [2025-03-20 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722233', 'tblTempVendorCDR_20' ) start [2025-03-20 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722233', 'tblTempVendorCDR_20' ) end [2025-03-20 10:29:19] Production.INFO: ProcessCDR(1,14722233,1,1,2) [2025-03-20 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722233', 'tblTempUsageDetail_20' ) start [2025-03-20 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722233', 'tblTempUsageDetail_20' ) end [2025-03-20 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:29:24] Production.INFO: ==12409== Releasing lock... [2025-03-20 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:29:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-20 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:30:05 [end_date_ymd] => 2025-03-20 10:30:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:30:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:30:18] Production.INFO: count ==2763 [2025-03-20 10:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:30:05 - End Time 2025-03-20 10:30:05 [2025-03-20 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722238', 'tblTempUsageDetail_20' ) start [2025-03-20 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722238', 'tblTempUsageDetail_20' ) end [2025-03-20 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722238', 'tblTempVendorCDR_20' ) start [2025-03-20 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722238', 'tblTempVendorCDR_20' ) end [2025-03-20 10:30:19] Production.INFO: ProcessCDR(1,14722238,1,1,2) [2025-03-20 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722238', 'tblTempUsageDetail_20' ) start [2025-03-20 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722238', 'tblTempUsageDetail_20' ) end [2025-03-20 10:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:30:24] Production.INFO: ==12547== Releasing lock... [2025-03-20 10:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:30:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-20 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:31:05 [end_date_ymd] => 2025-03-20 10:31:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:31:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:31:18] Production.INFO: count ==2872 [2025-03-20 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:31:05 - End Time 2025-03-20 10:31:05 [2025-03-20 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722244', 'tblTempUsageDetail_20' ) start [2025-03-20 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722244', 'tblTempUsageDetail_20' ) end [2025-03-20 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722244', 'tblTempVendorCDR_20' ) start [2025-03-20 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722244', 'tblTempVendorCDR_20' ) end [2025-03-20 10:31:19] Production.INFO: ProcessCDR(1,14722244,1,1,2) [2025-03-20 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722244', 'tblTempUsageDetail_20' ) start [2025-03-20 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722244', 'tblTempUsageDetail_20' ) end [2025-03-20 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:31:24] Production.INFO: ==12655== Releasing lock... [2025-03-20 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:31:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:32:06 [end_date_ymd] => 2025-03-20 10:32:06 [RateCDR] => 1 ) [2025-03-20 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:32:06' and `end` < '2025-03-20 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:32:19] Production.INFO: count ==2878 [2025-03-20 10:32:21] Production.ERROR: pbx CDR StartTime 2025-03-20 07:32:06 - End Time 2025-03-20 10:32:06 [2025-03-20 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722249', 'tblTempUsageDetail_20' ) start [2025-03-20 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722249', 'tblTempUsageDetail_20' ) end [2025-03-20 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722249', 'tblTempVendorCDR_20' ) start [2025-03-20 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722249', 'tblTempVendorCDR_20' ) end [2025-03-20 10:32:21] Production.INFO: ProcessCDR(1,14722249,1,1,2) [2025-03-20 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722249', 'tblTempUsageDetail_20' ) start [2025-03-20 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722249', 'tblTempUsageDetail_20' ) end [2025-03-20 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:32:26] Production.INFO: ==12767== Releasing lock... [2025-03-20 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:32:26] Production.INFO: 50.25 MB #Memory Used# [2025-03-20 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:33:05 [end_date_ymd] => 2025-03-20 10:33:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:33:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:33:18] Production.INFO: count ==2882 [2025-03-20 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:33:05 - End Time 2025-03-20 10:33:05 [2025-03-20 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722254', 'tblTempUsageDetail_20' ) start [2025-03-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722254', 'tblTempUsageDetail_20' ) end [2025-03-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722254', 'tblTempVendorCDR_20' ) start [2025-03-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722254', 'tblTempVendorCDR_20' ) end [2025-03-20 10:33:19] Production.INFO: ProcessCDR(1,14722254,1,1,2) [2025-03-20 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722254', 'tblTempUsageDetail_20' ) start [2025-03-20 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722254', 'tblTempUsageDetail_20' ) end [2025-03-20 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:33:25] Production.INFO: ==12868== Releasing lock... [2025-03-20 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:33:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-20 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:34:05 [end_date_ymd] => 2025-03-20 10:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:34:18] Production.INFO: count ==2885 [2025-03-20 10:34:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:34:05 - End Time 2025-03-20 10:34:05 [2025-03-20 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722259', 'tblTempUsageDetail_20' ) start [2025-03-20 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722259', 'tblTempUsageDetail_20' ) end [2025-03-20 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722259', 'tblTempVendorCDR_20' ) start [2025-03-20 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722259', 'tblTempVendorCDR_20' ) end [2025-03-20 10:34:20] Production.INFO: ProcessCDR(1,14722259,1,1,2) [2025-03-20 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722259', 'tblTempUsageDetail_20' ) start [2025-03-20 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722259', 'tblTempUsageDetail_20' ) end [2025-03-20 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:34:24] Production.INFO: ==12980== Releasing lock... [2025-03-20 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:34:24] Production.INFO: 50.25 MB #Memory Used# [2025-03-20 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:35:05 [end_date_ymd] => 2025-03-20 10:35:05 [RateCDR] => 1 ) [2025-03-20 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:35:05' and `end` < '2025-03-20 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:35:18] Production.INFO: count ==2889 [2025-03-20 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:35:05 - End Time 2025-03-20 10:35:05 [2025-03-20 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722264', 'tblTempUsageDetail_20' ) start [2025-03-20 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722264', 'tblTempUsageDetail_20' ) end [2025-03-20 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722264', 'tblTempVendorCDR_20' ) start [2025-03-20 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722264', 'tblTempVendorCDR_20' ) end [2025-03-20 10:35:19] Production.INFO: ProcessCDR(1,14722264,1,1,2) [2025-03-20 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722264', 'tblTempUsageDetail_20' ) start [2025-03-20 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722264', 'tblTempUsageDetail_20' ) end [2025-03-20 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:35:25] Production.INFO: ==13077== Releasing lock... [2025-03-20 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:35:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:36:05 [end_date_ymd] => 2025-03-20 10:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:36:18] Production.INFO: count ==2910 [2025-03-20 10:36:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:36:05 - End Time 2025-03-20 10:36:05 [2025-03-20 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722269', 'tblTempUsageDetail_20' ) start [2025-03-20 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722269', 'tblTempUsageDetail_20' ) end [2025-03-20 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722269', 'tblTempVendorCDR_20' ) start [2025-03-20 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722269', 'tblTempVendorCDR_20' ) end [2025-03-20 10:36:19] Production.INFO: ProcessCDR(1,14722269,1,1,2) [2025-03-20 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722269', 'tblTempUsageDetail_20' ) start [2025-03-20 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722269', 'tblTempUsageDetail_20' ) end [2025-03-20 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:36:24] Production.INFO: ==13181== Releasing lock... [2025-03-20 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:36:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:37:05 [end_date_ymd] => 2025-03-20 10:37:05 [RateCDR] => 1 ) [2025-03-20 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:37:05' and `end` < '2025-03-20 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:37:18] Production.INFO: count ==2923 [2025-03-20 10:37:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:37:05 - End Time 2025-03-20 10:37:05 [2025-03-20 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722274', 'tblTempUsageDetail_20' ) start [2025-03-20 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722274', 'tblTempUsageDetail_20' ) end [2025-03-20 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722274', 'tblTempVendorCDR_20' ) start [2025-03-20 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722274', 'tblTempVendorCDR_20' ) end [2025-03-20 10:37:19] Production.INFO: ProcessCDR(1,14722274,1,1,2) [2025-03-20 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722274', 'tblTempUsageDetail_20' ) start [2025-03-20 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722274', 'tblTempUsageDetail_20' ) end [2025-03-20 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:37:24] Production.INFO: ==13288== Releasing lock... [2025-03-20 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:37:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:38:06 [end_date_ymd] => 2025-03-20 10:38:06 [RateCDR] => 1 ) [2025-03-20 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:38:06' and `end` < '2025-03-20 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:38:18] Production.INFO: count ==2953 [2025-03-20 10:38:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:38:06 - End Time 2025-03-20 10:38:06 [2025-03-20 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722279', 'tblTempUsageDetail_20' ) start [2025-03-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722279', 'tblTempUsageDetail_20' ) end [2025-03-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722279', 'tblTempVendorCDR_20' ) start [2025-03-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722279', 'tblTempVendorCDR_20' ) end [2025-03-20 10:38:20] Production.INFO: ProcessCDR(1,14722279,1,1,2) [2025-03-20 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722279', 'tblTempUsageDetail_20' ) start [2025-03-20 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722279', 'tblTempUsageDetail_20' ) end [2025-03-20 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:38:25] Production.INFO: ==13408== Releasing lock... [2025-03-20 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:38:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-20 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:39:05 [end_date_ymd] => 2025-03-20 10:39:05 [RateCDR] => 1 ) [2025-03-20 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:39:05' and `end` < '2025-03-20 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:39:18] Production.INFO: count ==2954 [2025-03-20 10:39:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:39:05 - End Time 2025-03-20 10:39:05 [2025-03-20 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722284', 'tblTempUsageDetail_20' ) start [2025-03-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722284', 'tblTempUsageDetail_20' ) end [2025-03-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722284', 'tblTempVendorCDR_20' ) start [2025-03-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722284', 'tblTempVendorCDR_20' ) end [2025-03-20 10:39:19] Production.INFO: ProcessCDR(1,14722284,1,1,2) [2025-03-20 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722284', 'tblTempUsageDetail_20' ) start [2025-03-20 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722284', 'tblTempUsageDetail_20' ) end [2025-03-20 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:39:24] Production.INFO: ==13518== Releasing lock... [2025-03-20 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:39:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-20 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:40:06 [end_date_ymd] => 2025-03-20 10:40:06 [RateCDR] => 1 ) [2025-03-20 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:40:06' and `end` < '2025-03-20 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:40:19] Production.INFO: count ==2967 [2025-03-20 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:40:06 - End Time 2025-03-20 10:40:06 [2025-03-20 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722290', 'tblTempUsageDetail_20' ) start [2025-03-20 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722290', 'tblTempUsageDetail_20' ) end [2025-03-20 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722290', 'tblTempVendorCDR_20' ) start [2025-03-20 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722290', 'tblTempVendorCDR_20' ) end [2025-03-20 10:40:20] Production.INFO: ProcessCDR(1,14722290,1,1,2) [2025-03-20 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722290', 'tblTempUsageDetail_20' ) start [2025-03-20 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722290', 'tblTempUsageDetail_20' ) end [2025-03-20 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:40:25] Production.INFO: ==13632== Releasing lock... [2025-03-20 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:40:25] Production.INFO: 50 MB #Memory Used# [2025-03-20 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:41:04 [end_date_ymd] => 2025-03-20 10:41:04 [RateCDR] => 1 ) [2025-03-20 10:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:41:04' and `end` < '2025-03-20 10:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:41:17] Production.INFO: count ==3043 [2025-03-20 10:41:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:41:04 - End Time 2025-03-20 10:41:04 [2025-03-20 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722295', 'tblTempUsageDetail_20' ) start [2025-03-20 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722295', 'tblTempUsageDetail_20' ) end [2025-03-20 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722295', 'tblTempVendorCDR_20' ) start [2025-03-20 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722295', 'tblTempVendorCDR_20' ) end [2025-03-20 10:41:19] Production.INFO: ProcessCDR(1,14722295,1,1,2) [2025-03-20 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722295', 'tblTempUsageDetail_20' ) start [2025-03-20 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722295', 'tblTempUsageDetail_20' ) end [2025-03-20 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:41:24] Production.INFO: ==13734== Releasing lock... [2025-03-20 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:41:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-20 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:42:05 [end_date_ymd] => 2025-03-20 10:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:42:18] Production.INFO: count ==3047 [2025-03-20 10:42:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:42:05 - End Time 2025-03-20 10:42:05 [2025-03-20 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722300', 'tblTempUsageDetail_20' ) start [2025-03-20 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722300', 'tblTempUsageDetail_20' ) end [2025-03-20 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722300', 'tblTempVendorCDR_20' ) start [2025-03-20 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722300', 'tblTempVendorCDR_20' ) end [2025-03-20 10:42:19] Production.INFO: ProcessCDR(1,14722300,1,1,2) [2025-03-20 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722300', 'tblTempUsageDetail_20' ) start [2025-03-20 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722300', 'tblTempUsageDetail_20' ) end [2025-03-20 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:42:25] Production.INFO: ==13831== Releasing lock... [2025-03-20 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:42:25] Production.INFO: 51 MB #Memory Used# [2025-03-20 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:43:05 [end_date_ymd] => 2025-03-20 10:43:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:43:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:43:18] Production.INFO: count ==3060 [2025-03-20 10:43:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:43:05 - End Time 2025-03-20 10:43:05 [2025-03-20 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722305', 'tblTempUsageDetail_20' ) start [2025-03-20 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722305', 'tblTempUsageDetail_20' ) end [2025-03-20 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722305', 'tblTempVendorCDR_20' ) start [2025-03-20 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722305', 'tblTempVendorCDR_20' ) end [2025-03-20 10:43:19] Production.INFO: ProcessCDR(1,14722305,1,1,2) [2025-03-20 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722305', 'tblTempUsageDetail_20' ) start [2025-03-20 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722305', 'tblTempUsageDetail_20' ) end [2025-03-20 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:43:25] Production.INFO: ==13930== Releasing lock... [2025-03-20 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:43:25] Production.INFO: 51 MB #Memory Used# [2025-03-20 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:44:05 [end_date_ymd] => 2025-03-20 10:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:44:18] Production.INFO: count ==3076 [2025-03-20 10:44:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:44:05 - End Time 2025-03-20 10:44:05 [2025-03-20 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722310', 'tblTempUsageDetail_20' ) start [2025-03-20 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722310', 'tblTempUsageDetail_20' ) end [2025-03-20 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722310', 'tblTempVendorCDR_20' ) start [2025-03-20 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722310', 'tblTempVendorCDR_20' ) end [2025-03-20 10:44:19] Production.INFO: ProcessCDR(1,14722310,1,1,2) [2025-03-20 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722310', 'tblTempUsageDetail_20' ) start [2025-03-20 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722310', 'tblTempUsageDetail_20' ) end [2025-03-20 10:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:44:24] Production.INFO: ==14032== Releasing lock... [2025-03-20 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:44:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-20 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:45:05 [end_date_ymd] => 2025-03-20 10:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:45:18] Production.INFO: count ==3075 [2025-03-20 10:45:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:45:05 - End Time 2025-03-20 10:45:05 [2025-03-20 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722315', 'tblTempUsageDetail_20' ) start [2025-03-20 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722315', 'tblTempUsageDetail_20' ) end [2025-03-20 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722315', 'tblTempVendorCDR_20' ) start [2025-03-20 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722315', 'tblTempVendorCDR_20' ) end [2025-03-20 10:45:19] Production.INFO: ProcessCDR(1,14722315,1,1,2) [2025-03-20 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722315', 'tblTempUsageDetail_20' ) start [2025-03-20 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722315', 'tblTempUsageDetail_20' ) end [2025-03-20 10:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:45:24] Production.INFO: ==14130== Releasing lock... [2025-03-20 10:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:45:24] Production.INFO: 52 MB #Memory Used# [2025-03-20 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:46:05 [end_date_ymd] => 2025-03-20 10:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:46:18] Production.INFO: count ==3084 [2025-03-20 10:46:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:46:05 - End Time 2025-03-20 10:46:05 [2025-03-20 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722320', 'tblTempUsageDetail_20' ) start [2025-03-20 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722320', 'tblTempUsageDetail_20' ) end [2025-03-20 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722320', 'tblTempVendorCDR_20' ) start [2025-03-20 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722320', 'tblTempVendorCDR_20' ) end [2025-03-20 10:46:19] Production.INFO: ProcessCDR(1,14722320,1,1,2) [2025-03-20 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722320', 'tblTempUsageDetail_20' ) start [2025-03-20 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722320', 'tblTempUsageDetail_20' ) end [2025-03-20 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:46:24] Production.INFO: ==14259== Releasing lock... [2025-03-20 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:46:24] Production.INFO: 51 MB #Memory Used# [2025-03-20 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:47:05 [end_date_ymd] => 2025-03-20 10:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:47:18] Production.INFO: count ==3093 [2025-03-20 10:47:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:47:05 - End Time 2025-03-20 10:47:05 [2025-03-20 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722325', 'tblTempUsageDetail_20' ) start [2025-03-20 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722325', 'tblTempUsageDetail_20' ) end [2025-03-20 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722325', 'tblTempVendorCDR_20' ) start [2025-03-20 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722325', 'tblTempVendorCDR_20' ) end [2025-03-20 10:47:19] Production.INFO: ProcessCDR(1,14722325,1,1,2) [2025-03-20 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722325', 'tblTempUsageDetail_20' ) start [2025-03-20 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722325', 'tblTempUsageDetail_20' ) end [2025-03-20 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:47:23] Production.INFO: ==14340== Releasing lock... [2025-03-20 10:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:47:23] Production.INFO: 52 MB #Memory Used# [2025-03-20 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:48:05 [end_date_ymd] => 2025-03-20 10:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:48:18] Production.INFO: count ==3122 [2025-03-20 10:48:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:48:05 - End Time 2025-03-20 10:48:05 [2025-03-20 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722330', 'tblTempUsageDetail_20' ) start [2025-03-20 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722330', 'tblTempUsageDetail_20' ) end [2025-03-20 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722330', 'tblTempVendorCDR_20' ) start [2025-03-20 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722330', 'tblTempVendorCDR_20' ) end [2025-03-20 10:48:19] Production.INFO: ProcessCDR(1,14722330,1,1,2) [2025-03-20 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722330', 'tblTempUsageDetail_20' ) start [2025-03-20 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722330', 'tblTempUsageDetail_20' ) end [2025-03-20 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:48:25] Production.INFO: ==14445== Releasing lock... [2025-03-20 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:48:25] Production.INFO: 52 MB #Memory Used# [2025-03-20 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:49:05 [end_date_ymd] => 2025-03-20 10:49:05 [RateCDR] => 1 ) [2025-03-20 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:49:05' and `end` < '2025-03-20 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:49:18] Production.INFO: count ==3131 [2025-03-20 10:49:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:49:05 - End Time 2025-03-20 10:49:05 [2025-03-20 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722335', 'tblTempUsageDetail_20' ) start [2025-03-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722335', 'tblTempUsageDetail_20' ) end [2025-03-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722335', 'tblTempVendorCDR_20' ) start [2025-03-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722335', 'tblTempVendorCDR_20' ) end [2025-03-20 10:49:19] Production.INFO: ProcessCDR(1,14722335,1,1,2) [2025-03-20 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722335', 'tblTempUsageDetail_20' ) start [2025-03-20 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722335', 'tblTempUsageDetail_20' ) end [2025-03-20 10:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:49:24] Production.INFO: ==14540== Releasing lock... [2025-03-20 10:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:49:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-20 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:50:06 [end_date_ymd] => 2025-03-20 10:50:06 [RateCDR] => 1 ) [2025-03-20 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:50:06' and `end` < '2025-03-20 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:50:19] Production.INFO: count ==3158 [2025-03-20 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:50:06 - End Time 2025-03-20 10:50:06 [2025-03-20 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722341', 'tblTempUsageDetail_20' ) start [2025-03-20 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722341', 'tblTempUsageDetail_20' ) end [2025-03-20 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722341', 'tblTempVendorCDR_20' ) start [2025-03-20 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722341', 'tblTempVendorCDR_20' ) end [2025-03-20 10:50:20] Production.INFO: ProcessCDR(1,14722341,1,1,2) [2025-03-20 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722341', 'tblTempUsageDetail_20' ) start [2025-03-20 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722341', 'tblTempUsageDetail_20' ) end [2025-03-20 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:50:26] Production.INFO: ==14629== Releasing lock... [2025-03-20 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:50:26] Production.INFO: 52.75 MB #Memory Used# [2025-03-20 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:51:05 [end_date_ymd] => 2025-03-20 10:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:51:18] Production.INFO: count ==3232 [2025-03-20 10:51:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:51:05 - End Time 2025-03-20 10:51:05 [2025-03-20 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722346', 'tblTempUsageDetail_20' ) start [2025-03-20 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722346', 'tblTempUsageDetail_20' ) end [2025-03-20 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722346', 'tblTempVendorCDR_20' ) start [2025-03-20 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722346', 'tblTempVendorCDR_20' ) end [2025-03-20 10:51:20] Production.INFO: ProcessCDR(1,14722346,1,1,2) [2025-03-20 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722346', 'tblTempUsageDetail_20' ) start [2025-03-20 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722346', 'tblTempUsageDetail_20' ) end [2025-03-20 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:51:24] Production.INFO: ==14728== Releasing lock... [2025-03-20 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:51:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-20 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:52:06 [end_date_ymd] => 2025-03-20 10:52:06 [RateCDR] => 1 ) [2025-03-20 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:52:06' and `end` < '2025-03-20 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:52:19] Production.INFO: count ==3244 [2025-03-20 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:52:06 - End Time 2025-03-20 10:52:06 [2025-03-20 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722351', 'tblTempUsageDetail_20' ) start [2025-03-20 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722351', 'tblTempUsageDetail_20' ) end [2025-03-20 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722351', 'tblTempVendorCDR_20' ) start [2025-03-20 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722351', 'tblTempVendorCDR_20' ) end [2025-03-20 10:52:20] Production.INFO: ProcessCDR(1,14722351,1,1,2) [2025-03-20 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722351', 'tblTempUsageDetail_20' ) start [2025-03-20 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722351', 'tblTempUsageDetail_20' ) end [2025-03-20 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:52:25] Production.INFO: ==14821== Releasing lock... [2025-03-20 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:52:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-20 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:53:05 [end_date_ymd] => 2025-03-20 10:53:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:53:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:53:17] Production.INFO: count ==3255 [2025-03-20 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:53:05 - End Time 2025-03-20 10:53:05 [2025-03-20 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722356', 'tblTempUsageDetail_20' ) start [2025-03-20 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722356', 'tblTempUsageDetail_20' ) end [2025-03-20 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722356', 'tblTempVendorCDR_20' ) start [2025-03-20 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722356', 'tblTempVendorCDR_20' ) end [2025-03-20 10:53:19] Production.INFO: ProcessCDR(1,14722356,1,1,2) [2025-03-20 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722356', 'tblTempUsageDetail_20' ) start [2025-03-20 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722356', 'tblTempUsageDetail_20' ) end [2025-03-20 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:53:24] Production.INFO: ==14915== Releasing lock... [2025-03-20 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:53:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-20 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:54:05 [end_date_ymd] => 2025-03-20 10:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:54:18] Production.INFO: count ==3268 [2025-03-20 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:54:05 - End Time 2025-03-20 10:54:05 [2025-03-20 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722361', 'tblTempUsageDetail_20' ) start [2025-03-20 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722361', 'tblTempUsageDetail_20' ) end [2025-03-20 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722361', 'tblTempVendorCDR_20' ) start [2025-03-20 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722361', 'tblTempVendorCDR_20' ) end [2025-03-20 10:54:20] Production.INFO: ProcessCDR(1,14722361,1,1,2) [2025-03-20 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722361', 'tblTempUsageDetail_20' ) start [2025-03-20 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722361', 'tblTempUsageDetail_20' ) end [2025-03-20 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:54:26] Production.INFO: ==15013== Releasing lock... [2025-03-20 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:54:26] Production.INFO: 52.25 MB #Memory Used# [2025-03-20 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:55:05 [end_date_ymd] => 2025-03-20 10:55:05 [RateCDR] => 1 ) [2025-03-20 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:55:05' and `end` < '2025-03-20 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:55:18] Production.INFO: count ==3282 [2025-03-20 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:55:05 - End Time 2025-03-20 10:55:05 [2025-03-20 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722366', 'tblTempUsageDetail_20' ) start [2025-03-20 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722366', 'tblTempUsageDetail_20' ) end [2025-03-20 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722366', 'tblTempVendorCDR_20' ) start [2025-03-20 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722366', 'tblTempVendorCDR_20' ) end [2025-03-20 10:55:20] Production.INFO: ProcessCDR(1,14722366,1,1,2) [2025-03-20 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722366', 'tblTempUsageDetail_20' ) start [2025-03-20 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722366', 'tblTempUsageDetail_20' ) end [2025-03-20 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:55:25] Production.INFO: ==15102== Releasing lock... [2025-03-20 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:55:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-20 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:56:05 [end_date_ymd] => 2025-03-20 10:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:56:18] Production.INFO: count ==3293 [2025-03-20 10:56:19] Production.ERROR: pbx CDR StartTime 2025-03-20 07:56:05 - End Time 2025-03-20 10:56:05 [2025-03-20 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722371', 'tblTempUsageDetail_20' ) start [2025-03-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722371', 'tblTempUsageDetail_20' ) end [2025-03-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722371', 'tblTempVendorCDR_20' ) start [2025-03-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722371', 'tblTempVendorCDR_20' ) end [2025-03-20 10:56:19] Production.INFO: ProcessCDR(1,14722371,1,1,2) [2025-03-20 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722371', 'tblTempUsageDetail_20' ) start [2025-03-20 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722371', 'tblTempUsageDetail_20' ) end [2025-03-20 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:56:25] Production.INFO: ==15203== Releasing lock... [2025-03-20 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:56:25] Production.INFO: 53 MB #Memory Used# [2025-03-20 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:57:06 [end_date_ymd] => 2025-03-20 10:57:06 [RateCDR] => 1 ) [2025-03-20 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:57:06' and `end` < '2025-03-20 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:57:19] Production.INFO: count ==3305 [2025-03-20 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:57:06 - End Time 2025-03-20 10:57:06 [2025-03-20 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722376', 'tblTempUsageDetail_20' ) start [2025-03-20 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722376', 'tblTempUsageDetail_20' ) end [2025-03-20 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722376', 'tblTempVendorCDR_20' ) start [2025-03-20 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722376', 'tblTempVendorCDR_20' ) end [2025-03-20 10:57:20] Production.INFO: ProcessCDR(1,14722376,1,1,2) [2025-03-20 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722376', 'tblTempUsageDetail_20' ) start [2025-03-20 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722376', 'tblTempUsageDetail_20' ) end [2025-03-20 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:57:25] Production.INFO: ==15289== Releasing lock... [2025-03-20 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:57:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-20 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:58:05 [end_date_ymd] => 2025-03-20 10:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 07:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 10:58:18] Production.INFO: count ==3335 [2025-03-20 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:58:05 - End Time 2025-03-20 10:58:05 [2025-03-20 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722381', 'tblTempUsageDetail_20' ) start [2025-03-20 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722381', 'tblTempUsageDetail_20' ) end [2025-03-20 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722381', 'tblTempVendorCDR_20' ) start [2025-03-20 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722381', 'tblTempVendorCDR_20' ) end [2025-03-20 10:58:20] Production.INFO: ProcessCDR(1,14722381,1,1,2) [2025-03-20 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722381', 'tblTempUsageDetail_20' ) start [2025-03-20 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722381', 'tblTempUsageDetail_20' ) end [2025-03-20 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:58:26] Production.INFO: ==15383== Releasing lock... [2025-03-20 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:58:26] Production.INFO: 53 MB #Memory Used# [2025-03-20 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 07:59:06 [end_date_ymd] => 2025-03-20 10:59:06 [RateCDR] => 1 ) [2025-03-20 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 07:59:06' and `end` < '2025-03-20 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 10:59:19] Production.INFO: count ==3331 [2025-03-20 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-20 07:59:06 - End Time 2025-03-20 10:59:06 [2025-03-20 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722385', 'tblTempUsageDetail_20' ) start [2025-03-20 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722385', 'tblTempUsageDetail_20' ) end [2025-03-20 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722385', 'tblTempVendorCDR_20' ) start [2025-03-20 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722385', 'tblTempVendorCDR_20' ) end [2025-03-20 10:59:20] Production.INFO: ProcessCDR(1,14722385,1,1,2) [2025-03-20 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722385', 'tblTempUsageDetail_20' ) start [2025-03-20 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722385', 'tblTempUsageDetail_20' ) end [2025-03-20 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 10:59:24] Production.INFO: ==15472== Releasing lock... [2025-03-20 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 10:59:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-20 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:00:07 [end_date_ymd] => 2025-03-20 11:00:07 [RateCDR] => 1 ) [2025-03-20 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:00:07' and `end` < '2025-03-20 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:00:19] Production.INFO: count ==3333 [2025-03-20 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:00:07 - End Time 2025-03-20 11:00:07 [2025-03-20 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722391', 'tblTempUsageDetail_20' ) start [2025-03-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722391', 'tblTempUsageDetail_20' ) end [2025-03-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722391', 'tblTempVendorCDR_20' ) start [2025-03-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722391', 'tblTempVendorCDR_20' ) end [2025-03-20 11:00:21] Production.INFO: ProcessCDR(1,14722391,1,1,2) [2025-03-20 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722391', 'tblTempUsageDetail_20' ) start [2025-03-20 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722391', 'tblTempUsageDetail_20' ) end [2025-03-20 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:00:25] Production.INFO: ==15565== Releasing lock... [2025-03-20 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:00:25] Production.INFO: 54 MB #Memory Used# [2025-03-20 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:01:05 [end_date_ymd] => 2025-03-20 11:01:05 [RateCDR] => 1 ) [2025-03-20 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:01:05' and `end` < '2025-03-20 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:01:18] Production.INFO: count ==3410 [2025-03-20 11:01:19] Production.ERROR: pbx CDR StartTime 2025-03-20 08:01:05 - End Time 2025-03-20 11:01:05 [2025-03-20 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722397', 'tblTempUsageDetail_20' ) start [2025-03-20 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722397', 'tblTempUsageDetail_20' ) end [2025-03-20 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722397', 'tblTempVendorCDR_20' ) start [2025-03-20 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722397', 'tblTempVendorCDR_20' ) end [2025-03-20 11:01:19] Production.INFO: ProcessCDR(1,14722397,1,1,2) [2025-03-20 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722397', 'tblTempUsageDetail_20' ) start [2025-03-20 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722397', 'tblTempUsageDetail_20' ) end [2025-03-20 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:01:25] Production.INFO: ==15752== Releasing lock... [2025-03-20 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:01:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-20 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:02:05 [end_date_ymd] => 2025-03-20 11:02:05 [RateCDR] => 1 ) [2025-03-20 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:02:05' and `end` < '2025-03-20 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:02:18] Production.INFO: count ==3449 [2025-03-20 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:02:05 - End Time 2025-03-20 11:02:05 [2025-03-20 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722402', 'tblTempUsageDetail_20' ) start [2025-03-20 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722402', 'tblTempUsageDetail_20' ) end [2025-03-20 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722402', 'tblTempVendorCDR_20' ) start [2025-03-20 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722402', 'tblTempVendorCDR_20' ) end [2025-03-20 11:02:20] Production.INFO: ProcessCDR(1,14722402,1,1,2) [2025-03-20 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722402', 'tblTempUsageDetail_20' ) start [2025-03-20 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722402', 'tblTempUsageDetail_20' ) end [2025-03-20 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:02:26] Production.INFO: ==15883== Releasing lock... [2025-03-20 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:02:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-20 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:03:05 [end_date_ymd] => 2025-03-20 11:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:03:19] Production.INFO: count ==3485 [2025-03-20 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:03:05 - End Time 2025-03-20 11:03:05 [2025-03-20 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722407', 'tblTempUsageDetail_20' ) start [2025-03-20 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722407', 'tblTempUsageDetail_20' ) end [2025-03-20 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722407', 'tblTempVendorCDR_20' ) start [2025-03-20 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722407', 'tblTempVendorCDR_20' ) end [2025-03-20 11:03:20] Production.INFO: ProcessCDR(1,14722407,1,1,2) [2025-03-20 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722407', 'tblTempUsageDetail_20' ) start [2025-03-20 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722407', 'tblTempUsageDetail_20' ) end [2025-03-20 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:03:26] Production.INFO: ==15970== Releasing lock... [2025-03-20 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:03:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-20 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:04:05 [end_date_ymd] => 2025-03-20 11:04:05 [RateCDR] => 1 ) [2025-03-20 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:04:05' and `end` < '2025-03-20 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:04:18] Production.INFO: count ==3513 [2025-03-20 11:04:19] Production.ERROR: pbx CDR StartTime 2025-03-20 08:04:05 - End Time 2025-03-20 11:04:05 [2025-03-20 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722412', 'tblTempUsageDetail_20' ) start [2025-03-20 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722412', 'tblTempUsageDetail_20' ) end [2025-03-20 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722412', 'tblTempVendorCDR_20' ) start [2025-03-20 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722412', 'tblTempVendorCDR_20' ) end [2025-03-20 11:04:20] Production.INFO: ProcessCDR(1,14722412,1,1,2) [2025-03-20 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722412', 'tblTempUsageDetail_20' ) start [2025-03-20 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722412', 'tblTempUsageDetail_20' ) end [2025-03-20 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:04:25] Production.INFO: ==16066== Releasing lock... [2025-03-20 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:04:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-20 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:05:06 [end_date_ymd] => 2025-03-20 11:05:06 [RateCDR] => 1 ) [2025-03-20 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:05:06' and `end` < '2025-03-20 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:05:19] Production.INFO: count ==3547 [2025-03-20 11:05:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:05:06 - End Time 2025-03-20 11:05:06 [2025-03-20 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722417', 'tblTempUsageDetail_20' ) start [2025-03-20 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722417', 'tblTempUsageDetail_20' ) end [2025-03-20 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722417', 'tblTempVendorCDR_20' ) start [2025-03-20 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722417', 'tblTempVendorCDR_20' ) end [2025-03-20 11:05:20] Production.INFO: ProcessCDR(1,14722417,1,1,2) [2025-03-20 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722417', 'tblTempUsageDetail_20' ) start [2025-03-20 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722417', 'tblTempUsageDetail_20' ) end [2025-03-20 11:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:05:25] Production.INFO: ==16243== Releasing lock... [2025-03-20 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:05:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-20 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:06:05 [end_date_ymd] => 2025-03-20 11:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:06:18] Production.INFO: count ==3570 [2025-03-20 11:06:19] Production.ERROR: pbx CDR StartTime 2025-03-20 08:06:05 - End Time 2025-03-20 11:06:05 [2025-03-20 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722422', 'tblTempUsageDetail_20' ) start [2025-03-20 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722422', 'tblTempUsageDetail_20' ) end [2025-03-20 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722422', 'tblTempVendorCDR_20' ) start [2025-03-20 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722422', 'tblTempVendorCDR_20' ) end [2025-03-20 11:06:19] Production.INFO: ProcessCDR(1,14722422,1,1,2) [2025-03-20 11:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722422', 'tblTempUsageDetail_20' ) start [2025-03-20 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722422', 'tblTempUsageDetail_20' ) end [2025-03-20 11:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:06:24] Production.INFO: ==16333== Releasing lock... [2025-03-20 11:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:06:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-20 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:07:06 [end_date_ymd] => 2025-03-20 11:07:06 [RateCDR] => 1 ) [2025-03-20 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:07:06' and `end` < '2025-03-20 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:07:19] Production.INFO: count ==3607 [2025-03-20 11:07:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:07:06 - End Time 2025-03-20 11:07:06 [2025-03-20 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722427', 'tblTempUsageDetail_20' ) start [2025-03-20 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722427', 'tblTempUsageDetail_20' ) end [2025-03-20 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722427', 'tblTempVendorCDR_20' ) start [2025-03-20 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722427', 'tblTempVendorCDR_20' ) end [2025-03-20 11:07:20] Production.INFO: ProcessCDR(1,14722427,1,1,2) [2025-03-20 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722427', 'tblTempUsageDetail_20' ) start [2025-03-20 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722427', 'tblTempUsageDetail_20' ) end [2025-03-20 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:07:26] Production.INFO: ==16424== Releasing lock... [2025-03-20 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:07:26] Production.INFO: 55 MB #Memory Used# [2025-03-20 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:08:05 [end_date_ymd] => 2025-03-20 11:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:08:18] Production.INFO: count ==3623 [2025-03-20 11:08:19] Production.ERROR: pbx CDR StartTime 2025-03-20 08:08:05 - End Time 2025-03-20 11:08:05 [2025-03-20 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722432', 'tblTempUsageDetail_20' ) start [2025-03-20 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722432', 'tblTempUsageDetail_20' ) end [2025-03-20 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722432', 'tblTempVendorCDR_20' ) start [2025-03-20 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722432', 'tblTempVendorCDR_20' ) end [2025-03-20 11:08:20] Production.INFO: ProcessCDR(1,14722432,1,1,2) [2025-03-20 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722432', 'tblTempUsageDetail_20' ) start [2025-03-20 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722432', 'tblTempUsageDetail_20' ) end [2025-03-20 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:08:25] Production.INFO: ==16594== Releasing lock... [2025-03-20 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:08:25] Production.INFO: 55 MB #Memory Used# [2025-03-20 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:09:06 [end_date_ymd] => 2025-03-20 11:09:06 [RateCDR] => 1 ) [2025-03-20 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:09:06' and `end` < '2025-03-20 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:09:19] Production.INFO: count ==3639 [2025-03-20 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:09:06 - End Time 2025-03-20 11:09:06 [2025-03-20 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722437', 'tblTempUsageDetail_20' ) start [2025-03-20 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722437', 'tblTempUsageDetail_20' ) end [2025-03-20 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722437', 'tblTempVendorCDR_20' ) start [2025-03-20 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722437', 'tblTempVendorCDR_20' ) end [2025-03-20 11:09:20] Production.INFO: ProcessCDR(1,14722437,1,1,2) [2025-03-20 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722437', 'tblTempUsageDetail_20' ) start [2025-03-20 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722437', 'tblTempUsageDetail_20' ) end [2025-03-20 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:09:26] Production.INFO: ==16696== Releasing lock... [2025-03-20 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:09:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-20 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:10:05 [end_date_ymd] => 2025-03-20 11:10:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:10:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:10:19] Production.INFO: count ==3652 [2025-03-20 11:10:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:10:05 - End Time 2025-03-20 11:10:05 [2025-03-20 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722443', 'tblTempUsageDetail_20' ) start [2025-03-20 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722443', 'tblTempUsageDetail_20' ) end [2025-03-20 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722443', 'tblTempVendorCDR_20' ) start [2025-03-20 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722443', 'tblTempVendorCDR_20' ) end [2025-03-20 11:10:20] Production.INFO: ProcessCDR(1,14722443,1,1,2) [2025-03-20 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722443', 'tblTempUsageDetail_20' ) start [2025-03-20 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722443', 'tblTempUsageDetail_20' ) end [2025-03-20 11:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:10:24] Production.INFO: ==16780== Releasing lock... [2025-03-20 11:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:10:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-20 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:11:06 [end_date_ymd] => 2025-03-20 11:11:06 [RateCDR] => 1 ) [2025-03-20 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:11:06' and `end` < '2025-03-20 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:11:19] Production.INFO: count ==3811 [2025-03-20 11:11:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:11:06 - End Time 2025-03-20 11:11:06 [2025-03-20 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722448', 'tblTempUsageDetail_20' ) start [2025-03-20 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722448', 'tblTempUsageDetail_20' ) end [2025-03-20 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722448', 'tblTempVendorCDR_20' ) start [2025-03-20 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722448', 'tblTempVendorCDR_20' ) end [2025-03-20 11:11:21] Production.INFO: ProcessCDR(1,14722448,1,1,2) [2025-03-20 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722448', 'tblTempUsageDetail_20' ) start [2025-03-20 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722448', 'tblTempUsageDetail_20' ) end [2025-03-20 11:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:11:27] Production.INFO: ==16877== Releasing lock... [2025-03-20 11:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:11:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-20 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:12:05 [end_date_ymd] => 2025-03-20 11:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:12:18] Production.INFO: count ==3899 [2025-03-20 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:12:05 - End Time 2025-03-20 11:12:05 [2025-03-20 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722453', 'tblTempUsageDetail_20' ) start [2025-03-20 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722453', 'tblTempUsageDetail_20' ) end [2025-03-20 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722453', 'tblTempVendorCDR_20' ) start [2025-03-20 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722453', 'tblTempVendorCDR_20' ) end [2025-03-20 11:12:21] Production.INFO: ProcessCDR(1,14722453,1,1,2) [2025-03-20 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722453', 'tblTempUsageDetail_20' ) start [2025-03-20 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722453', 'tblTempUsageDetail_20' ) end [2025-03-20 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:12:26] Production.INFO: ==17043== Releasing lock... [2025-03-20 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:12:26] Production.INFO: 57 MB #Memory Used# [2025-03-20 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:13:05 [end_date_ymd] => 2025-03-20 11:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:13:19] Production.INFO: count ==3921 [2025-03-20 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:13:05 - End Time 2025-03-20 11:13:05 [2025-03-20 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722458', 'tblTempUsageDetail_20' ) start [2025-03-20 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722458', 'tblTempUsageDetail_20' ) end [2025-03-20 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722458', 'tblTempVendorCDR_20' ) start [2025-03-20 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722458', 'tblTempVendorCDR_20' ) end [2025-03-20 11:13:20] Production.INFO: ProcessCDR(1,14722458,1,1,2) [2025-03-20 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722458', 'tblTempUsageDetail_20' ) start [2025-03-20 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722458', 'tblTempUsageDetail_20' ) end [2025-03-20 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:13:25] Production.INFO: ==17134== Releasing lock... [2025-03-20 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:13:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-20 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:14:05 [end_date_ymd] => 2025-03-20 11:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:14:18] Production.INFO: count ==3947 [2025-03-20 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:14:05 - End Time 2025-03-20 11:14:05 [2025-03-20 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722463', 'tblTempUsageDetail_20' ) start [2025-03-20 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722463', 'tblTempUsageDetail_20' ) end [2025-03-20 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722463', 'tblTempVendorCDR_20' ) start [2025-03-20 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722463', 'tblTempVendorCDR_20' ) end [2025-03-20 11:14:20] Production.INFO: ProcessCDR(1,14722463,1,1,2) [2025-03-20 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722463', 'tblTempUsageDetail_20' ) start [2025-03-20 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722463', 'tblTempUsageDetail_20' ) end [2025-03-20 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:14:26] Production.INFO: ==17230== Releasing lock... [2025-03-20 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:14:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-20 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:15:06 [end_date_ymd] => 2025-03-20 11:15:06 [RateCDR] => 1 ) [2025-03-20 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:15:06' and `end` < '2025-03-20 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:15:19] Production.INFO: count ==3960 [2025-03-20 11:15:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:15:06 - End Time 2025-03-20 11:15:06 [2025-03-20 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722468', 'tblTempUsageDetail_20' ) start [2025-03-20 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722468', 'tblTempUsageDetail_20' ) end [2025-03-20 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722468', 'tblTempVendorCDR_20' ) start [2025-03-20 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722468', 'tblTempVendorCDR_20' ) end [2025-03-20 11:15:21] Production.INFO: ProcessCDR(1,14722468,1,1,2) [2025-03-20 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722468', 'tblTempUsageDetail_20' ) start [2025-03-20 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722468', 'tblTempUsageDetail_20' ) end [2025-03-20 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:15:25] Production.INFO: ==17402== Releasing lock... [2025-03-20 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:15:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-20 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:16:05 [end_date_ymd] => 2025-03-20 11:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:16:19] Production.INFO: count ==4041 [2025-03-20 11:16:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:16:05 - End Time 2025-03-20 11:16:05 [2025-03-20 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722473', 'tblTempUsageDetail_20' ) start [2025-03-20 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722473', 'tblTempUsageDetail_20' ) end [2025-03-20 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722473', 'tblTempVendorCDR_20' ) start [2025-03-20 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722473', 'tblTempVendorCDR_20' ) end [2025-03-20 11:16:21] Production.INFO: ProcessCDR(1,14722473,1,1,2) [2025-03-20 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722473', 'tblTempUsageDetail_20' ) start [2025-03-20 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722473', 'tblTempUsageDetail_20' ) end [2025-03-20 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:16:26] Production.INFO: ==17483== Releasing lock... [2025-03-20 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:16:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-20 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:17:06 [end_date_ymd] => 2025-03-20 11:17:06 [RateCDR] => 1 ) [2025-03-20 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:17:06' and `end` < '2025-03-20 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:17:19] Production.INFO: count ==4040 [2025-03-20 11:17:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:17:06 - End Time 2025-03-20 11:17:06 [2025-03-20 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722478', 'tblTempUsageDetail_20' ) start [2025-03-20 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722478', 'tblTempUsageDetail_20' ) end [2025-03-20 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722478', 'tblTempVendorCDR_20' ) start [2025-03-20 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722478', 'tblTempVendorCDR_20' ) end [2025-03-20 11:17:21] Production.INFO: ProcessCDR(1,14722478,1,1,2) [2025-03-20 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722478', 'tblTempUsageDetail_20' ) start [2025-03-20 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722478', 'tblTempUsageDetail_20' ) end [2025-03-20 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:17:25] Production.INFO: ==17620== Releasing lock... [2025-03-20 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:17:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-20 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:18:05 [end_date_ymd] => 2025-03-20 11:18:05 [RateCDR] => 1 ) [2025-03-20 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:18:05' and `end` < '2025-03-20 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:18:18] Production.INFO: count ==4036 [2025-03-20 11:18:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:18:05 - End Time 2025-03-20 11:18:05 [2025-03-20 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722483', 'tblTempUsageDetail_20' ) start [2025-03-20 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722483', 'tblTempUsageDetail_20' ) end [2025-03-20 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722483', 'tblTempVendorCDR_20' ) start [2025-03-20 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722483', 'tblTempVendorCDR_20' ) end [2025-03-20 11:18:20] Production.INFO: ProcessCDR(1,14722483,1,1,2) [2025-03-20 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722483', 'tblTempUsageDetail_20' ) start [2025-03-20 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722483', 'tblTempUsageDetail_20' ) end [2025-03-20 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:18:25] Production.INFO: ==17709== Releasing lock... [2025-03-20 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:18:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-20 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:19:05 [end_date_ymd] => 2025-03-20 11:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:19:20] Production.INFO: count ==4049 [2025-03-20 11:19:22] Production.ERROR: pbx CDR StartTime 2025-03-20 08:19:05 - End Time 2025-03-20 11:19:05 [2025-03-20 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722488', 'tblTempUsageDetail_20' ) start [2025-03-20 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722488', 'tblTempUsageDetail_20' ) end [2025-03-20 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722488', 'tblTempVendorCDR_20' ) start [2025-03-20 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722488', 'tblTempVendorCDR_20' ) end [2025-03-20 11:19:22] Production.INFO: ProcessCDR(1,14722488,1,1,2) [2025-03-20 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722488', 'tblTempUsageDetail_20' ) start [2025-03-20 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722488', 'tblTempUsageDetail_20' ) end [2025-03-20 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:19:28] Production.INFO: ==17801== Releasing lock... [2025-03-20 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:19:28] Production.INFO: 58.25 MB #Memory Used# [2025-03-20 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:20:06 [end_date_ymd] => 2025-03-20 11:20:06 [RateCDR] => 1 ) [2025-03-20 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:20:06' and `end` < '2025-03-20 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:20:19] Production.INFO: count ==4087 [2025-03-20 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:20:06 - End Time 2025-03-20 11:20:06 [2025-03-20 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722494', 'tblTempUsageDetail_20' ) start [2025-03-20 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722494', 'tblTempUsageDetail_20' ) end [2025-03-20 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722494', 'tblTempVendorCDR_20' ) start [2025-03-20 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722494', 'tblTempVendorCDR_20' ) end [2025-03-20 11:20:21] Production.INFO: ProcessCDR(1,14722494,1,1,2) [2025-03-20 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722494', 'tblTempUsageDetail_20' ) start [2025-03-20 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722494', 'tblTempUsageDetail_20' ) end [2025-03-20 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:20:26] Production.INFO: ==17894== Releasing lock... [2025-03-20 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:20:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-20 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:21:06 [end_date_ymd] => 2025-03-20 11:21:06 [RateCDR] => 1 ) [2025-03-20 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:21:06' and `end` < '2025-03-20 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:21:19] Production.INFO: count ==4172 [2025-03-20 11:21:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:21:06 - End Time 2025-03-20 11:21:06 [2025-03-20 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722499', 'tblTempUsageDetail_20' ) start [2025-03-20 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722499', 'tblTempUsageDetail_20' ) end [2025-03-20 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722499', 'tblTempVendorCDR_20' ) start [2025-03-20 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722499', 'tblTempVendorCDR_20' ) end [2025-03-20 11:21:21] Production.INFO: ProcessCDR(1,14722499,1,1,2) [2025-03-20 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722499', 'tblTempUsageDetail_20' ) start [2025-03-20 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722499', 'tblTempUsageDetail_20' ) end [2025-03-20 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:21:26] Production.INFO: ==17990== Releasing lock... [2025-03-20 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:21:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-20 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:22:06 [end_date_ymd] => 2025-03-20 11:22:06 [RateCDR] => 1 ) [2025-03-20 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:22:06' and `end` < '2025-03-20 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:22:19] Production.INFO: count ==4175 [2025-03-20 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:22:06 - End Time 2025-03-20 11:22:06 [2025-03-20 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722504', 'tblTempUsageDetail_20' ) start [2025-03-20 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722504', 'tblTempUsageDetail_20' ) end [2025-03-20 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722504', 'tblTempVendorCDR_20' ) start [2025-03-20 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722504', 'tblTempVendorCDR_20' ) end [2025-03-20 11:22:21] Production.INFO: ProcessCDR(1,14722504,1,1,2) [2025-03-20 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722504', 'tblTempUsageDetail_20' ) start [2025-03-20 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722504', 'tblTempUsageDetail_20' ) end [2025-03-20 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:22:26] Production.INFO: ==18073== Releasing lock... [2025-03-20 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:22:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-20 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:23:06 [end_date_ymd] => 2025-03-20 11:23:06 [RateCDR] => 1 ) [2025-03-20 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:23:06' and `end` < '2025-03-20 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:23:19] Production.INFO: count ==4195 [2025-03-20 11:23:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:23:06 - End Time 2025-03-20 11:23:06 [2025-03-20 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722509', 'tblTempUsageDetail_20' ) start [2025-03-20 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722509', 'tblTempUsageDetail_20' ) end [2025-03-20 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722509', 'tblTempVendorCDR_20' ) start [2025-03-20 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722509', 'tblTempVendorCDR_20' ) end [2025-03-20 11:23:21] Production.INFO: ProcessCDR(1,14722509,1,1,2) [2025-03-20 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722509', 'tblTempUsageDetail_20' ) start [2025-03-20 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722509', 'tblTempUsageDetail_20' ) end [2025-03-20 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:23:27] Production.INFO: ==18159== Releasing lock... [2025-03-20 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:23:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-20 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:24:06 [end_date_ymd] => 2025-03-20 11:24:06 [RateCDR] => 1 ) [2025-03-20 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:24:06' and `end` < '2025-03-20 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:24:19] Production.INFO: count ==4210 [2025-03-20 11:24:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:24:06 - End Time 2025-03-20 11:24:06 [2025-03-20 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722514', 'tblTempUsageDetail_20' ) start [2025-03-20 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722514', 'tblTempUsageDetail_20' ) end [2025-03-20 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722514', 'tblTempVendorCDR_20' ) start [2025-03-20 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722514', 'tblTempVendorCDR_20' ) end [2025-03-20 11:24:21] Production.INFO: ProcessCDR(1,14722514,1,1,2) [2025-03-20 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722514', 'tblTempUsageDetail_20' ) start [2025-03-20 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722514', 'tblTempUsageDetail_20' ) end [2025-03-20 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:24:26] Production.INFO: ==18255== Releasing lock... [2025-03-20 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:24:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-20 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:25:06 [end_date_ymd] => 2025-03-20 11:25:06 [RateCDR] => 1 ) [2025-03-20 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:25:06' and `end` < '2025-03-20 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:25:19] Production.INFO: count ==4227 [2025-03-20 11:25:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:25:06 - End Time 2025-03-20 11:25:06 [2025-03-20 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722519', 'tblTempUsageDetail_20' ) start [2025-03-20 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722519', 'tblTempUsageDetail_20' ) end [2025-03-20 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722519', 'tblTempVendorCDR_20' ) start [2025-03-20 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722519', 'tblTempVendorCDR_20' ) end [2025-03-20 11:25:21] Production.INFO: ProcessCDR(1,14722519,1,1,2) [2025-03-20 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722519', 'tblTempUsageDetail_20' ) start [2025-03-20 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722519', 'tblTempUsageDetail_20' ) end [2025-03-20 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:25:26] Production.INFO: ==18346== Releasing lock... [2025-03-20 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:25:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-20 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:26:05 [end_date_ymd] => 2025-03-20 11:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:26:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:26:18] Production.INFO: count ==4244 [2025-03-20 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:26:05 - End Time 2025-03-20 11:26:05 [2025-03-20 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722524', 'tblTempUsageDetail_20' ) start [2025-03-20 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722524', 'tblTempUsageDetail_20' ) end [2025-03-20 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722524', 'tblTempVendorCDR_20' ) start [2025-03-20 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722524', 'tblTempVendorCDR_20' ) end [2025-03-20 11:26:20] Production.INFO: ProcessCDR(1,14722524,1,1,2) [2025-03-20 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722524', 'tblTempUsageDetail_20' ) start [2025-03-20 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722524', 'tblTempUsageDetail_20' ) end [2025-03-20 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:26:26] Production.INFO: ==18436== Releasing lock... [2025-03-20 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:26:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-20 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:27:06 [end_date_ymd] => 2025-03-20 11:27:06 [RateCDR] => 1 ) [2025-03-20 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:27:06' and `end` < '2025-03-20 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:27:19] Production.INFO: count ==4263 [2025-03-20 11:27:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:27:06 - End Time 2025-03-20 11:27:06 [2025-03-20 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722529', 'tblTempUsageDetail_20' ) start [2025-03-20 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722529', 'tblTempUsageDetail_20' ) end [2025-03-20 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722529', 'tblTempVendorCDR_20' ) start [2025-03-20 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722529', 'tblTempVendorCDR_20' ) end [2025-03-20 11:27:21] Production.INFO: ProcessCDR(1,14722529,1,1,2) [2025-03-20 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722529', 'tblTempUsageDetail_20' ) start [2025-03-20 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722529', 'tblTempUsageDetail_20' ) end [2025-03-20 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:27:27] Production.INFO: ==18538== Releasing lock... [2025-03-20 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:27:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-20 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:28:05 [end_date_ymd] => 2025-03-20 11:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:28:18] Production.INFO: count ==4305 [2025-03-20 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-20 08:28:05 - End Time 2025-03-20 11:28:05 [2025-03-20 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722534', 'tblTempUsageDetail_20' ) start [2025-03-20 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722534', 'tblTempUsageDetail_20' ) end [2025-03-20 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722534', 'tblTempVendorCDR_20' ) start [2025-03-20 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722534', 'tblTempVendorCDR_20' ) end [2025-03-20 11:28:20] Production.INFO: ProcessCDR(1,14722534,1,1,2) [2025-03-20 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722534', 'tblTempUsageDetail_20' ) start [2025-03-20 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722534', 'tblTempUsageDetail_20' ) end [2025-03-20 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:28:26] Production.INFO: ==18626== Releasing lock... [2025-03-20 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:28:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-20 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:29:06 [end_date_ymd] => 2025-03-20 11:29:06 [RateCDR] => 1 ) [2025-03-20 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:29:06' and `end` < '2025-03-20 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:29:19] Production.INFO: count ==4312 [2025-03-20 11:29:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:29:06 - End Time 2025-03-20 11:29:06 [2025-03-20 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722539', 'tblTempUsageDetail_20' ) start [2025-03-20 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722539', 'tblTempUsageDetail_20' ) end [2025-03-20 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722539', 'tblTempVendorCDR_20' ) start [2025-03-20 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722539', 'tblTempVendorCDR_20' ) end [2025-03-20 11:29:21] Production.INFO: ProcessCDR(1,14722539,1,1,2) [2025-03-20 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722539', 'tblTempUsageDetail_20' ) start [2025-03-20 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722539', 'tblTempUsageDetail_20' ) end [2025-03-20 11:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:29:27] Production.INFO: ==18709== Releasing lock... [2025-03-20 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:29:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-20 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:30:06 [end_date_ymd] => 2025-03-20 11:30:06 [RateCDR] => 1 ) [2025-03-20 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:30:06' and `end` < '2025-03-20 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:30:20] Production.INFO: count ==4354 [2025-03-20 11:30:22] Production.ERROR: pbx CDR StartTime 2025-03-20 08:30:06 - End Time 2025-03-20 11:30:06 [2025-03-20 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722545', 'tblTempUsageDetail_20' ) start [2025-03-20 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722545', 'tblTempUsageDetail_20' ) end [2025-03-20 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722545', 'tblTempVendorCDR_20' ) start [2025-03-20 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722545', 'tblTempVendorCDR_20' ) end [2025-03-20 11:30:22] Production.INFO: ProcessCDR(1,14722545,1,1,2) [2025-03-20 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722545', 'tblTempUsageDetail_20' ) start [2025-03-20 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722545', 'tblTempUsageDetail_20' ) end [2025-03-20 11:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:30:28] Production.INFO: ==18825== Releasing lock... [2025-03-20 11:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:30:28] Production.INFO: 60.5 MB #Memory Used# [2025-03-20 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:31:05 [end_date_ymd] => 2025-03-20 11:31:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:31:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:31:19] Production.INFO: count ==4524 [2025-03-20 11:31:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:31:05 - End Time 2025-03-20 11:31:05 [2025-03-20 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722550', 'tblTempUsageDetail_20' ) start [2025-03-20 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722550', 'tblTempUsageDetail_20' ) end [2025-03-20 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722550', 'tblTempVendorCDR_20' ) start [2025-03-20 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722550', 'tblTempVendorCDR_20' ) end [2025-03-20 11:31:21] Production.INFO: ProcessCDR(1,14722550,1,1,2) [2025-03-20 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722550', 'tblTempUsageDetail_20' ) start [2025-03-20 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722550', 'tblTempUsageDetail_20' ) end [2025-03-20 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:31:27] Production.INFO: ==18913== Releasing lock... [2025-03-20 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:31:27] Production.INFO: 62 MB #Memory Used# [2025-03-20 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:32:06 [end_date_ymd] => 2025-03-20 11:32:06 [RateCDR] => 1 ) [2025-03-20 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:32:06' and `end` < '2025-03-20 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:32:19] Production.INFO: count ==4553 [2025-03-20 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:32:06 - End Time 2025-03-20 11:32:06 [2025-03-20 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722555', 'tblTempUsageDetail_20' ) start [2025-03-20 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722555', 'tblTempUsageDetail_20' ) end [2025-03-20 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722555', 'tblTempVendorCDR_20' ) start [2025-03-20 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722555', 'tblTempVendorCDR_20' ) end [2025-03-20 11:32:21] Production.INFO: ProcessCDR(1,14722555,1,1,2) [2025-03-20 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722555', 'tblTempUsageDetail_20' ) start [2025-03-20 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722555', 'tblTempUsageDetail_20' ) end [2025-03-20 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:32:27] Production.INFO: ==19045== Releasing lock... [2025-03-20 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:32:27] Production.INFO: 62 MB #Memory Used# [2025-03-20 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:33:06 [end_date_ymd] => 2025-03-20 11:33:06 [RateCDR] => 1 ) [2025-03-20 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:33:06' and `end` < '2025-03-20 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:33:19] Production.INFO: count ==4595 [2025-03-20 11:33:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:33:06 - End Time 2025-03-20 11:33:06 [2025-03-20 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722560', 'tblTempUsageDetail_20' ) start [2025-03-20 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722560', 'tblTempUsageDetail_20' ) end [2025-03-20 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722560', 'tblTempVendorCDR_20' ) start [2025-03-20 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722560', 'tblTempVendorCDR_20' ) end [2025-03-20 11:33:21] Production.INFO: ProcessCDR(1,14722560,1,1,2) [2025-03-20 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722560', 'tblTempUsageDetail_20' ) start [2025-03-20 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722560', 'tblTempUsageDetail_20' ) end [2025-03-20 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:33:28] Production.INFO: ==19137== Releasing lock... [2025-03-20 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:33:28] Production.INFO: 62.25 MB #Memory Used# [2025-03-20 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:34:05 [end_date_ymd] => 2025-03-20 11:34:05 [RateCDR] => 1 ) [2025-03-20 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:34:05' and `end` < '2025-03-20 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:34:19] Production.INFO: count ==4619 [2025-03-20 11:34:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:34:05 - End Time 2025-03-20 11:34:05 [2025-03-20 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722565', 'tblTempUsageDetail_20' ) start [2025-03-20 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722565', 'tblTempUsageDetail_20' ) end [2025-03-20 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722565', 'tblTempVendorCDR_20' ) start [2025-03-20 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722565', 'tblTempVendorCDR_20' ) end [2025-03-20 11:34:21] Production.INFO: ProcessCDR(1,14722565,1,1,2) [2025-03-20 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722565', 'tblTempUsageDetail_20' ) start [2025-03-20 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722565', 'tblTempUsageDetail_20' ) end [2025-03-20 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:34:27] Production.INFO: ==19227== Releasing lock... [2025-03-20 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:34:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-20 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:35:05 [end_date_ymd] => 2025-03-20 11:35:05 [RateCDR] => 1 ) [2025-03-20 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:35:05' and `end` < '2025-03-20 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:35:18] Production.INFO: count ==4655 [2025-03-20 11:35:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:35:05 - End Time 2025-03-20 11:35:05 [2025-03-20 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722570', 'tblTempUsageDetail_20' ) start [2025-03-20 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722570', 'tblTempUsageDetail_20' ) end [2025-03-20 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722570', 'tblTempVendorCDR_20' ) start [2025-03-20 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722570', 'tblTempVendorCDR_20' ) end [2025-03-20 11:35:21] Production.INFO: ProcessCDR(1,14722570,1,1,2) [2025-03-20 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722570', 'tblTempUsageDetail_20' ) start [2025-03-20 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722570', 'tblTempUsageDetail_20' ) end [2025-03-20 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:35:27] Production.INFO: ==19316== Releasing lock... [2025-03-20 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:35:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-20 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:36:05 [end_date_ymd] => 2025-03-20 11:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:36:19] Production.INFO: count ==4733 [2025-03-20 11:36:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:36:05 - End Time 2025-03-20 11:36:05 [2025-03-20 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722575', 'tblTempUsageDetail_20' ) start [2025-03-20 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722575', 'tblTempUsageDetail_20' ) end [2025-03-20 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722575', 'tblTempVendorCDR_20' ) start [2025-03-20 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722575', 'tblTempVendorCDR_20' ) end [2025-03-20 11:36:21] Production.INFO: ProcessCDR(1,14722575,1,1,2) [2025-03-20 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722575', 'tblTempUsageDetail_20' ) start [2025-03-20 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722575', 'tblTempUsageDetail_20' ) end [2025-03-20 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:36:27] Production.INFO: ==19405== Releasing lock... [2025-03-20 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:36:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-20 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:37:06 [end_date_ymd] => 2025-03-20 11:37:06 [RateCDR] => 1 ) [2025-03-20 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:37:06' and `end` < '2025-03-20 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:37:19] Production.INFO: count ==4752 [2025-03-20 11:37:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:37:06 - End Time 2025-03-20 11:37:06 [2025-03-20 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722580', 'tblTempUsageDetail_20' ) start [2025-03-20 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722580', 'tblTempUsageDetail_20' ) end [2025-03-20 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722580', 'tblTempVendorCDR_20' ) start [2025-03-20 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722580', 'tblTempVendorCDR_20' ) end [2025-03-20 11:37:21] Production.INFO: ProcessCDR(1,14722580,1,1,2) [2025-03-20 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722580', 'tblTempUsageDetail_20' ) start [2025-03-20 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722580', 'tblTempUsageDetail_20' ) end [2025-03-20 11:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:37:27] Production.INFO: ==19492== Releasing lock... [2025-03-20 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:37:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-20 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:38:06 [end_date_ymd] => 2025-03-20 11:38:06 [RateCDR] => 1 ) [2025-03-20 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:38:06' and `end` < '2025-03-20 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:38:19] Production.INFO: count ==4776 [2025-03-20 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:38:06 - End Time 2025-03-20 11:38:06 [2025-03-20 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722585', 'tblTempUsageDetail_20' ) start [2025-03-20 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722585', 'tblTempUsageDetail_20' ) end [2025-03-20 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722585', 'tblTempVendorCDR_20' ) start [2025-03-20 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722585', 'tblTempVendorCDR_20' ) end [2025-03-20 11:38:21] Production.INFO: ProcessCDR(1,14722585,1,1,2) [2025-03-20 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722585', 'tblTempUsageDetail_20' ) start [2025-03-20 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722585', 'tblTempUsageDetail_20' ) end [2025-03-20 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:38:27] Production.INFO: ==19577== Releasing lock... [2025-03-20 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:38:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-20 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:39:05 [end_date_ymd] => 2025-03-20 11:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:39:19] Production.INFO: count ==4766 [2025-03-20 11:39:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:39:05 - End Time 2025-03-20 11:39:05 [2025-03-20 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722590', 'tblTempUsageDetail_20' ) start [2025-03-20 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722590', 'tblTempUsageDetail_20' ) end [2025-03-20 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722590', 'tblTempVendorCDR_20' ) start [2025-03-20 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722590', 'tblTempVendorCDR_20' ) end [2025-03-20 11:39:21] Production.INFO: ProcessCDR(1,14722590,1,1,2) [2025-03-20 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722590', 'tblTempUsageDetail_20' ) start [2025-03-20 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722590', 'tblTempUsageDetail_20' ) end [2025-03-20 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:39:27] Production.INFO: ==19659== Releasing lock... [2025-03-20 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:39:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-20 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:40:07 [end_date_ymd] => 2025-03-20 11:40:07 [RateCDR] => 1 ) [2025-03-20 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:40:07' and `end` < '2025-03-20 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:40:20] Production.INFO: count ==4761 [2025-03-20 11:40:22] Production.ERROR: pbx CDR StartTime 2025-03-20 08:40:07 - End Time 2025-03-20 11:40:07 [2025-03-20 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722596', 'tblTempUsageDetail_20' ) start [2025-03-20 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722596', 'tblTempUsageDetail_20' ) end [2025-03-20 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722596', 'tblTempVendorCDR_20' ) start [2025-03-20 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722596', 'tblTempVendorCDR_20' ) end [2025-03-20 11:40:22] Production.INFO: ProcessCDR(1,14722596,1,1,2) [2025-03-20 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722596', 'tblTempUsageDetail_20' ) start [2025-03-20 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722596', 'tblTempUsageDetail_20' ) end [2025-03-20 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:40:28] Production.INFO: ==19752== Releasing lock... [2025-03-20 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:40:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-20 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:41:06 [end_date_ymd] => 2025-03-20 11:41:06 [RateCDR] => 1 ) [2025-03-20 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:41:06' and `end` < '2025-03-20 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:41:19] Production.INFO: count ==4863 [2025-03-20 11:41:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:41:06 - End Time 2025-03-20 11:41:06 [2025-03-20 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722601', 'tblTempUsageDetail_20' ) start [2025-03-20 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722601', 'tblTempUsageDetail_20' ) end [2025-03-20 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722601', 'tblTempVendorCDR_20' ) start [2025-03-20 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722601', 'tblTempVendorCDR_20' ) end [2025-03-20 11:41:21] Production.INFO: ProcessCDR(1,14722601,1,1,2) [2025-03-20 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722601', 'tblTempUsageDetail_20' ) start [2025-03-20 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722601', 'tblTempUsageDetail_20' ) end [2025-03-20 11:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:41:27] Production.INFO: ==19852== Releasing lock... [2025-03-20 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:41:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-20 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:42:06 [end_date_ymd] => 2025-03-20 11:42:06 [RateCDR] => 1 ) [2025-03-20 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:42:06' and `end` < '2025-03-20 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:42:19] Production.INFO: count ==4895 [2025-03-20 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:42:06 - End Time 2025-03-20 11:42:06 [2025-03-20 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722606', 'tblTempUsageDetail_20' ) start [2025-03-20 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722606', 'tblTempUsageDetail_20' ) end [2025-03-20 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722606', 'tblTempVendorCDR_20' ) start [2025-03-20 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722606', 'tblTempVendorCDR_20' ) end [2025-03-20 11:42:21] Production.INFO: ProcessCDR(1,14722606,1,1,2) [2025-03-20 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722606', 'tblTempUsageDetail_20' ) start [2025-03-20 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722606', 'tblTempUsageDetail_20' ) end [2025-03-20 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:42:27] Production.INFO: ==19933== Releasing lock... [2025-03-20 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:42:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-20 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:43:05 [end_date_ymd] => 2025-03-20 11:43:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:43:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:43:19] Production.INFO: count ==4932 [2025-03-20 11:43:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:43:05 - End Time 2025-03-20 11:43:05 [2025-03-20 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722611', 'tblTempUsageDetail_20' ) start [2025-03-20 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722611', 'tblTempUsageDetail_20' ) end [2025-03-20 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722611', 'tblTempVendorCDR_20' ) start [2025-03-20 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722611', 'tblTempVendorCDR_20' ) end [2025-03-20 11:43:21] Production.INFO: ProcessCDR(1,14722611,1,1,2) [2025-03-20 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722611', 'tblTempUsageDetail_20' ) start [2025-03-20 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722611', 'tblTempUsageDetail_20' ) end [2025-03-20 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:43:27] Production.INFO: ==20017== Releasing lock... [2025-03-20 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:43:27] Production.INFO: 65 MB #Memory Used# [2025-03-20 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:44:05 [end_date_ymd] => 2025-03-20 11:44:05 [RateCDR] => 1 ) [2025-03-20 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:44:05' and `end` < '2025-03-20 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:44:19] Production.INFO: count ==4965 [2025-03-20 11:44:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:44:05 - End Time 2025-03-20 11:44:05 [2025-03-20 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722616', 'tblTempUsageDetail_20' ) start [2025-03-20 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722616', 'tblTempUsageDetail_20' ) end [2025-03-20 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722616', 'tblTempVendorCDR_20' ) start [2025-03-20 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722616', 'tblTempVendorCDR_20' ) end [2025-03-20 11:44:21] Production.INFO: ProcessCDR(1,14722616,1,1,2) [2025-03-20 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722616', 'tblTempUsageDetail_20' ) start [2025-03-20 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722616', 'tblTempUsageDetail_20' ) end [2025-03-20 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:44:27] Production.INFO: ==20105== Releasing lock... [2025-03-20 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:44:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-20 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:45:05 [end_date_ymd] => 2025-03-20 11:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:45:19] Production.INFO: count ==5041 [2025-03-20 11:45:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:45:05 - End Time 2025-03-20 11:45:05 [2025-03-20 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722621', 'tblTempUsageDetail_20' ) start [2025-03-20 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722621', 'tblTempUsageDetail_20' ) end [2025-03-20 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722621', 'tblTempVendorCDR_20' ) start [2025-03-20 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722621', 'tblTempVendorCDR_20' ) end [2025-03-20 11:45:21] Production.INFO: ProcessCDR(1,14722621,1,1,2) [2025-03-20 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722621', 'tblTempUsageDetail_20' ) start [2025-03-20 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722621', 'tblTempUsageDetail_20' ) end [2025-03-20 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:45:27] Production.INFO: ==20195== Releasing lock... [2025-03-20 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:45:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-20 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:46:05 [end_date_ymd] => 2025-03-20 11:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:46:19] Production.INFO: count ==5064 [2025-03-20 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:46:05 - End Time 2025-03-20 11:46:05 [2025-03-20 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722626', 'tblTempUsageDetail_20' ) start [2025-03-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722626', 'tblTempUsageDetail_20' ) end [2025-03-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722626', 'tblTempVendorCDR_20' ) start [2025-03-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722626', 'tblTempVendorCDR_20' ) end [2025-03-20 11:46:21] Production.INFO: ProcessCDR(1,14722626,1,1,2) [2025-03-20 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722626', 'tblTempUsageDetail_20' ) start [2025-03-20 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722626', 'tblTempUsageDetail_20' ) end [2025-03-20 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:46:27] Production.INFO: ==20286== Releasing lock... [2025-03-20 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:46:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-20 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:47:06 [end_date_ymd] => 2025-03-20 11:47:06 [RateCDR] => 1 ) [2025-03-20 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:47:06' and `end` < '2025-03-20 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:47:19] Production.INFO: count ==5093 [2025-03-20 11:47:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:47:06 - End Time 2025-03-20 11:47:06 [2025-03-20 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722631', 'tblTempUsageDetail_20' ) start [2025-03-20 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722631', 'tblTempUsageDetail_20' ) end [2025-03-20 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722631', 'tblTempVendorCDR_20' ) start [2025-03-20 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722631', 'tblTempVendorCDR_20' ) end [2025-03-20 11:47:22] Production.INFO: ProcessCDR(1,14722631,1,1,2) [2025-03-20 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722631', 'tblTempUsageDetail_20' ) start [2025-03-20 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722631', 'tblTempUsageDetail_20' ) end [2025-03-20 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:47:27] Production.INFO: ==20408== Releasing lock... [2025-03-20 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:47:27] Production.INFO: 66 MB #Memory Used# [2025-03-20 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:48:05 [end_date_ymd] => 2025-03-20 11:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:48:19] Production.INFO: count ==5173 [2025-03-20 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:48:05 - End Time 2025-03-20 11:48:05 [2025-03-20 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722636', 'tblTempUsageDetail_20' ) start [2025-03-20 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722636', 'tblTempUsageDetail_20' ) end [2025-03-20 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722636', 'tblTempVendorCDR_20' ) start [2025-03-20 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722636', 'tblTempVendorCDR_20' ) end [2025-03-20 11:48:21] Production.INFO: ProcessCDR(1,14722636,1,1,2) [2025-03-20 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722636', 'tblTempUsageDetail_20' ) start [2025-03-20 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722636', 'tblTempUsageDetail_20' ) end [2025-03-20 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:48:27] Production.INFO: ==20500== Releasing lock... [2025-03-20 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:48:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-20 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:49:06 [end_date_ymd] => 2025-03-20 11:49:06 [RateCDR] => 1 ) [2025-03-20 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:49:06' and `end` < '2025-03-20 11:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:49:19] Production.INFO: count ==5178 [2025-03-20 11:49:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:49:06 - End Time 2025-03-20 11:49:06 [2025-03-20 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722641', 'tblTempUsageDetail_20' ) start [2025-03-20 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722641', 'tblTempUsageDetail_20' ) end [2025-03-20 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722641', 'tblTempVendorCDR_20' ) start [2025-03-20 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722641', 'tblTempVendorCDR_20' ) end [2025-03-20 11:49:21] Production.INFO: ProcessCDR(1,14722641,1,1,2) [2025-03-20 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722641', 'tblTempUsageDetail_20' ) start [2025-03-20 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722641', 'tblTempUsageDetail_20' ) end [2025-03-20 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:49:27] Production.INFO: ==20588== Releasing lock... [2025-03-20 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:49:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-20 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:50:05 [end_date_ymd] => 2025-03-20 11:50:05 [RateCDR] => 1 ) [2025-03-20 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:50:05' and `end` < '2025-03-20 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:50:19] Production.INFO: count ==5194 [2025-03-20 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-20 08:50:05 - End Time 2025-03-20 11:50:05 [2025-03-20 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722646', 'tblTempUsageDetail_20' ) start [2025-03-20 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722646', 'tblTempUsageDetail_20' ) end [2025-03-20 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722646', 'tblTempVendorCDR_20' ) start [2025-03-20 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722646', 'tblTempVendorCDR_20' ) end [2025-03-20 11:50:22] Production.INFO: ProcessCDR(1,14722646,1,1,2) [2025-03-20 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722646', 'tblTempUsageDetail_20' ) start [2025-03-20 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722646', 'tblTempUsageDetail_20' ) end [2025-03-20 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:50:27] Production.INFO: ==20673== Releasing lock... [2025-03-20 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:50:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-20 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:51:06 [end_date_ymd] => 2025-03-20 11:51:06 [RateCDR] => 1 ) [2025-03-20 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:51:06' and `end` < '2025-03-20 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:51:19] Production.INFO: count ==5298 [2025-03-20 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:51:06 - End Time 2025-03-20 11:51:06 [2025-03-20 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722652', 'tblTempUsageDetail_20' ) start [2025-03-20 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722652', 'tblTempUsageDetail_20' ) end [2025-03-20 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722652', 'tblTempVendorCDR_20' ) start [2025-03-20 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722652', 'tblTempVendorCDR_20' ) end [2025-03-20 11:51:21] Production.INFO: ProcessCDR(1,14722652,1,1,2) [2025-03-20 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722652', 'tblTempUsageDetail_20' ) start [2025-03-20 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722652', 'tblTempUsageDetail_20' ) end [2025-03-20 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:51:27] Production.INFO: ==20754== Releasing lock... [2025-03-20 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:51:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-20 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:52:05 [end_date_ymd] => 2025-03-20 11:52:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:52:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:52:18] Production.INFO: count ==5327 [2025-03-20 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:52:05 - End Time 2025-03-20 11:52:05 [2025-03-20 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722657', 'tblTempUsageDetail_20' ) start [2025-03-20 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722657', 'tblTempUsageDetail_20' ) end [2025-03-20 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722657', 'tblTempVendorCDR_20' ) start [2025-03-20 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722657', 'tblTempVendorCDR_20' ) end [2025-03-20 11:52:21] Production.INFO: ProcessCDR(1,14722657,1,1,2) [2025-03-20 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722657', 'tblTempUsageDetail_20' ) start [2025-03-20 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722657', 'tblTempUsageDetail_20' ) end [2025-03-20 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:52:26] Production.INFO: ==20829== Releasing lock... [2025-03-20 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:52:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-20 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:53:06 [end_date_ymd] => 2025-03-20 11:53:06 [RateCDR] => 1 ) [2025-03-20 11:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:53:06' and `end` < '2025-03-20 11:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:53:19] Production.INFO: count ==5353 [2025-03-20 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:53:06 - End Time 2025-03-20 11:53:06 [2025-03-20 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722662', 'tblTempUsageDetail_20' ) start [2025-03-20 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722662', 'tblTempUsageDetail_20' ) end [2025-03-20 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722662', 'tblTempVendorCDR_20' ) start [2025-03-20 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722662', 'tblTempVendorCDR_20' ) end [2025-03-20 11:53:22] Production.INFO: ProcessCDR(1,14722662,1,1,2) [2025-03-20 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722662', 'tblTempUsageDetail_20' ) start [2025-03-20 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722662', 'tblTempUsageDetail_20' ) end [2025-03-20 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:53:27] Production.INFO: ==20917== Releasing lock... [2025-03-20 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:53:27] Production.INFO: 68 MB #Memory Used# [2025-03-20 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:54:05 [end_date_ymd] => 2025-03-20 11:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:54:19] Production.INFO: count ==5364 [2025-03-20 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:54:05 - End Time 2025-03-20 11:54:05 [2025-03-20 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722667', 'tblTempUsageDetail_20' ) start [2025-03-20 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722667', 'tblTempUsageDetail_20' ) end [2025-03-20 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722667', 'tblTempVendorCDR_20' ) start [2025-03-20 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722667', 'tblTempVendorCDR_20' ) end [2025-03-20 11:54:21] Production.INFO: ProcessCDR(1,14722667,1,1,2) [2025-03-20 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722667', 'tblTempUsageDetail_20' ) start [2025-03-20 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722667', 'tblTempUsageDetail_20' ) end [2025-03-20 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:54:26] Production.INFO: ==21004== Releasing lock... [2025-03-20 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:54:26] Production.INFO: 68 MB #Memory Used# [2025-03-20 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:55:05 [end_date_ymd] => 2025-03-20 11:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:55:19] Production.INFO: count ==5377 [2025-03-20 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:55:05 - End Time 2025-03-20 11:55:05 [2025-03-20 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722672', 'tblTempUsageDetail_20' ) start [2025-03-20 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722672', 'tblTempUsageDetail_20' ) end [2025-03-20 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722672', 'tblTempVendorCDR_20' ) start [2025-03-20 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722672', 'tblTempVendorCDR_20' ) end [2025-03-20 11:55:22] Production.INFO: ProcessCDR(1,14722672,1,1,2) [2025-03-20 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722672', 'tblTempUsageDetail_20' ) start [2025-03-20 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722672', 'tblTempUsageDetail_20' ) end [2025-03-20 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:55:27] Production.INFO: ==21083== Releasing lock... [2025-03-20 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:55:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-20 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:56:05 [end_date_ymd] => 2025-03-20 11:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:56:19] Production.INFO: count ==5403 [2025-03-20 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:56:05 - End Time 2025-03-20 11:56:05 [2025-03-20 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722677', 'tblTempUsageDetail_20' ) start [2025-03-20 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722677', 'tblTempUsageDetail_20' ) end [2025-03-20 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722677', 'tblTempVendorCDR_20' ) start [2025-03-20 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722677', 'tblTempVendorCDR_20' ) end [2025-03-20 11:56:21] Production.INFO: ProcessCDR(1,14722677,1,1,2) [2025-03-20 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722677', 'tblTempUsageDetail_20' ) start [2025-03-20 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722677', 'tblTempUsageDetail_20' ) end [2025-03-20 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:56:27] Production.INFO: ==21167== Releasing lock... [2025-03-20 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:56:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-20 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:57:06 [end_date_ymd] => 2025-03-20 11:57:06 [RateCDR] => 1 ) [2025-03-20 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 08:57:06' and `end` < '2025-03-20 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 11:57:19] Production.INFO: count ==5457 [2025-03-20 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:57:06 - End Time 2025-03-20 11:57:06 [2025-03-20 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722682', 'tblTempUsageDetail_20' ) start [2025-03-20 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722682', 'tblTempUsageDetail_20' ) end [2025-03-20 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722682', 'tblTempVendorCDR_20' ) start [2025-03-20 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722682', 'tblTempVendorCDR_20' ) end [2025-03-20 11:57:21] Production.INFO: ProcessCDR(1,14722682,1,1,2) [2025-03-20 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722682', 'tblTempUsageDetail_20' ) start [2025-03-20 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722682', 'tblTempUsageDetail_20' ) end [2025-03-20 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:57:27] Production.INFO: ==21251== Releasing lock... [2025-03-20 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:57:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-20 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:58:05 [end_date_ymd] => 2025-03-20 11:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:58:18] Production.INFO: count ==5556 [2025-03-20 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:58:05 - End Time 2025-03-20 11:58:05 [2025-03-20 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722687', 'tblTempUsageDetail_20' ) start [2025-03-20 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722687', 'tblTempUsageDetail_20' ) end [2025-03-20 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722687', 'tblTempVendorCDR_20' ) start [2025-03-20 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722687', 'tblTempVendorCDR_20' ) end [2025-03-20 11:58:21] Production.INFO: ProcessCDR(1,14722687,1,1,2) [2025-03-20 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722687', 'tblTempUsageDetail_20' ) start [2025-03-20 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722687', 'tblTempUsageDetail_20' ) end [2025-03-20 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:58:27] Production.INFO: ==21344== Releasing lock... [2025-03-20 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:58:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-20 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 08:59:05 [end_date_ymd] => 2025-03-20 11:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 08:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 11:59:19] Production.INFO: count ==5569 [2025-03-20 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-20 08:59:05 - End Time 2025-03-20 11:59:05 [2025-03-20 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722692', 'tblTempUsageDetail_20' ) start [2025-03-20 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722692', 'tblTempUsageDetail_20' ) end [2025-03-20 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722692', 'tblTempVendorCDR_20' ) start [2025-03-20 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722692', 'tblTempVendorCDR_20' ) end [2025-03-20 11:59:21] Production.INFO: ProcessCDR(1,14722692,1,1,2) [2025-03-20 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722692', 'tblTempUsageDetail_20' ) start [2025-03-20 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722692', 'tblTempUsageDetail_20' ) end [2025-03-20 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 11:59:26] Production.INFO: ==21433== Releasing lock... [2025-03-20 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 11:59:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-20 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:00:06 [end_date_ymd] => 2025-03-20 12:00:06 [RateCDR] => 1 ) [2025-03-20 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:00:06' and `end` < '2025-03-20 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:00:20] Production.INFO: count ==5573 [2025-03-20 12:00:23] Production.ERROR: pbx CDR StartTime 2025-03-20 09:00:06 - End Time 2025-03-20 12:00:06 [2025-03-20 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722698', 'tblTempUsageDetail_20' ) start [2025-03-20 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722698', 'tblTempUsageDetail_20' ) end [2025-03-20 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722698', 'tblTempVendorCDR_20' ) start [2025-03-20 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722698', 'tblTempVendorCDR_20' ) end [2025-03-20 12:00:23] Production.INFO: ProcessCDR(1,14722698,1,1,2) [2025-03-20 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722698', 'tblTempUsageDetail_20' ) start [2025-03-20 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722698', 'tblTempUsageDetail_20' ) end [2025-03-20 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:00:28] Production.INFO: ==21513== Releasing lock... [2025-03-20 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:00:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-20 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:01:06 [end_date_ymd] => 2025-03-20 12:01:06 [RateCDR] => 1 ) [2025-03-20 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:01:06' and `end` < '2025-03-20 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:01:19] Production.INFO: count ==5666 [2025-03-20 12:01:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:01:06 - End Time 2025-03-20 12:01:06 [2025-03-20 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722703', 'tblTempUsageDetail_20' ) start [2025-03-20 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722703', 'tblTempUsageDetail_20' ) end [2025-03-20 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722703', 'tblTempVendorCDR_20' ) start [2025-03-20 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722703', 'tblTempVendorCDR_20' ) end [2025-03-20 12:01:22] Production.INFO: ProcessCDR(1,14722703,1,1,2) [2025-03-20 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722703', 'tblTempUsageDetail_20' ) start [2025-03-20 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722703', 'tblTempUsageDetail_20' ) end [2025-03-20 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:01:27] Production.INFO: ==21609== Releasing lock... [2025-03-20 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:01:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:02:05 [end_date_ymd] => 2025-03-20 12:02:05 [RateCDR] => 1 ) [2025-03-20 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:02:19] Production.INFO: count ==5673 [2025-03-20 12:02:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:02:05 - End Time 2025-03-20 12:02:05 [2025-03-20 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722708', 'tblTempUsageDetail_20' ) start [2025-03-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722708', 'tblTempUsageDetail_20' ) end [2025-03-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722708', 'tblTempVendorCDR_20' ) start [2025-03-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722708', 'tblTempVendorCDR_20' ) end [2025-03-20 12:02:21] Production.INFO: ProcessCDR(1,14722708,1,1,2) [2025-03-20 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722708', 'tblTempUsageDetail_20' ) start [2025-03-20 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722708', 'tblTempUsageDetail_20' ) end [2025-03-20 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:02:27] Production.INFO: ==21699== Releasing lock... [2025-03-20 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:02:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:03:06 [end_date_ymd] => 2025-03-20 12:03:06 [RateCDR] => 1 ) [2025-03-20 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:03:06' and `end` < '2025-03-20 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:03:19] Production.INFO: count ==5660 [2025-03-20 12:03:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:03:06 - End Time 2025-03-20 12:03:06 [2025-03-20 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722713', 'tblTempUsageDetail_20' ) start [2025-03-20 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722713', 'tblTempUsageDetail_20' ) end [2025-03-20 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722713', 'tblTempVendorCDR_20' ) start [2025-03-20 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722713', 'tblTempVendorCDR_20' ) end [2025-03-20 12:03:22] Production.INFO: ProcessCDR(1,14722713,1,1,2) [2025-03-20 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722713', 'tblTempUsageDetail_20' ) start [2025-03-20 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722713', 'tblTempUsageDetail_20' ) end [2025-03-20 12:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:03:25] Production.INFO: ==21825== Releasing lock... [2025-03-20 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:03:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-20 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:04:05 [end_date_ymd] => 2025-03-20 12:04:05 [RateCDR] => 1 ) [2025-03-20 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:04:05' and `end` < '2025-03-20 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:04:19] Production.INFO: count ==5665 [2025-03-20 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:04:05 - End Time 2025-03-20 12:04:05 [2025-03-20 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722718', 'tblTempUsageDetail_20' ) start [2025-03-20 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722718', 'tblTempUsageDetail_20' ) end [2025-03-20 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722718', 'tblTempVendorCDR_20' ) start [2025-03-20 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722718', 'tblTempVendorCDR_20' ) end [2025-03-20 12:04:22] Production.INFO: ProcessCDR(1,14722718,1,1,2) [2025-03-20 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722718', 'tblTempUsageDetail_20' ) start [2025-03-20 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722718', 'tblTempUsageDetail_20' ) end [2025-03-20 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:04:27] Production.INFO: ==21913== Releasing lock... [2025-03-20 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:04:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:05:05 [end_date_ymd] => 2025-03-20 12:05:05 [RateCDR] => 1 ) [2025-03-20 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:05:05' and `end` < '2025-03-20 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:05:18] Production.INFO: count ==5664 [2025-03-20 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:05:05 - End Time 2025-03-20 12:05:05 [2025-03-20 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722723', 'tblTempUsageDetail_20' ) start [2025-03-20 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722723', 'tblTempUsageDetail_20' ) end [2025-03-20 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722723', 'tblTempVendorCDR_20' ) start [2025-03-20 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722723', 'tblTempVendorCDR_20' ) end [2025-03-20 12:05:21] Production.INFO: ProcessCDR(1,14722723,1,1,2) [2025-03-20 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722723', 'tblTempUsageDetail_20' ) start [2025-03-20 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722723', 'tblTempUsageDetail_20' ) end [2025-03-20 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:05:26] Production.INFO: ==21997== Releasing lock... [2025-03-20 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:05:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-20 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:06:06 [end_date_ymd] => 2025-03-20 12:06:06 [RateCDR] => 1 ) [2025-03-20 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:06:06' and `end` < '2025-03-20 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:06:19] Production.INFO: count ==5667 [2025-03-20 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:06:06 - End Time 2025-03-20 12:06:06 [2025-03-20 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722728', 'tblTempUsageDetail_20' ) start [2025-03-20 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722728', 'tblTempUsageDetail_20' ) end [2025-03-20 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722728', 'tblTempVendorCDR_20' ) start [2025-03-20 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722728', 'tblTempVendorCDR_20' ) end [2025-03-20 12:06:22] Production.INFO: ProcessCDR(1,14722728,1,1,2) [2025-03-20 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722728', 'tblTempUsageDetail_20' ) start [2025-03-20 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722728', 'tblTempUsageDetail_20' ) end [2025-03-20 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:06:27] Production.INFO: ==22079== Releasing lock... [2025-03-20 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:06:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:07:05 [end_date_ymd] => 2025-03-20 12:07:05 [RateCDR] => 1 ) [2025-03-20 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:07:05' and `end` < '2025-03-20 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:07:19] Production.INFO: count ==5640 [2025-03-20 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:07:05 - End Time 2025-03-20 12:07:05 [2025-03-20 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722733', 'tblTempUsageDetail_20' ) start [2025-03-20 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722733', 'tblTempUsageDetail_20' ) end [2025-03-20 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722733', 'tblTempVendorCDR_20' ) start [2025-03-20 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722733', 'tblTempVendorCDR_20' ) end [2025-03-20 12:07:21] Production.INFO: ProcessCDR(1,14722733,1,1,2) [2025-03-20 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722733', 'tblTempUsageDetail_20' ) start [2025-03-20 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722733', 'tblTempUsageDetail_20' ) end [2025-03-20 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:07:26] Production.INFO: ==22158== Releasing lock... [2025-03-20 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:07:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-20 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:08:06 [end_date_ymd] => 2025-03-20 12:08:06 [RateCDR] => 1 ) [2025-03-20 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:08:06' and `end` < '2025-03-20 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:08:19] Production.INFO: count ==5627 [2025-03-20 12:08:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:08:06 - End Time 2025-03-20 12:08:06 [2025-03-20 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722738', 'tblTempUsageDetail_20' ) start [2025-03-20 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722738', 'tblTempUsageDetail_20' ) end [2025-03-20 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722738', 'tblTempVendorCDR_20' ) start [2025-03-20 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722738', 'tblTempVendorCDR_20' ) end [2025-03-20 12:08:22] Production.INFO: ProcessCDR(1,14722738,1,1,2) [2025-03-20 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722738', 'tblTempUsageDetail_20' ) start [2025-03-20 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722738', 'tblTempUsageDetail_20' ) end [2025-03-20 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:08:27] Production.INFO: ==22253== Releasing lock... [2025-03-20 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:08:27] Production.INFO: 70 MB #Memory Used# [2025-03-20 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:09:05 [end_date_ymd] => 2025-03-20 12:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:09:19] Production.INFO: count ==5637 [2025-03-20 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:09:05 - End Time 2025-03-20 12:09:05 [2025-03-20 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722743', 'tblTempUsageDetail_20' ) start [2025-03-20 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722743', 'tblTempUsageDetail_20' ) end [2025-03-20 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722743', 'tblTempVendorCDR_20' ) start [2025-03-20 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722743', 'tblTempVendorCDR_20' ) end [2025-03-20 12:09:21] Production.INFO: ProcessCDR(1,14722743,1,1,2) [2025-03-20 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722743', 'tblTempUsageDetail_20' ) start [2025-03-20 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722743', 'tblTempUsageDetail_20' ) end [2025-03-20 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:09:26] Production.INFO: ==22334== Releasing lock... [2025-03-20 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:09:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-20 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:10:07 [end_date_ymd] => 2025-03-20 12:10:07 [RateCDR] => 1 ) [2025-03-20 12:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:10:07' and `end` < '2025-03-20 12:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:10:20] Production.INFO: count ==5637 [2025-03-20 12:10:23] Production.ERROR: pbx CDR StartTime 2025-03-20 09:10:07 - End Time 2025-03-20 12:10:07 [2025-03-20 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722749', 'tblTempUsageDetail_20' ) start [2025-03-20 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722749', 'tblTempUsageDetail_20' ) end [2025-03-20 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722749', 'tblTempVendorCDR_20' ) start [2025-03-20 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722749', 'tblTempVendorCDR_20' ) end [2025-03-20 12:10:23] Production.INFO: ProcessCDR(1,14722749,1,1,2) [2025-03-20 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722749', 'tblTempUsageDetail_20' ) start [2025-03-20 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722749', 'tblTempUsageDetail_20' ) end [2025-03-20 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:10:28] Production.INFO: ==22417== Releasing lock... [2025-03-20 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:10:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-20 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:11:05 [end_date_ymd] => 2025-03-20 12:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:11:18] Production.INFO: count ==5678 [2025-03-20 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:11:05 - End Time 2025-03-20 12:11:05 [2025-03-20 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722754', 'tblTempUsageDetail_20' ) start [2025-03-20 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722754', 'tblTempUsageDetail_20' ) end [2025-03-20 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722754', 'tblTempVendorCDR_20' ) start [2025-03-20 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722754', 'tblTempVendorCDR_20' ) end [2025-03-20 12:11:21] Production.INFO: ProcessCDR(1,14722754,1,1,2) [2025-03-20 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722754', 'tblTempUsageDetail_20' ) start [2025-03-20 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722754', 'tblTempUsageDetail_20' ) end [2025-03-20 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:11:26] Production.INFO: ==22504== Releasing lock... [2025-03-20 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:11:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:12:05 [end_date_ymd] => 2025-03-20 12:12:05 [RateCDR] => 1 ) [2025-03-20 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:12:05' and `end` < '2025-03-20 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:12:19] Production.INFO: count ==5681 [2025-03-20 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:12:05 - End Time 2025-03-20 12:12:05 [2025-03-20 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722759', 'tblTempUsageDetail_20' ) start [2025-03-20 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722759', 'tblTempUsageDetail_20' ) end [2025-03-20 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722759', 'tblTempVendorCDR_20' ) start [2025-03-20 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722759', 'tblTempVendorCDR_20' ) end [2025-03-20 12:12:21] Production.INFO: ProcessCDR(1,14722759,1,1,2) [2025-03-20 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722759', 'tblTempUsageDetail_20' ) start [2025-03-20 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722759', 'tblTempUsageDetail_20' ) end [2025-03-20 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:12:27] Production.INFO: ==22600== Releasing lock... [2025-03-20 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:12:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:13:05 [end_date_ymd] => 2025-03-20 12:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:13:18] Production.INFO: count ==5697 [2025-03-20 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:13:05 - End Time 2025-03-20 12:13:05 [2025-03-20 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722764', 'tblTempUsageDetail_20' ) start [2025-03-20 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722764', 'tblTempUsageDetail_20' ) end [2025-03-20 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722764', 'tblTempVendorCDR_20' ) start [2025-03-20 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722764', 'tblTempVendorCDR_20' ) end [2025-03-20 12:13:21] Production.INFO: ProcessCDR(1,14722764,1,1,2) [2025-03-20 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722764', 'tblTempUsageDetail_20' ) start [2025-03-20 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722764', 'tblTempUsageDetail_20' ) end [2025-03-20 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:13:26] Production.INFO: ==22683== Releasing lock... [2025-03-20 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:13:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:14:06 [end_date_ymd] => 2025-03-20 12:14:06 [RateCDR] => 1 ) [2025-03-20 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:14:06' and `end` < '2025-03-20 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:14:19] Production.INFO: count ==5697 [2025-03-20 12:14:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:14:06 - End Time 2025-03-20 12:14:06 [2025-03-20 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722769', 'tblTempUsageDetail_20' ) start [2025-03-20 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722769', 'tblTempUsageDetail_20' ) end [2025-03-20 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722769', 'tblTempVendorCDR_20' ) start [2025-03-20 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722769', 'tblTempVendorCDR_20' ) end [2025-03-20 12:14:22] Production.INFO: ProcessCDR(1,14722769,1,1,2) [2025-03-20 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722769', 'tblTempUsageDetail_20' ) start [2025-03-20 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722769', 'tblTempUsageDetail_20' ) end [2025-03-20 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:14:27] Production.INFO: ==22761== Releasing lock... [2025-03-20 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:14:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:15:05 [end_date_ymd] => 2025-03-20 12:15:05 [RateCDR] => 1 ) [2025-03-20 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:15:05' and `end` < '2025-03-20 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:15:18] Production.INFO: count ==5716 [2025-03-20 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:15:05 - End Time 2025-03-20 12:15:05 [2025-03-20 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722773', 'tblTempUsageDetail_20' ) start [2025-03-20 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722773', 'tblTempUsageDetail_20' ) end [2025-03-20 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722773', 'tblTempVendorCDR_20' ) start [2025-03-20 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722773', 'tblTempVendorCDR_20' ) end [2025-03-20 12:15:21] Production.INFO: ProcessCDR(1,14722773,1,1,2) [2025-03-20 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722773', 'tblTempUsageDetail_20' ) start [2025-03-20 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722773', 'tblTempUsageDetail_20' ) end [2025-03-20 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:15:27] Production.INFO: ==22844== Releasing lock... [2025-03-20 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:15:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:16:05 [end_date_ymd] => 2025-03-20 12:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:16:19] Production.INFO: count ==5706 [2025-03-20 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:16:05 - End Time 2025-03-20 12:16:05 [2025-03-20 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722779', 'tblTempUsageDetail_20' ) start [2025-03-20 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722779', 'tblTempUsageDetail_20' ) end [2025-03-20 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722779', 'tblTempVendorCDR_20' ) start [2025-03-20 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722779', 'tblTempVendorCDR_20' ) end [2025-03-20 12:16:21] Production.INFO: ProcessCDR(1,14722779,1,1,2) [2025-03-20 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722779', 'tblTempUsageDetail_20' ) start [2025-03-20 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722779', 'tblTempUsageDetail_20' ) end [2025-03-20 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:16:27] Production.INFO: ==22933== Releasing lock... [2025-03-20 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:16:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:17:06 [end_date_ymd] => 2025-03-20 12:17:06 [RateCDR] => 1 ) [2025-03-20 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:17:06' and `end` < '2025-03-20 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:17:19] Production.INFO: count ==5710 [2025-03-20 12:17:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:17:06 - End Time 2025-03-20 12:17:06 [2025-03-20 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722784', 'tblTempUsageDetail_20' ) start [2025-03-20 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722784', 'tblTempUsageDetail_20' ) end [2025-03-20 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722784', 'tblTempVendorCDR_20' ) start [2025-03-20 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722784', 'tblTempVendorCDR_20' ) end [2025-03-20 12:17:22] Production.INFO: ProcessCDR(1,14722784,1,1,2) [2025-03-20 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722784', 'tblTempUsageDetail_20' ) start [2025-03-20 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722784', 'tblTempUsageDetail_20' ) end [2025-03-20 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:17:27] Production.INFO: ==23019== Releasing lock... [2025-03-20 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:17:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:18:05 [end_date_ymd] => 2025-03-20 12:18:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:18:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:18:19] Production.INFO: count ==5709 [2025-03-20 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:18:05 - End Time 2025-03-20 12:18:05 [2025-03-20 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722789', 'tblTempUsageDetail_20' ) start [2025-03-20 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722789', 'tblTempUsageDetail_20' ) end [2025-03-20 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722789', 'tblTempVendorCDR_20' ) start [2025-03-20 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722789', 'tblTempVendorCDR_20' ) end [2025-03-20 12:18:21] Production.INFO: ProcessCDR(1,14722789,1,1,2) [2025-03-20 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722789', 'tblTempUsageDetail_20' ) start [2025-03-20 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722789', 'tblTempUsageDetail_20' ) end [2025-03-20 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:18:27] Production.INFO: ==23132== Releasing lock... [2025-03-20 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:18:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:19:06 [end_date_ymd] => 2025-03-20 12:19:06 [RateCDR] => 1 ) [2025-03-20 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:19:06' and `end` < '2025-03-20 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:19:19] Production.INFO: count ==5708 [2025-03-20 12:19:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:19:06 - End Time 2025-03-20 12:19:06 [2025-03-20 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722794', 'tblTempUsageDetail_20' ) start [2025-03-20 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722794', 'tblTempUsageDetail_20' ) end [2025-03-20 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722794', 'tblTempVendorCDR_20' ) start [2025-03-20 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722794', 'tblTempVendorCDR_20' ) end [2025-03-20 12:19:22] Production.INFO: ProcessCDR(1,14722794,1,1,2) [2025-03-20 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722794', 'tblTempUsageDetail_20' ) start [2025-03-20 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722794', 'tblTempUsageDetail_20' ) end [2025-03-20 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:19:27] Production.INFO: ==23217== Releasing lock... [2025-03-20 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:19:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:20:06 [end_date_ymd] => 2025-03-20 12:20:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:20:06' and `end` < '2025-03-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 ,'') [2025-03-20 12:20:19] Production.INFO: count ==5698 [2025-03-20 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:20:06 - End Time 2025-03-20 12:20:06 [2025-03-20 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722800', 'tblTempUsageDetail_20' ) start [2025-03-20 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722800', 'tblTempUsageDetail_20' ) end [2025-03-20 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722800', 'tblTempVendorCDR_20' ) start [2025-03-20 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722800', 'tblTempVendorCDR_20' ) end [2025-03-20 12:20:22] Production.INFO: ProcessCDR(1,14722800,1,1,2) [2025-03-20 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722800', 'tblTempUsageDetail_20' ) start [2025-03-20 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722800', 'tblTempUsageDetail_20' ) end [2025-03-20 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:20:27] Production.INFO: ==23298== Releasing lock... [2025-03-20 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:20:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:21:05 [end_date_ymd] => 2025-03-20 12:21:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:21:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:21:19] Production.INFO: count ==5727 [2025-03-20 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:21:05 - End Time 2025-03-20 12:21:05 [2025-03-20 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722805', 'tblTempUsageDetail_20' ) start [2025-03-20 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722805', 'tblTempUsageDetail_20' ) end [2025-03-20 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722805', 'tblTempVendorCDR_20' ) start [2025-03-20 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722805', 'tblTempVendorCDR_20' ) end [2025-03-20 12:21:21] Production.INFO: ProcessCDR(1,14722805,1,1,2) [2025-03-20 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722805', 'tblTempUsageDetail_20' ) start [2025-03-20 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722805', 'tblTempUsageDetail_20' ) end [2025-03-20 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:21:26] Production.INFO: ==23385== Releasing lock... [2025-03-20 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:21:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:22:05 [end_date_ymd] => 2025-03-20 12:22:05 [RateCDR] => 1 ) [2025-03-20 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:22:05' and `end` < '2025-03-20 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:22:19] Production.INFO: count ==5725 [2025-03-20 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:22:05 - End Time 2025-03-20 12:22:05 [2025-03-20 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722810', 'tblTempUsageDetail_20' ) start [2025-03-20 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722810', 'tblTempUsageDetail_20' ) end [2025-03-20 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722810', 'tblTempVendorCDR_20' ) start [2025-03-20 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722810', 'tblTempVendorCDR_20' ) end [2025-03-20 12:22:22] Production.INFO: ProcessCDR(1,14722810,1,1,2) [2025-03-20 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722810', 'tblTempUsageDetail_20' ) start [2025-03-20 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722810', 'tblTempUsageDetail_20' ) end [2025-03-20 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:22:27] Production.INFO: ==23477== Releasing lock... [2025-03-20 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:22:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:23:05 [end_date_ymd] => 2025-03-20 12:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:23:19] Production.INFO: count ==5721 [2025-03-20 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:23:05 - End Time 2025-03-20 12:23:05 [2025-03-20 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722815', 'tblTempUsageDetail_20' ) start [2025-03-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722815', 'tblTempUsageDetail_20' ) end [2025-03-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722815', 'tblTempVendorCDR_20' ) start [2025-03-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722815', 'tblTempVendorCDR_20' ) end [2025-03-20 12:23:21] Production.INFO: ProcessCDR(1,14722815,1,1,2) [2025-03-20 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722815', 'tblTempUsageDetail_20' ) start [2025-03-20 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722815', 'tblTempUsageDetail_20' ) end [2025-03-20 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:23:26] Production.INFO: ==23556== Releasing lock... [2025-03-20 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:23:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:24:05 [end_date_ymd] => 2025-03-20 12:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:24:19] Production.INFO: count ==5726 [2025-03-20 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:24:05 - End Time 2025-03-20 12:24:05 [2025-03-20 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722820', 'tblTempUsageDetail_20' ) start [2025-03-20 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722820', 'tblTempUsageDetail_20' ) end [2025-03-20 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722820', 'tblTempVendorCDR_20' ) start [2025-03-20 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722820', 'tblTempVendorCDR_20' ) end [2025-03-20 12:24:21] Production.INFO: ProcessCDR(1,14722820,1,1,2) [2025-03-20 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722820', 'tblTempUsageDetail_20' ) start [2025-03-20 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722820', 'tblTempUsageDetail_20' ) end [2025-03-20 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:24:27] Production.INFO: ==23638== Releasing lock... [2025-03-20 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:24:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:25:05 [end_date_ymd] => 2025-03-20 12:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:25:19] Production.INFO: count ==5744 [2025-03-20 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:25:05 - End Time 2025-03-20 12:25:05 [2025-03-20 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722825', 'tblTempUsageDetail_20' ) start [2025-03-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722825', 'tblTempUsageDetail_20' ) end [2025-03-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722825', 'tblTempVendorCDR_20' ) start [2025-03-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722825', 'tblTempVendorCDR_20' ) end [2025-03-20 12:25:22] Production.INFO: ProcessCDR(1,14722825,1,1,2) [2025-03-20 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722825', 'tblTempUsageDetail_20' ) start [2025-03-20 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722825', 'tblTempUsageDetail_20' ) end [2025-03-20 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:25:27] Production.INFO: ==23723== Releasing lock... [2025-03-20 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:25:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:26:05 [end_date_ymd] => 2025-03-20 12:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:26:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:26:19] Production.INFO: count ==5747 [2025-03-20 12:26:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:26:05 - End Time 2025-03-20 12:26:05 [2025-03-20 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722830', 'tblTempUsageDetail_20' ) start [2025-03-20 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722830', 'tblTempUsageDetail_20' ) end [2025-03-20 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722830', 'tblTempVendorCDR_20' ) start [2025-03-20 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722830', 'tblTempVendorCDR_20' ) end [2025-03-20 12:26:22] Production.INFO: ProcessCDR(1,14722830,1,1,2) [2025-03-20 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722830', 'tblTempUsageDetail_20' ) start [2025-03-20 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722830', 'tblTempUsageDetail_20' ) end [2025-03-20 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:26:27] Production.INFO: ==23809== Releasing lock... [2025-03-20 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:26:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:27:06 [end_date_ymd] => 2025-03-20 12:27:06 [RateCDR] => 1 ) [2025-03-20 12:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:27:06' and `end` < '2025-03-20 12:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:27:19] Production.INFO: count ==5752 [2025-03-20 12:27:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:27:06 - End Time 2025-03-20 12:27:06 [2025-03-20 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722835', 'tblTempUsageDetail_20' ) start [2025-03-20 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722835', 'tblTempUsageDetail_20' ) end [2025-03-20 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722835', 'tblTempVendorCDR_20' ) start [2025-03-20 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722835', 'tblTempVendorCDR_20' ) end [2025-03-20 12:27:22] Production.INFO: ProcessCDR(1,14722835,1,1,2) [2025-03-20 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722835', 'tblTempUsageDetail_20' ) start [2025-03-20 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722835', 'tblTempUsageDetail_20' ) end [2025-03-20 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:27:27] Production.INFO: ==23893== Releasing lock... [2025-03-20 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:27:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:28:05 [end_date_ymd] => 2025-03-20 12:28:05 [RateCDR] => 1 ) [2025-03-20 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:28:05' and `end` < '2025-03-20 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:28:18] Production.INFO: count ==5758 [2025-03-20 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:28:05 - End Time 2025-03-20 12:28:05 [2025-03-20 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722840', 'tblTempUsageDetail_20' ) start [2025-03-20 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722840', 'tblTempUsageDetail_20' ) end [2025-03-20 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722840', 'tblTempVendorCDR_20' ) start [2025-03-20 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722840', 'tblTempVendorCDR_20' ) end [2025-03-20 12:28:21] Production.INFO: ProcessCDR(1,14722840,1,1,2) [2025-03-20 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722840', 'tblTempUsageDetail_20' ) start [2025-03-20 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722840', 'tblTempUsageDetail_20' ) end [2025-03-20 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:28:26] Production.INFO: ==23977== Releasing lock... [2025-03-20 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:28:26] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:29:06 [end_date_ymd] => 2025-03-20 12:29:06 [RateCDR] => 1 ) [2025-03-20 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:29:06' and `end` < '2025-03-20 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:29:19] Production.INFO: count ==5762 [2025-03-20 12:29:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:29:06 - End Time 2025-03-20 12:29:06 [2025-03-20 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722845', 'tblTempUsageDetail_20' ) start [2025-03-20 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722845', 'tblTempUsageDetail_20' ) end [2025-03-20 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722845', 'tblTempVendorCDR_20' ) start [2025-03-20 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722845', 'tblTempVendorCDR_20' ) end [2025-03-20 12:29:22] Production.INFO: ProcessCDR(1,14722845,1,1,2) [2025-03-20 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722845', 'tblTempUsageDetail_20' ) start [2025-03-20 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722845', 'tblTempUsageDetail_20' ) end [2025-03-20 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:29:27] Production.INFO: ==24061== Releasing lock... [2025-03-20 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:29:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:30:05 [end_date_ymd] => 2025-03-20 12:30:05 [RateCDR] => 1 ) [2025-03-20 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:30:05' and `end` < '2025-03-20 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:30:19] Production.INFO: count ==5747 [2025-03-20 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:30:05 - End Time 2025-03-20 12:30:05 [2025-03-20 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722850', 'tblTempUsageDetail_20' ) start [2025-03-20 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722850', 'tblTempUsageDetail_20' ) end [2025-03-20 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722850', 'tblTempVendorCDR_20' ) start [2025-03-20 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722850', 'tblTempVendorCDR_20' ) end [2025-03-20 12:30:22] Production.INFO: ProcessCDR(1,14722850,1,1,2) [2025-03-20 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722850', 'tblTempUsageDetail_20' ) start [2025-03-20 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722850', 'tblTempUsageDetail_20' ) end [2025-03-20 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:30:27] Production.INFO: ==24150== Releasing lock... [2025-03-20 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:30:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:31:05 [end_date_ymd] => 2025-03-20 12:31:05 [RateCDR] => 1 ) [2025-03-20 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:31:05' and `end` < '2025-03-20 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:31:19] Production.INFO: count ==5778 [2025-03-20 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:31:05 - End Time 2025-03-20 12:31:05 [2025-03-20 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722856', 'tblTempUsageDetail_20' ) start [2025-03-20 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722856', 'tblTempUsageDetail_20' ) end [2025-03-20 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722856', 'tblTempVendorCDR_20' ) start [2025-03-20 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722856', 'tblTempVendorCDR_20' ) end [2025-03-20 12:31:22] Production.INFO: ProcessCDR(1,14722856,1,1,2) [2025-03-20 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722856', 'tblTempUsageDetail_20' ) start [2025-03-20 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722856', 'tblTempUsageDetail_20' ) end [2025-03-20 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:31:26] Production.INFO: ==24237== Releasing lock... [2025-03-20 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:31:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-20 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:32:05 [end_date_ymd] => 2025-03-20 12:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:32:18] Production.INFO: count ==5763 [2025-03-20 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:32:05 - End Time 2025-03-20 12:32:05 [2025-03-20 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722861', 'tblTempUsageDetail_20' ) start [2025-03-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722861', 'tblTempUsageDetail_20' ) end [2025-03-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722861', 'tblTempVendorCDR_20' ) start [2025-03-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722861', 'tblTempVendorCDR_20' ) end [2025-03-20 12:32:21] Production.INFO: ProcessCDR(1,14722861,1,1,2) [2025-03-20 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722861', 'tblTempUsageDetail_20' ) start [2025-03-20 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722861', 'tblTempUsageDetail_20' ) end [2025-03-20 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:32:26] Production.INFO: ==24315== Releasing lock... [2025-03-20 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:32:26] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:33:05 [end_date_ymd] => 2025-03-20 12:33:05 [RateCDR] => 1 ) [2025-03-20 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:33:05' and `end` < '2025-03-20 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:33:19] Production.INFO: count ==5750 [2025-03-20 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:33:05 - End Time 2025-03-20 12:33:05 [2025-03-20 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722866', 'tblTempUsageDetail_20' ) start [2025-03-20 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722866', 'tblTempUsageDetail_20' ) end [2025-03-20 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722866', 'tblTempVendorCDR_20' ) start [2025-03-20 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722866', 'tblTempVendorCDR_20' ) end [2025-03-20 12:33:22] Production.INFO: ProcessCDR(1,14722866,1,1,2) [2025-03-20 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722866', 'tblTempUsageDetail_20' ) start [2025-03-20 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722866', 'tblTempUsageDetail_20' ) end [2025-03-20 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:33:27] Production.INFO: ==24394== Releasing lock... [2025-03-20 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:33:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:34:05 [end_date_ymd] => 2025-03-20 12:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:34:19] Production.INFO: count ==5734 [2025-03-20 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:34:05 - End Time 2025-03-20 12:34:05 [2025-03-20 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722871', 'tblTempUsageDetail_20' ) start [2025-03-20 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722871', 'tblTempUsageDetail_20' ) end [2025-03-20 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722871', 'tblTempVendorCDR_20' ) start [2025-03-20 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722871', 'tblTempVendorCDR_20' ) end [2025-03-20 12:34:21] Production.INFO: ProcessCDR(1,14722871,1,1,2) [2025-03-20 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722871', 'tblTempUsageDetail_20' ) start [2025-03-20 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722871', 'tblTempUsageDetail_20' ) end [2025-03-20 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:34:27] Production.INFO: ==24522== Releasing lock... [2025-03-20 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:34:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:35:05 [end_date_ymd] => 2025-03-20 12:35:05 [RateCDR] => 1 ) [2025-03-20 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:35:05' and `end` < '2025-03-20 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:35:19] Production.INFO: count ==5731 [2025-03-20 12:35:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:35:05 - End Time 2025-03-20 12:35:05 [2025-03-20 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722876', 'tblTempUsageDetail_20' ) start [2025-03-20 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722876', 'tblTempUsageDetail_20' ) end [2025-03-20 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722876', 'tblTempVendorCDR_20' ) start [2025-03-20 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722876', 'tblTempVendorCDR_20' ) end [2025-03-20 12:35:22] Production.INFO: ProcessCDR(1,14722876,1,1,2) [2025-03-20 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722876', 'tblTempUsageDetail_20' ) start [2025-03-20 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722876', 'tblTempUsageDetail_20' ) end [2025-03-20 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:35:27] Production.INFO: ==24609== Releasing lock... [2025-03-20 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:35:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:36:04 [end_date_ymd] => 2025-03-20 12:36:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:36:04' and `end` < '2025-03-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 ,'') [2025-03-20 12:36:18] Production.INFO: count ==5728 [2025-03-20 12:36:20] Production.ERROR: pbx CDR StartTime 2025-03-20 09:36:04 - End Time 2025-03-20 12:36:04 [2025-03-20 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722881', 'tblTempUsageDetail_20' ) start [2025-03-20 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722881', 'tblTempUsageDetail_20' ) end [2025-03-20 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722881', 'tblTempVendorCDR_20' ) start [2025-03-20 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722881', 'tblTempVendorCDR_20' ) end [2025-03-20 12:36:21] Production.INFO: ProcessCDR(1,14722881,1,1,2) [2025-03-20 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722881', 'tblTempUsageDetail_20' ) start [2025-03-20 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722881', 'tblTempUsageDetail_20' ) end [2025-03-20 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:36:26] Production.INFO: ==24692== Releasing lock... [2025-03-20 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:36:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:37:05 [end_date_ymd] => 2025-03-20 12:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:37:19] Production.INFO: count ==5706 [2025-03-20 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:37:05 - End Time 2025-03-20 12:37:05 [2025-03-20 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722886', 'tblTempUsageDetail_20' ) start [2025-03-20 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722886', 'tblTempUsageDetail_20' ) end [2025-03-20 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722886', 'tblTempVendorCDR_20' ) start [2025-03-20 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722886', 'tblTempVendorCDR_20' ) end [2025-03-20 12:37:21] Production.INFO: ProcessCDR(1,14722886,1,1,2) [2025-03-20 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722886', 'tblTempUsageDetail_20' ) start [2025-03-20 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722886', 'tblTempUsageDetail_20' ) end [2025-03-20 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:37:27] Production.INFO: ==24768== Releasing lock... [2025-03-20 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:37:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:38:06 [end_date_ymd] => 2025-03-20 12:38:06 [RateCDR] => 1 ) [2025-03-20 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:38:06' and `end` < '2025-03-20 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:38:20] Production.INFO: count ==5680 [2025-03-20 12:38:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:38:06 - End Time 2025-03-20 12:38:06 [2025-03-20 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722891', 'tblTempUsageDetail_20' ) start [2025-03-20 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722891', 'tblTempUsageDetail_20' ) end [2025-03-20 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722891', 'tblTempVendorCDR_20' ) start [2025-03-20 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722891', 'tblTempVendorCDR_20' ) end [2025-03-20 12:38:23] Production.INFO: ProcessCDR(1,14722891,1,1,2) [2025-03-20 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722891', 'tblTempUsageDetail_20' ) start [2025-03-20 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722891', 'tblTempUsageDetail_20' ) end [2025-03-20 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:38:28] Production.INFO: ==24853== Releasing lock... [2025-03-20 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:38:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:39:05 [end_date_ymd] => 2025-03-20 12:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:39:19] Production.INFO: count ==5687 [2025-03-20 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:39:05 - End Time 2025-03-20 12:39:05 [2025-03-20 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722896', 'tblTempUsageDetail_20' ) start [2025-03-20 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722896', 'tblTempUsageDetail_20' ) end [2025-03-20 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722896', 'tblTempVendorCDR_20' ) start [2025-03-20 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722896', 'tblTempVendorCDR_20' ) end [2025-03-20 12:39:21] Production.INFO: ProcessCDR(1,14722896,1,1,2) [2025-03-20 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722896', 'tblTempUsageDetail_20' ) start [2025-03-20 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722896', 'tblTempUsageDetail_20' ) end [2025-03-20 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:39:27] Production.INFO: ==24938== Releasing lock... [2025-03-20 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:39:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:40:06 [end_date_ymd] => 2025-03-20 12:40:06 [RateCDR] => 1 ) [2025-03-20 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:40:06' and `end` < '2025-03-20 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:40:20] Production.INFO: count ==5678 [2025-03-20 12:40:23] Production.ERROR: pbx CDR StartTime 2025-03-20 09:40:06 - End Time 2025-03-20 12:40:06 [2025-03-20 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722902', 'tblTempUsageDetail_20' ) start [2025-03-20 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722902', 'tblTempUsageDetail_20' ) end [2025-03-20 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722902', 'tblTempVendorCDR_20' ) start [2025-03-20 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722902', 'tblTempVendorCDR_20' ) end [2025-03-20 12:40:23] Production.INFO: ProcessCDR(1,14722902,1,1,2) [2025-03-20 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722902', 'tblTempUsageDetail_20' ) start [2025-03-20 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722902', 'tblTempUsageDetail_20' ) end [2025-03-20 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:40:28] Production.INFO: ==25023== Releasing lock... [2025-03-20 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:40:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:41:05 [end_date_ymd] => 2025-03-20 12:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:41:18] Production.INFO: count ==5691 [2025-03-20 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:41:05 - End Time 2025-03-20 12:41:05 [2025-03-20 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722907', 'tblTempUsageDetail_20' ) start [2025-03-20 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722907', 'tblTempUsageDetail_20' ) end [2025-03-20 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722907', 'tblTempVendorCDR_20' ) start [2025-03-20 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722907', 'tblTempVendorCDR_20' ) end [2025-03-20 12:41:21] Production.INFO: ProcessCDR(1,14722907,1,1,2) [2025-03-20 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722907', 'tblTempUsageDetail_20' ) start [2025-03-20 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722907', 'tblTempUsageDetail_20' ) end [2025-03-20 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:41:26] Production.INFO: ==25111== Releasing lock... [2025-03-20 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:41:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:42:06 [end_date_ymd] => 2025-03-20 12:42:06 [RateCDR] => 1 ) [2025-03-20 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:42:06' and `end` < '2025-03-20 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:42:19] Production.INFO: count ==5692 [2025-03-20 12:42:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:42:06 - End Time 2025-03-20 12:42:06 [2025-03-20 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722912', 'tblTempUsageDetail_20' ) start [2025-03-20 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722912', 'tblTempUsageDetail_20' ) end [2025-03-20 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722912', 'tblTempVendorCDR_20' ) start [2025-03-20 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722912', 'tblTempVendorCDR_20' ) end [2025-03-20 12:42:22] Production.INFO: ProcessCDR(1,14722912,1,1,2) [2025-03-20 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722912', 'tblTempUsageDetail_20' ) start [2025-03-20 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722912', 'tblTempUsageDetail_20' ) end [2025-03-20 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:42:27] Production.INFO: ==25194== Releasing lock... [2025-03-20 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:42:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:43:05 [end_date_ymd] => 2025-03-20 12:43:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:43:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:43:19] Production.INFO: count ==5683 [2025-03-20 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:43:05 - End Time 2025-03-20 12:43:05 [2025-03-20 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722917', 'tblTempUsageDetail_20' ) start [2025-03-20 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722917', 'tblTempUsageDetail_20' ) end [2025-03-20 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722917', 'tblTempVendorCDR_20' ) start [2025-03-20 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722917', 'tblTempVendorCDR_20' ) end [2025-03-20 12:43:21] Production.INFO: ProcessCDR(1,14722917,1,1,2) [2025-03-20 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722917', 'tblTempUsageDetail_20' ) start [2025-03-20 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722917', 'tblTempUsageDetail_20' ) end [2025-03-20 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:43:27] Production.INFO: ==25279== Releasing lock... [2025-03-20 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:43:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:44:05 [end_date_ymd] => 2025-03-20 12:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:44:19] Production.INFO: count ==5705 [2025-03-20 12:44:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:44:05 - End Time 2025-03-20 12:44:05 [2025-03-20 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722922', 'tblTempUsageDetail_20' ) start [2025-03-20 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722922', 'tblTempUsageDetail_20' ) end [2025-03-20 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722922', 'tblTempVendorCDR_20' ) start [2025-03-20 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722922', 'tblTempVendorCDR_20' ) end [2025-03-20 12:44:22] Production.INFO: ProcessCDR(1,14722922,1,1,2) [2025-03-20 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722922', 'tblTempUsageDetail_20' ) start [2025-03-20 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722922', 'tblTempUsageDetail_20' ) end [2025-03-20 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:44:27] Production.INFO: ==25366== Releasing lock... [2025-03-20 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:44:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:45:05 [end_date_ymd] => 2025-03-20 12:45:05 [RateCDR] => 1 ) [2025-03-20 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:45:05' and `end` < '2025-03-20 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:45:18] Production.INFO: count ==5717 [2025-03-20 12:45:20] Production.ERROR: pbx CDR StartTime 2025-03-20 09:45:05 - End Time 2025-03-20 12:45:05 [2025-03-20 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722927', 'tblTempUsageDetail_20' ) start [2025-03-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722927', 'tblTempUsageDetail_20' ) end [2025-03-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722927', 'tblTempVendorCDR_20' ) start [2025-03-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722927', 'tblTempVendorCDR_20' ) end [2025-03-20 12:45:20] Production.INFO: ProcessCDR(1,14722927,1,1,2) [2025-03-20 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722927', 'tblTempUsageDetail_20' ) start [2025-03-20 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722927', 'tblTempUsageDetail_20' ) end [2025-03-20 12:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:45:26] Production.INFO: ==25456== Releasing lock... [2025-03-20 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:45:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:46:06 [end_date_ymd] => 2025-03-20 12:46:06 [RateCDR] => 1 ) [2025-03-20 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:46:06' and `end` < '2025-03-20 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:46:19] Production.INFO: count ==5718 [2025-03-20 12:46:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:46:06 - End Time 2025-03-20 12:46:06 [2025-03-20 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722932', 'tblTempUsageDetail_20' ) start [2025-03-20 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722932', 'tblTempUsageDetail_20' ) end [2025-03-20 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722932', 'tblTempVendorCDR_20' ) start [2025-03-20 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722932', 'tblTempVendorCDR_20' ) end [2025-03-20 12:46:22] Production.INFO: ProcessCDR(1,14722932,1,1,2) [2025-03-20 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722932', 'tblTempUsageDetail_20' ) start [2025-03-20 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722932', 'tblTempUsageDetail_20' ) end [2025-03-20 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:46:28] Production.INFO: ==25541== Releasing lock... [2025-03-20 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:46:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:47:05 [end_date_ymd] => 2025-03-20 12:47:05 [RateCDR] => 1 ) [2025-03-20 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:47:05' and `end` < '2025-03-20 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:47:19] Production.INFO: count ==5713 [2025-03-20 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:47:05 - End Time 2025-03-20 12:47:05 [2025-03-20 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722937', 'tblTempUsageDetail_20' ) start [2025-03-20 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722937', 'tblTempUsageDetail_20' ) end [2025-03-20 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722937', 'tblTempVendorCDR_20' ) start [2025-03-20 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722937', 'tblTempVendorCDR_20' ) end [2025-03-20 12:47:21] Production.INFO: ProcessCDR(1,14722937,1,1,2) [2025-03-20 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722937', 'tblTempUsageDetail_20' ) start [2025-03-20 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722937', 'tblTempUsageDetail_20' ) end [2025-03-20 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:47:27] Production.INFO: ==25619== Releasing lock... [2025-03-20 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:47:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:48:05 [end_date_ymd] => 2025-03-20 12:48:05 [RateCDR] => 1 ) [2025-03-20 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:48:05' and `end` < '2025-03-20 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:48:19] Production.INFO: count ==5736 [2025-03-20 12:48:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:48:05 - End Time 2025-03-20 12:48:05 [2025-03-20 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722942', 'tblTempUsageDetail_20' ) start [2025-03-20 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722942', 'tblTempUsageDetail_20' ) end [2025-03-20 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722942', 'tblTempVendorCDR_20' ) start [2025-03-20 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722942', 'tblTempVendorCDR_20' ) end [2025-03-20 12:48:22] Production.INFO: ProcessCDR(1,14722942,1,1,2) [2025-03-20 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722942', 'tblTempUsageDetail_20' ) start [2025-03-20 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722942', 'tblTempUsageDetail_20' ) end [2025-03-20 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:48:27] Production.INFO: ==25705== Releasing lock... [2025-03-20 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:48:27] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:49:05 [end_date_ymd] => 2025-03-20 12:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:49:19] Production.INFO: count ==5745 [2025-03-20 12:49:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:49:05 - End Time 2025-03-20 12:49:05 [2025-03-20 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722947', 'tblTempUsageDetail_20' ) start [2025-03-20 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722947', 'tblTempUsageDetail_20' ) end [2025-03-20 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722947', 'tblTempVendorCDR_20' ) start [2025-03-20 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722947', 'tblTempVendorCDR_20' ) end [2025-03-20 12:49:22] Production.INFO: ProcessCDR(1,14722947,1,1,2) [2025-03-20 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722947', 'tblTempUsageDetail_20' ) start [2025-03-20 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722947', 'tblTempUsageDetail_20' ) end [2025-03-20 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:49:28] Production.INFO: ==25831== Releasing lock... [2025-03-20 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:49:28] Production.INFO: 71 MB #Memory Used# [2025-03-20 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:50:07 [end_date_ymd] => 2025-03-20 12:50:07 [RateCDR] => 1 ) [2025-03-20 12:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:50:07' and `end` < '2025-03-20 12:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:50:20] Production.INFO: count ==5778 [2025-03-20 12:50:23] Production.ERROR: pbx CDR StartTime 2025-03-20 09:50:07 - End Time 2025-03-20 12:50:07 [2025-03-20 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722953', 'tblTempUsageDetail_20' ) start [2025-03-20 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722953', 'tblTempUsageDetail_20' ) end [2025-03-20 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722953', 'tblTempVendorCDR_20' ) start [2025-03-20 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722953', 'tblTempVendorCDR_20' ) end [2025-03-20 12:50:23] Production.INFO: ProcessCDR(1,14722953,1,1,2) [2025-03-20 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722953', 'tblTempUsageDetail_20' ) start [2025-03-20 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722953', 'tblTempUsageDetail_20' ) end [2025-03-20 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:50:29] Production.INFO: ==25917== Releasing lock... [2025-03-20 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:50:29] Production.INFO: 71.25 MB #Memory Used# [2025-03-20 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:51:05 [end_date_ymd] => 2025-03-20 12:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:51:18] Production.INFO: count ==5807 [2025-03-20 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:51:05 - End Time 2025-03-20 12:51:05 [2025-03-20 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722958', 'tblTempUsageDetail_20' ) start [2025-03-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722958', 'tblTempUsageDetail_20' ) end [2025-03-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722958', 'tblTempVendorCDR_20' ) start [2025-03-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722958', 'tblTempVendorCDR_20' ) end [2025-03-20 12:51:21] Production.INFO: ProcessCDR(1,14722958,1,1,2) [2025-03-20 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722958', 'tblTempUsageDetail_20' ) start [2025-03-20 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722958', 'tblTempUsageDetail_20' ) end [2025-03-20 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:51:26] Production.INFO: ==25997== Releasing lock... [2025-03-20 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:51:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-20 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:52:06 [end_date_ymd] => 2025-03-20 12:52:06 [RateCDR] => 1 ) [2025-03-20 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:52:06' and `end` < '2025-03-20 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:52:20] Production.INFO: count ==5825 [2025-03-20 12:52:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:52:06 - End Time 2025-03-20 12:52:06 [2025-03-20 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722963', 'tblTempUsageDetail_20' ) start [2025-03-20 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722963', 'tblTempUsageDetail_20' ) end [2025-03-20 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722963', 'tblTempVendorCDR_20' ) start [2025-03-20 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722963', 'tblTempVendorCDR_20' ) end [2025-03-20 12:52:23] Production.INFO: ProcessCDR(1,14722963,1,1,2) [2025-03-20 12:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722963', 'tblTempUsageDetail_20' ) start [2025-03-20 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722963', 'tblTempUsageDetail_20' ) end [2025-03-20 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:52:28] Production.INFO: ==26077== Releasing lock... [2025-03-20 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:52:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-20 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:53:05 [end_date_ymd] => 2025-03-20 12:53:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:53:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:53:19] Production.INFO: count ==5818 [2025-03-20 12:53:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:53:05 - End Time 2025-03-20 12:53:05 [2025-03-20 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722968', 'tblTempUsageDetail_20' ) start [2025-03-20 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722968', 'tblTempUsageDetail_20' ) end [2025-03-20 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722968', 'tblTempVendorCDR_20' ) start [2025-03-20 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722968', 'tblTempVendorCDR_20' ) end [2025-03-20 12:53:22] Production.INFO: ProcessCDR(1,14722968,1,1,2) [2025-03-20 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722968', 'tblTempUsageDetail_20' ) start [2025-03-20 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722968', 'tblTempUsageDetail_20' ) end [2025-03-20 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:53:27] Production.INFO: ==26162== Releasing lock... [2025-03-20 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:53:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-20 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:54:05 [end_date_ymd] => 2025-03-20 12:54:05 [RateCDR] => 1 ) [2025-03-20 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:54:19] Production.INFO: count ==5819 [2025-03-20 12:54:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:54:05 - End Time 2025-03-20 12:54:05 [2025-03-20 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722973', 'tblTempUsageDetail_20' ) start [2025-03-20 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722973', 'tblTempUsageDetail_20' ) end [2025-03-20 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722973', 'tblTempVendorCDR_20' ) start [2025-03-20 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722973', 'tblTempVendorCDR_20' ) end [2025-03-20 12:54:22] Production.INFO: ProcessCDR(1,14722973,1,1,2) [2025-03-20 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722973', 'tblTempUsageDetail_20' ) start [2025-03-20 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722973', 'tblTempUsageDetail_20' ) end [2025-03-20 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:54:27] Production.INFO: ==26246== Releasing lock... [2025-03-20 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:54:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-20 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:55:05 [end_date_ymd] => 2025-03-20 12:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:55:19] Production.INFO: count ==5832 [2025-03-20 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:55:05 - End Time 2025-03-20 12:55:05 [2025-03-20 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722978', 'tblTempUsageDetail_20' ) start [2025-03-20 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722978', 'tblTempUsageDetail_20' ) end [2025-03-20 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722978', 'tblTempVendorCDR_20' ) start [2025-03-20 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722978', 'tblTempVendorCDR_20' ) end [2025-03-20 12:55:22] Production.INFO: ProcessCDR(1,14722978,1,1,2) [2025-03-20 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722978', 'tblTempUsageDetail_20' ) start [2025-03-20 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722978', 'tblTempUsageDetail_20' ) end [2025-03-20 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:55:27] Production.INFO: ==26335== Releasing lock... [2025-03-20 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:55:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-20 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:56:05 [end_date_ymd] => 2025-03-20 12:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:56:19] Production.INFO: count ==5849 [2025-03-20 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:56:05 - End Time 2025-03-20 12:56:05 [2025-03-20 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722983', 'tblTempUsageDetail_20' ) start [2025-03-20 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722983', 'tblTempUsageDetail_20' ) end [2025-03-20 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722983', 'tblTempVendorCDR_20' ) start [2025-03-20 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722983', 'tblTempVendorCDR_20' ) end [2025-03-20 12:56:21] Production.INFO: ProcessCDR(1,14722983,1,1,2) [2025-03-20 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722983', 'tblTempUsageDetail_20' ) start [2025-03-20 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722983', 'tblTempUsageDetail_20' ) end [2025-03-20 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:56:27] Production.INFO: ==26417== Releasing lock... [2025-03-20 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:56:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-20 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:57:05 [end_date_ymd] => 2025-03-20 12:57:05 [RateCDR] => 1 ) [2025-03-20 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:57:05' and `end` < '2025-03-20 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:57:18] Production.INFO: count ==5882 [2025-03-20 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:57:05 - End Time 2025-03-20 12:57:05 [2025-03-20 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722988', 'tblTempUsageDetail_20' ) start [2025-03-20 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722988', 'tblTempUsageDetail_20' ) end [2025-03-20 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722988', 'tblTempVendorCDR_20' ) start [2025-03-20 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722988', 'tblTempVendorCDR_20' ) end [2025-03-20 12:57:21] Production.INFO: ProcessCDR(1,14722988,1,1,2) [2025-03-20 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722988', 'tblTempUsageDetail_20' ) start [2025-03-20 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722988', 'tblTempUsageDetail_20' ) end [2025-03-20 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:57:27] Production.INFO: ==26498== Releasing lock... [2025-03-20 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:57:27] Production.INFO: 72 MB #Memory Used# [2025-03-20 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:58:05 [end_date_ymd] => 2025-03-20 12:58:05 [RateCDR] => 1 ) [2025-03-20 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 09:58:05' and `end` < '2025-03-20 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 12:58:19] Production.INFO: count ==5898 [2025-03-20 12:58:22] Production.ERROR: pbx CDR StartTime 2025-03-20 09:58:05 - End Time 2025-03-20 12:58:05 [2025-03-20 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722993', 'tblTempUsageDetail_20' ) start [2025-03-20 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722993', 'tblTempUsageDetail_20' ) end [2025-03-20 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722993', 'tblTempVendorCDR_20' ) start [2025-03-20 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722993', 'tblTempVendorCDR_20' ) end [2025-03-20 12:58:22] Production.INFO: ProcessCDR(1,14722993,1,1,2) [2025-03-20 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722993', 'tblTempUsageDetail_20' ) start [2025-03-20 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722993', 'tblTempUsageDetail_20' ) end [2025-03-20 12:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:58:28] Production.INFO: ==26577== Releasing lock... [2025-03-20 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:58:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-20 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 09:59:05 [end_date_ymd] => 2025-03-20 12:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 09:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 12:59:19] Production.INFO: count ==5878 [2025-03-20 12:59:21] Production.ERROR: pbx CDR StartTime 2025-03-20 09:59:05 - End Time 2025-03-20 12:59:05 [2025-03-20 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722998', 'tblTempUsageDetail_20' ) start [2025-03-20 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14722998', 'tblTempUsageDetail_20' ) end [2025-03-20 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722998', 'tblTempVendorCDR_20' ) start [2025-03-20 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14722998', 'tblTempVendorCDR_20' ) end [2025-03-20 12:59:21] Production.INFO: ProcessCDR(1,14722998,1,1,2) [2025-03-20 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14722998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14722998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14722998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14722998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722998', 'tblTempUsageDetail_20' ) start [2025-03-20 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14722998', 'tblTempUsageDetail_20' ) end [2025-03-20 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 12:59:27] Production.INFO: ==26672== Releasing lock... [2025-03-20 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 12:59:27] Production.INFO: 72 MB #Memory Used# [2025-03-20 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:00:05 [end_date_ymd] => 2025-03-20 13:00:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:00:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:00:19] Production.INFO: count ==5895 [2025-03-20 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:00:05 - End Time 2025-03-20 13:00:05 [2025-03-20 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723003', 'tblTempUsageDetail_20' ) start [2025-03-20 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723003', 'tblTempUsageDetail_20' ) end [2025-03-20 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723003', 'tblTempVendorCDR_20' ) start [2025-03-20 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723003', 'tblTempVendorCDR_20' ) end [2025-03-20 13:00:22] Production.INFO: ProcessCDR(1,14723003,1,1,2) [2025-03-20 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723003', 'tblTempUsageDetail_20' ) start [2025-03-20 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723003', 'tblTempUsageDetail_20' ) end [2025-03-20 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:00:28] Production.INFO: ==26760== Releasing lock... [2025-03-20 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:00:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-20 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:01:05 [end_date_ymd] => 2025-03-20 13:01:05 [RateCDR] => 1 ) [2025-03-20 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:01:05' and `end` < '2025-03-20 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:01:18] Production.INFO: count ==5943 [2025-03-20 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:01:05 - End Time 2025-03-20 13:01:05 [2025-03-20 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723009', 'tblTempUsageDetail_20' ) start [2025-03-20 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723009', 'tblTempUsageDetail_20' ) end [2025-03-20 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723009', 'tblTempVendorCDR_20' ) start [2025-03-20 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723009', 'tblTempVendorCDR_20' ) end [2025-03-20 13:01:21] Production.INFO: ProcessCDR(1,14723009,1,1,2) [2025-03-20 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723009', 'tblTempUsageDetail_20' ) start [2025-03-20 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723009', 'tblTempUsageDetail_20' ) end [2025-03-20 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:01:26] Production.INFO: ==26865== Releasing lock... [2025-03-20 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:01:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-20 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:02:06 [end_date_ymd] => 2025-03-20 13:02:06 [RateCDR] => 1 ) [2025-03-20 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:02:06' and `end` < '2025-03-20 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:02:19] Production.INFO: count ==5969 [2025-03-20 13:02:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:02:06 - End Time 2025-03-20 13:02:06 [2025-03-20 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723014', 'tblTempUsageDetail_20' ) start [2025-03-20 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723014', 'tblTempUsageDetail_20' ) end [2025-03-20 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723014', 'tblTempVendorCDR_20' ) start [2025-03-20 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723014', 'tblTempVendorCDR_20' ) end [2025-03-20 13:02:23] Production.INFO: ProcessCDR(1,14723014,1,1,2) [2025-03-20 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723014', 'tblTempUsageDetail_20' ) start [2025-03-20 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723014', 'tblTempUsageDetail_20' ) end [2025-03-20 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:02:28] Production.INFO: ==26948== Releasing lock... [2025-03-20 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:02:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-20 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:03:05 [end_date_ymd] => 2025-03-20 13:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:03:18] Production.INFO: count ==5989 [2025-03-20 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:03:05 - End Time 2025-03-20 13:03:05 [2025-03-20 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723019', 'tblTempUsageDetail_20' ) start [2025-03-20 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723019', 'tblTempUsageDetail_20' ) end [2025-03-20 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723019', 'tblTempVendorCDR_20' ) start [2025-03-20 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723019', 'tblTempVendorCDR_20' ) end [2025-03-20 13:03:21] Production.INFO: ProcessCDR(1,14723019,1,1,2) [2025-03-20 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723019', 'tblTempUsageDetail_20' ) start [2025-03-20 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723019', 'tblTempUsageDetail_20' ) end [2025-03-20 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:03:27] Production.INFO: ==27028== Releasing lock... [2025-03-20 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:03:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-20 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:04:06 [end_date_ymd] => 2025-03-20 13:04:06 [RateCDR] => 1 ) [2025-03-20 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:04:06' and `end` < '2025-03-20 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:04:19] Production.INFO: count ==6010 [2025-03-20 13:04:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:04:06 - End Time 2025-03-20 13:04:06 [2025-03-20 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723024', 'tblTempUsageDetail_20' ) start [2025-03-20 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723024', 'tblTempUsageDetail_20' ) end [2025-03-20 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723024', 'tblTempVendorCDR_20' ) start [2025-03-20 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723024', 'tblTempVendorCDR_20' ) end [2025-03-20 13:04:22] Production.INFO: ProcessCDR(1,14723024,1,1,2) [2025-03-20 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723024', 'tblTempUsageDetail_20' ) start [2025-03-20 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723024', 'tblTempUsageDetail_20' ) end [2025-03-20 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:04:27] Production.INFO: ==27113== Releasing lock... [2025-03-20 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:04:27] Production.INFO: 73 MB #Memory Used# [2025-03-20 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:05:05 [end_date_ymd] => 2025-03-20 13:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:05:18] Production.INFO: count ==6024 [2025-03-20 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:05:05 - End Time 2025-03-20 13:05:05 [2025-03-20 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723029', 'tblTempUsageDetail_20' ) start [2025-03-20 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723029', 'tblTempUsageDetail_20' ) end [2025-03-20 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723029', 'tblTempVendorCDR_20' ) start [2025-03-20 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723029', 'tblTempVendorCDR_20' ) end [2025-03-20 13:05:21] Production.INFO: ProcessCDR(1,14723029,1,1,2) [2025-03-20 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723029', 'tblTempUsageDetail_20' ) start [2025-03-20 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723029', 'tblTempUsageDetail_20' ) end [2025-03-20 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:05:26] Production.INFO: ==27235== Releasing lock... [2025-03-20 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:05:26] Production.INFO: 73 MB #Memory Used# [2025-03-20 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:06:06 [end_date_ymd] => 2025-03-20 13:06:06 [RateCDR] => 1 ) [2025-03-20 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:06:06' and `end` < '2025-03-20 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:06:19] Production.INFO: count ==6072 [2025-03-20 13:06:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:06:06 - End Time 2025-03-20 13:06:06 [2025-03-20 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723034', 'tblTempUsageDetail_20' ) start [2025-03-20 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723034', 'tblTempUsageDetail_20' ) end [2025-03-20 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723034', 'tblTempVendorCDR_20' ) start [2025-03-20 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723034', 'tblTempVendorCDR_20' ) end [2025-03-20 13:06:22] Production.INFO: ProcessCDR(1,14723034,1,1,2) [2025-03-20 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723034', 'tblTempUsageDetail_20' ) start [2025-03-20 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723034', 'tblTempUsageDetail_20' ) end [2025-03-20 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:06:28] Production.INFO: ==27317== Releasing lock... [2025-03-20 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:06:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:07:04 [end_date_ymd] => 2025-03-20 13:07:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:07:04' and `end` < '2025-03-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 ,'') [2025-03-20 13:07:18] Production.INFO: count ==6073 [2025-03-20 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:07:04 - End Time 2025-03-20 13:07:04 [2025-03-20 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723039', 'tblTempUsageDetail_20' ) start [2025-03-20 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723039', 'tblTempUsageDetail_20' ) end [2025-03-20 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723039', 'tblTempVendorCDR_20' ) start [2025-03-20 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723039', 'tblTempVendorCDR_20' ) end [2025-03-20 13:07:21] Production.INFO: ProcessCDR(1,14723039,1,1,2) [2025-03-20 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723039', 'tblTempUsageDetail_20' ) start [2025-03-20 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723039', 'tblTempUsageDetail_20' ) end [2025-03-20 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:07:27] Production.INFO: ==27394== Releasing lock... [2025-03-20 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:07:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:08:05 [end_date_ymd] => 2025-03-20 13:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:08:19] Production.INFO: count ==6059 [2025-03-20 13:08:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:08:05 - End Time 2025-03-20 13:08:05 [2025-03-20 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723044', 'tblTempUsageDetail_20' ) start [2025-03-20 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723044', 'tblTempUsageDetail_20' ) end [2025-03-20 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723044', 'tblTempVendorCDR_20' ) start [2025-03-20 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723044', 'tblTempVendorCDR_20' ) end [2025-03-20 13:08:22] Production.INFO: ProcessCDR(1,14723044,1,1,2) [2025-03-20 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723044', 'tblTempUsageDetail_20' ) start [2025-03-20 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723044', 'tblTempUsageDetail_20' ) end [2025-03-20 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:08:27] Production.INFO: ==27483== Releasing lock... [2025-03-20 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:08:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:09:05 [end_date_ymd] => 2025-03-20 13:09:05 [RateCDR] => 1 ) [2025-03-20 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:09:05' and `end` < '2025-03-20 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:09:19] Production.INFO: count ==6024 [2025-03-20 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:09:05 - End Time 2025-03-20 13:09:05 [2025-03-20 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723049', 'tblTempUsageDetail_20' ) start [2025-03-20 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723049', 'tblTempUsageDetail_20' ) end [2025-03-20 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723049', 'tblTempVendorCDR_20' ) start [2025-03-20 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723049', 'tblTempVendorCDR_20' ) end [2025-03-20 13:09:22] Production.INFO: ProcessCDR(1,14723049,1,1,2) [2025-03-20 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723049', 'tblTempUsageDetail_20' ) start [2025-03-20 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723049', 'tblTempUsageDetail_20' ) end [2025-03-20 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:09:27] Production.INFO: ==27565== Releasing lock... [2025-03-20 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:09:27] Production.INFO: 73 MB #Memory Used# [2025-03-20 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:10:06 [end_date_ymd] => 2025-03-20 13:10:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:10:06' and `end` < '2025-03-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 ,'') [2025-03-20 13:10:20] Production.INFO: count ==6022 [2025-03-20 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:10:06 - End Time 2025-03-20 13:10:06 [2025-03-20 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723055', 'tblTempUsageDetail_20' ) start [2025-03-20 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723055', 'tblTempUsageDetail_20' ) end [2025-03-20 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723055', 'tblTempVendorCDR_20' ) start [2025-03-20 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723055', 'tblTempVendorCDR_20' ) end [2025-03-20 13:10:23] Production.INFO: ProcessCDR(1,14723055,1,1,2) [2025-03-20 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723055', 'tblTempUsageDetail_20' ) start [2025-03-20 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723055', 'tblTempUsageDetail_20' ) end [2025-03-20 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:10:28] Production.INFO: ==27644== Releasing lock... [2025-03-20 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:10:28] Production.INFO: 73 MB #Memory Used# [2025-03-20 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:11:05 [end_date_ymd] => 2025-03-20 13:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:11:18] Production.INFO: count ==6038 [2025-03-20 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:11:05 - End Time 2025-03-20 13:11:05 [2025-03-20 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723060', 'tblTempUsageDetail_20' ) start [2025-03-20 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723060', 'tblTempUsageDetail_20' ) end [2025-03-20 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723060', 'tblTempVendorCDR_20' ) start [2025-03-20 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723060', 'tblTempVendorCDR_20' ) end [2025-03-20 13:11:21] Production.INFO: ProcessCDR(1,14723060,1,1,2) [2025-03-20 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723060', 'tblTempUsageDetail_20' ) start [2025-03-20 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723060', 'tblTempUsageDetail_20' ) end [2025-03-20 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:11:26] Production.INFO: ==27728== Releasing lock... [2025-03-20 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:11:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:12:05 [end_date_ymd] => 2025-03-20 13:12:05 [RateCDR] => 1 ) [2025-03-20 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:12:05' and `end` < '2025-03-20 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:12:19] Production.INFO: count ==6062 [2025-03-20 13:12:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:12:05 - End Time 2025-03-20 13:12:05 [2025-03-20 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723065', 'tblTempUsageDetail_20' ) start [2025-03-20 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723065', 'tblTempUsageDetail_20' ) end [2025-03-20 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723065', 'tblTempVendorCDR_20' ) start [2025-03-20 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723065', 'tblTempVendorCDR_20' ) end [2025-03-20 13:12:22] Production.INFO: ProcessCDR(1,14723065,1,1,2) [2025-03-20 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723065', 'tblTempUsageDetail_20' ) start [2025-03-20 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723065', 'tblTempUsageDetail_20' ) end [2025-03-20 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:12:27] Production.INFO: ==27811== Releasing lock... [2025-03-20 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:12:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:13:05 [end_date_ymd] => 2025-03-20 13:13:05 [RateCDR] => 1 ) [2025-03-20 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:13:05' and `end` < '2025-03-20 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:13:19] Production.INFO: count ==6067 [2025-03-20 13:13:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:13:05 - End Time 2025-03-20 13:13:05 [2025-03-20 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723070', 'tblTempUsageDetail_20' ) start [2025-03-20 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723070', 'tblTempUsageDetail_20' ) end [2025-03-20 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723070', 'tblTempVendorCDR_20' ) start [2025-03-20 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723070', 'tblTempVendorCDR_20' ) end [2025-03-20 13:13:22] Production.INFO: ProcessCDR(1,14723070,1,1,2) [2025-03-20 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723070', 'tblTempUsageDetail_20' ) start [2025-03-20 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723070', 'tblTempUsageDetail_20' ) end [2025-03-20 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:13:27] Production.INFO: ==27895== Releasing lock... [2025-03-20 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:13:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:14:05 [end_date_ymd] => 2025-03-20 13:14:05 [RateCDR] => 1 ) [2025-03-20 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:14:05' and `end` < '2025-03-20 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:14:18] Production.INFO: count ==6068 [2025-03-20 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:14:05 - End Time 2025-03-20 13:14:05 [2025-03-20 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723075', 'tblTempUsageDetail_20' ) start [2025-03-20 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723075', 'tblTempUsageDetail_20' ) end [2025-03-20 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723075', 'tblTempVendorCDR_20' ) start [2025-03-20 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723075', 'tblTempVendorCDR_20' ) end [2025-03-20 13:14:21] Production.INFO: ProcessCDR(1,14723075,1,1,2) [2025-03-20 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723075', 'tblTempUsageDetail_20' ) start [2025-03-20 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723075', 'tblTempUsageDetail_20' ) end [2025-03-20 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:14:27] Production.INFO: ==27976== Releasing lock... [2025-03-20 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:14:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:15:06 [end_date_ymd] => 2025-03-20 13:15:06 [RateCDR] => 1 ) [2025-03-20 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:15:06' and `end` < '2025-03-20 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:15:19] Production.INFO: count ==6053 [2025-03-20 13:15:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:15:06 - End Time 2025-03-20 13:15:06 [2025-03-20 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723080', 'tblTempUsageDetail_20' ) start [2025-03-20 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723080', 'tblTempUsageDetail_20' ) end [2025-03-20 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723080', 'tblTempVendorCDR_20' ) start [2025-03-20 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723080', 'tblTempVendorCDR_20' ) end [2025-03-20 13:15:22] Production.INFO: ProcessCDR(1,14723080,1,1,2) [2025-03-20 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723080', 'tblTempUsageDetail_20' ) start [2025-03-20 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723080', 'tblTempUsageDetail_20' ) end [2025-03-20 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:15:27] Production.INFO: ==28063== Releasing lock... [2025-03-20 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:15:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:16:05 [end_date_ymd] => 2025-03-20 13:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:16:18] Production.INFO: count ==6064 [2025-03-20 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:16:05 - End Time 2025-03-20 13:16:05 [2025-03-20 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723085', 'tblTempUsageDetail_20' ) start [2025-03-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723085', 'tblTempUsageDetail_20' ) end [2025-03-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723085', 'tblTempVendorCDR_20' ) start [2025-03-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723085', 'tblTempVendorCDR_20' ) end [2025-03-20 13:16:21] Production.INFO: ProcessCDR(1,14723085,1,1,2) [2025-03-20 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723085', 'tblTempUsageDetail_20' ) start [2025-03-20 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723085', 'tblTempUsageDetail_20' ) end [2025-03-20 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:16:26] Production.INFO: ==28150== Releasing lock... [2025-03-20 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:16:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:17:05 [end_date_ymd] => 2025-03-20 13:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:17:19] Production.INFO: count ==6053 [2025-03-20 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:17:05 - End Time 2025-03-20 13:17:05 [2025-03-20 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723090', 'tblTempUsageDetail_20' ) start [2025-03-20 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723090', 'tblTempUsageDetail_20' ) end [2025-03-20 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723090', 'tblTempVendorCDR_20' ) start [2025-03-20 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723090', 'tblTempVendorCDR_20' ) end [2025-03-20 13:17:22] Production.INFO: ProcessCDR(1,14723090,1,1,2) [2025-03-20 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723090', 'tblTempUsageDetail_20' ) start [2025-03-20 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723090', 'tblTempUsageDetail_20' ) end [2025-03-20 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:17:28] Production.INFO: ==28229== Releasing lock... [2025-03-20 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:17:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 13:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:18:04 [end_date_ymd] => 2025-03-20 13:18:04 [RateCDR] => 1 ) [2025-03-20 13:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:18:04' and `end` < '2025-03-20 13:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:18:18] Production.INFO: count ==6156 [2025-03-20 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:18:04 - End Time 2025-03-20 13:18:04 [2025-03-20 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723095', 'tblTempUsageDetail_20' ) start [2025-03-20 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723095', 'tblTempUsageDetail_20' ) end [2025-03-20 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723095', 'tblTempVendorCDR_20' ) start [2025-03-20 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723095', 'tblTempVendorCDR_20' ) end [2025-03-20 13:18:21] Production.INFO: ProcessCDR(1,14723095,1,1,2) [2025-03-20 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723095', 'tblTempUsageDetail_20' ) start [2025-03-20 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723095', 'tblTempUsageDetail_20' ) end [2025-03-20 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:18:27] Production.INFO: ==28322== Releasing lock... [2025-03-20 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:18:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:19:05 [end_date_ymd] => 2025-03-20 13:19:05 [RateCDR] => 1 ) [2025-03-20 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:19:05' and `end` < '2025-03-20 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:19:19] Production.INFO: count ==6163 [2025-03-20 13:19:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:19:05 - End Time 2025-03-20 13:19:05 [2025-03-20 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723100', 'tblTempUsageDetail_20' ) start [2025-03-20 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723100', 'tblTempUsageDetail_20' ) end [2025-03-20 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723100', 'tblTempVendorCDR_20' ) start [2025-03-20 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723100', 'tblTempVendorCDR_20' ) end [2025-03-20 13:19:22] Production.INFO: ProcessCDR(1,14723100,1,1,2) [2025-03-20 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723100', 'tblTempUsageDetail_20' ) start [2025-03-20 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723100', 'tblTempUsageDetail_20' ) end [2025-03-20 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:19:27] Production.INFO: ==28405== Releasing lock... [2025-03-20 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:19:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:20:06 [end_date_ymd] => 2025-03-20 13:20:06 [RateCDR] => 1 ) [2025-03-20 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:20:06' and `end` < '2025-03-20 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:20:22] Production.INFO: count ==6180 [2025-03-20 13:20:25] Production.ERROR: pbx CDR StartTime 2025-03-20 10:20:06 - End Time 2025-03-20 13:20:06 [2025-03-20 13:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723106', 'tblTempUsageDetail_20' ) start [2025-03-20 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723106', 'tblTempUsageDetail_20' ) end [2025-03-20 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723106', 'tblTempVendorCDR_20' ) start [2025-03-20 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723106', 'tblTempVendorCDR_20' ) end [2025-03-20 13:20:25] Production.INFO: ProcessCDR(1,14723106,1,1,2) [2025-03-20 13:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723106', 'tblTempUsageDetail_20' ) start [2025-03-20 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723106', 'tblTempUsageDetail_20' ) end [2025-03-20 13:20:31] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:20:31] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:20:31] Production.INFO: ==28529== Releasing lock... [2025-03-20 13:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:20:31] Production.INFO: 74.25 MB #Memory Used# [2025-03-20 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:21:05 [end_date_ymd] => 2025-03-20 13:21:05 [RateCDR] => 1 ) [2025-03-20 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:21:05' and `end` < '2025-03-20 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:21:19] Production.INFO: count ==6133 [2025-03-20 13:21:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:21:05 - End Time 2025-03-20 13:21:05 [2025-03-20 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723111', 'tblTempUsageDetail_20' ) start [2025-03-20 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723111', 'tblTempUsageDetail_20' ) end [2025-03-20 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723111', 'tblTempVendorCDR_20' ) start [2025-03-20 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723111', 'tblTempVendorCDR_20' ) end [2025-03-20 13:21:22] Production.INFO: ProcessCDR(1,14723111,1,1,2) [2025-03-20 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723111', 'tblTempUsageDetail_20' ) start [2025-03-20 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723111', 'tblTempUsageDetail_20' ) end [2025-03-20 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:21:27] Production.INFO: ==28615== Releasing lock... [2025-03-20 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:21:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:22:05 [end_date_ymd] => 2025-03-20 13:22:05 [RateCDR] => 1 ) [2025-03-20 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:22:05' and `end` < '2025-03-20 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:22:18] Production.INFO: count ==6132 [2025-03-20 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:22:05 - End Time 2025-03-20 13:22:05 [2025-03-20 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723116', 'tblTempUsageDetail_20' ) start [2025-03-20 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723116', 'tblTempUsageDetail_20' ) end [2025-03-20 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723116', 'tblTempVendorCDR_20' ) start [2025-03-20 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723116', 'tblTempVendorCDR_20' ) end [2025-03-20 13:22:22] Production.INFO: ProcessCDR(1,14723116,1,1,2) [2025-03-20 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723116', 'tblTempUsageDetail_20' ) start [2025-03-20 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723116', 'tblTempUsageDetail_20' ) end [2025-03-20 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:22:27] Production.INFO: ==28695== Releasing lock... [2025-03-20 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:22:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:23:05 [end_date_ymd] => 2025-03-20 13:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:23:19] Production.INFO: count ==6136 [2025-03-20 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:23:05 - End Time 2025-03-20 13:23:05 [2025-03-20 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723121', 'tblTempUsageDetail_20' ) start [2025-03-20 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723121', 'tblTempUsageDetail_20' ) end [2025-03-20 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723121', 'tblTempVendorCDR_20' ) start [2025-03-20 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723121', 'tblTempVendorCDR_20' ) end [2025-03-20 13:23:22] Production.INFO: ProcessCDR(1,14723121,1,1,2) [2025-03-20 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723121', 'tblTempUsageDetail_20' ) start [2025-03-20 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723121', 'tblTempUsageDetail_20' ) end [2025-03-20 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:23:27] Production.INFO: ==28781== Releasing lock... [2025-03-20 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:23:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:24:05 [end_date_ymd] => 2025-03-20 13:24:05 [RateCDR] => 1 ) [2025-03-20 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:24:05' and `end` < '2025-03-20 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:24:18] Production.INFO: count ==6120 [2025-03-20 13:24:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:24:05 - End Time 2025-03-20 13:24:05 [2025-03-20 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723126', 'tblTempUsageDetail_20' ) start [2025-03-20 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723126', 'tblTempUsageDetail_20' ) end [2025-03-20 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723126', 'tblTempVendorCDR_20' ) start [2025-03-20 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723126', 'tblTempVendorCDR_20' ) end [2025-03-20 13:24:21] Production.INFO: ProcessCDR(1,14723126,1,1,2) [2025-03-20 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723126', 'tblTempUsageDetail_20' ) start [2025-03-20 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723126', 'tblTempUsageDetail_20' ) end [2025-03-20 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:24:26] Production.INFO: ==28868== Releasing lock... [2025-03-20 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:24:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:25:05 [end_date_ymd] => 2025-03-20 13:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:25:19] Production.INFO: count ==6137 [2025-03-20 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:25:05 - End Time 2025-03-20 13:25:05 [2025-03-20 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723131', 'tblTempUsageDetail_20' ) start [2025-03-20 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723131', 'tblTempUsageDetail_20' ) end [2025-03-20 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723131', 'tblTempVendorCDR_20' ) start [2025-03-20 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723131', 'tblTempVendorCDR_20' ) end [2025-03-20 13:25:22] Production.INFO: ProcessCDR(1,14723131,1,1,2) [2025-03-20 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723131', 'tblTempUsageDetail_20' ) start [2025-03-20 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723131', 'tblTempUsageDetail_20' ) end [2025-03-20 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:25:27] Production.INFO: ==28949== Releasing lock... [2025-03-20 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:25:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:26:06 [end_date_ymd] => 2025-03-20 13:26:06 [RateCDR] => 1 ) [2025-03-20 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:26:06' and `end` < '2025-03-20 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:26:20] Production.INFO: count ==6131 [2025-03-20 13:26:23] Production.ERROR: pbx CDR StartTime 2025-03-20 10:26:06 - End Time 2025-03-20 13:26:06 [2025-03-20 13:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723136', 'tblTempUsageDetail_20' ) start [2025-03-20 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723136', 'tblTempUsageDetail_20' ) end [2025-03-20 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723136', 'tblTempVendorCDR_20' ) start [2025-03-20 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723136', 'tblTempVendorCDR_20' ) end [2025-03-20 13:26:23] Production.INFO: ProcessCDR(1,14723136,1,1,2) [2025-03-20 13:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723136', 'tblTempUsageDetail_20' ) start [2025-03-20 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723136', 'tblTempUsageDetail_20' ) end [2025-03-20 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:26:28] Production.INFO: ==29034== Releasing lock... [2025-03-20 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:26:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:27:05 [end_date_ymd] => 2025-03-20 13:27:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:27:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:27:19] Production.INFO: count ==6130 [2025-03-20 13:27:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:27:05 - End Time 2025-03-20 13:27:05 [2025-03-20 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723141', 'tblTempUsageDetail_20' ) start [2025-03-20 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723141', 'tblTempUsageDetail_20' ) end [2025-03-20 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723141', 'tblTempVendorCDR_20' ) start [2025-03-20 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723141', 'tblTempVendorCDR_20' ) end [2025-03-20 13:27:22] Production.INFO: ProcessCDR(1,14723141,1,1,2) [2025-03-20 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723141', 'tblTempUsageDetail_20' ) start [2025-03-20 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723141', 'tblTempUsageDetail_20' ) end [2025-03-20 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:27:27] Production.INFO: ==29114== Releasing lock... [2025-03-20 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:27:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:28:05 [end_date_ymd] => 2025-03-20 13:28:05 [RateCDR] => 1 ) [2025-03-20 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:28:05' and `end` < '2025-03-20 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:28:19] Production.INFO: count ==6127 [2025-03-20 13:28:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:28:05 - End Time 2025-03-20 13:28:05 [2025-03-20 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723146', 'tblTempUsageDetail_20' ) start [2025-03-20 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723146', 'tblTempUsageDetail_20' ) end [2025-03-20 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723146', 'tblTempVendorCDR_20' ) start [2025-03-20 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723146', 'tblTempVendorCDR_20' ) end [2025-03-20 13:28:22] Production.INFO: ProcessCDR(1,14723146,1,1,2) [2025-03-20 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723146', 'tblTempUsageDetail_20' ) start [2025-03-20 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723146', 'tblTempUsageDetail_20' ) end [2025-03-20 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:28:27] Production.INFO: ==29196== Releasing lock... [2025-03-20 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:28:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:29:06 [end_date_ymd] => 2025-03-20 13:29:06 [RateCDR] => 1 ) [2025-03-20 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:29:06' and `end` < '2025-03-20 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:29:20] Production.INFO: count ==6130 [2025-03-20 13:29:23] Production.ERROR: pbx CDR StartTime 2025-03-20 10:29:06 - End Time 2025-03-20 13:29:06 [2025-03-20 13:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723151', 'tblTempUsageDetail_20' ) start [2025-03-20 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723151', 'tblTempUsageDetail_20' ) end [2025-03-20 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723151', 'tblTempVendorCDR_20' ) start [2025-03-20 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723151', 'tblTempVendorCDR_20' ) end [2025-03-20 13:29:23] Production.INFO: ProcessCDR(1,14723151,1,1,2) [2025-03-20 13:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723151', 'tblTempUsageDetail_20' ) start [2025-03-20 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723151', 'tblTempUsageDetail_20' ) end [2025-03-20 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:29:28] Production.INFO: ==29279== Releasing lock... [2025-03-20 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:29:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:30:06 [end_date_ymd] => 2025-03-20 13:30:06 [RateCDR] => 1 ) [2025-03-20 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:30:06' and `end` < '2025-03-20 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:30:20] Production.INFO: count ==6141 [2025-03-20 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:30:06 - End Time 2025-03-20 13:30:06 [2025-03-20 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723156', 'tblTempUsageDetail_20' ) start [2025-03-20 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723156', 'tblTempUsageDetail_20' ) end [2025-03-20 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723156', 'tblTempVendorCDR_20' ) start [2025-03-20 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723156', 'tblTempVendorCDR_20' ) end [2025-03-20 13:30:23] Production.INFO: ProcessCDR(1,14723156,1,1,2) [2025-03-20 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723156', 'tblTempUsageDetail_20' ) start [2025-03-20 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723156', 'tblTempUsageDetail_20' ) end [2025-03-20 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:30:28] Production.INFO: ==29369== Releasing lock... [2025-03-20 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:30:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:31:05 [end_date_ymd] => 2025-03-20 13:31:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:31:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:31:19] Production.INFO: count ==6173 [2025-03-20 13:31:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:31:05 - End Time 2025-03-20 13:31:05 [2025-03-20 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723162', 'tblTempUsageDetail_20' ) start [2025-03-20 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723162', 'tblTempUsageDetail_20' ) end [2025-03-20 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723162', 'tblTempVendorCDR_20' ) start [2025-03-20 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723162', 'tblTempVendorCDR_20' ) end [2025-03-20 13:31:22] Production.INFO: ProcessCDR(1,14723162,1,1,2) [2025-03-20 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723162', 'tblTempUsageDetail_20' ) start [2025-03-20 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723162', 'tblTempUsageDetail_20' ) end [2025-03-20 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:31:27] Production.INFO: ==29457== Releasing lock... [2025-03-20 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:31:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:32:05 [end_date_ymd] => 2025-03-20 13:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:32:19] Production.INFO: count ==6203 [2025-03-20 13:32:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:32:05 - End Time 2025-03-20 13:32:05 [2025-03-20 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723167', 'tblTempUsageDetail_20' ) start [2025-03-20 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723167', 'tblTempUsageDetail_20' ) end [2025-03-20 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723167', 'tblTempVendorCDR_20' ) start [2025-03-20 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723167', 'tblTempVendorCDR_20' ) end [2025-03-20 13:32:22] Production.INFO: ProcessCDR(1,14723167,1,1,2) [2025-03-20 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723167', 'tblTempUsageDetail_20' ) start [2025-03-20 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723167', 'tblTempUsageDetail_20' ) end [2025-03-20 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:32:27] Production.INFO: ==29540== Releasing lock... [2025-03-20 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:32:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:33:05 [end_date_ymd] => 2025-03-20 13:33:05 [RateCDR] => 1 ) [2025-03-20 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:33:05' and `end` < '2025-03-20 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:33:19] Production.INFO: count ==6197 [2025-03-20 13:33:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:33:05 - End Time 2025-03-20 13:33:05 [2025-03-20 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723172', 'tblTempUsageDetail_20' ) start [2025-03-20 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723172', 'tblTempUsageDetail_20' ) end [2025-03-20 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723172', 'tblTempVendorCDR_20' ) start [2025-03-20 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723172', 'tblTempVendorCDR_20' ) end [2025-03-20 13:33:22] Production.INFO: ProcessCDR(1,14723172,1,1,2) [2025-03-20 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723172', 'tblTempUsageDetail_20' ) start [2025-03-20 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723172', 'tblTempUsageDetail_20' ) end [2025-03-20 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:33:27] Production.INFO: ==29620== Releasing lock... [2025-03-20 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:33:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:34:05 [end_date_ymd] => 2025-03-20 13:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:34:18] Production.INFO: count ==6211 [2025-03-20 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:34:05 - End Time 2025-03-20 13:34:05 [2025-03-20 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723177', 'tblTempUsageDetail_20' ) start [2025-03-20 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723177', 'tblTempUsageDetail_20' ) end [2025-03-20 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723177', 'tblTempVendorCDR_20' ) start [2025-03-20 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723177', 'tblTempVendorCDR_20' ) end [2025-03-20 13:34:21] Production.INFO: ProcessCDR(1,14723177,1,1,2) [2025-03-20 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723177', 'tblTempUsageDetail_20' ) start [2025-03-20 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723177', 'tblTempUsageDetail_20' ) end [2025-03-20 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:34:27] Production.INFO: ==29697== Releasing lock... [2025-03-20 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:34:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:35:05 [end_date_ymd] => 2025-03-20 13:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:35:19] Production.INFO: count ==6218 [2025-03-20 13:35:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:35:05 - End Time 2025-03-20 13:35:05 [2025-03-20 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723182', 'tblTempUsageDetail_20' ) start [2025-03-20 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723182', 'tblTempUsageDetail_20' ) end [2025-03-20 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723182', 'tblTempVendorCDR_20' ) start [2025-03-20 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723182', 'tblTempVendorCDR_20' ) end [2025-03-20 13:35:22] Production.INFO: ProcessCDR(1,14723182,1,1,2) [2025-03-20 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723182', 'tblTempUsageDetail_20' ) start [2025-03-20 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723182', 'tblTempUsageDetail_20' ) end [2025-03-20 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:35:28] Production.INFO: ==29786== Releasing lock... [2025-03-20 13:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:35:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:36:05 [end_date_ymd] => 2025-03-20 13:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:36:18] Production.INFO: count ==6221 [2025-03-20 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:36:05 - End Time 2025-03-20 13:36:05 [2025-03-20 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723187', 'tblTempUsageDetail_20' ) start [2025-03-20 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723187', 'tblTempUsageDetail_20' ) end [2025-03-20 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723187', 'tblTempVendorCDR_20' ) start [2025-03-20 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723187', 'tblTempVendorCDR_20' ) end [2025-03-20 13:36:21] Production.INFO: ProcessCDR(1,14723187,1,1,2) [2025-03-20 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723187', 'tblTempUsageDetail_20' ) start [2025-03-20 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723187', 'tblTempUsageDetail_20' ) end [2025-03-20 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:36:27] Production.INFO: ==29907== Releasing lock... [2025-03-20 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:36:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:37:06 [end_date_ymd] => 2025-03-20 13:37:06 [RateCDR] => 1 ) [2025-03-20 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:37:06' and `end` < '2025-03-20 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:37:19] Production.INFO: count ==6243 [2025-03-20 13:37:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:37:06 - End Time 2025-03-20 13:37:06 [2025-03-20 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723192', 'tblTempUsageDetail_20' ) start [2025-03-20 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723192', 'tblTempUsageDetail_20' ) end [2025-03-20 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723192', 'tblTempVendorCDR_20' ) start [2025-03-20 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723192', 'tblTempVendorCDR_20' ) end [2025-03-20 13:37:22] Production.INFO: ProcessCDR(1,14723192,1,1,2) [2025-03-20 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723192', 'tblTempUsageDetail_20' ) start [2025-03-20 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723192', 'tblTempUsageDetail_20' ) end [2025-03-20 13:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:37:28] Production.INFO: ==29989== Releasing lock... [2025-03-20 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:37:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-20 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:38:05 [end_date_ymd] => 2025-03-20 13:38:05 [RateCDR] => 1 ) [2025-03-20 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:38:05' and `end` < '2025-03-20 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:38:18] Production.INFO: count ==6287 [2025-03-20 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:38:05 - End Time 2025-03-20 13:38:05 [2025-03-20 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723197', 'tblTempUsageDetail_20' ) start [2025-03-20 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723197', 'tblTempUsageDetail_20' ) end [2025-03-20 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723197', 'tblTempVendorCDR_20' ) start [2025-03-20 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723197', 'tblTempVendorCDR_20' ) end [2025-03-20 13:38:21] Production.INFO: ProcessCDR(1,14723197,1,1,2) [2025-03-20 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723197', 'tblTempUsageDetail_20' ) start [2025-03-20 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723197', 'tblTempUsageDetail_20' ) end [2025-03-20 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:38:26] Production.INFO: ==30075== Releasing lock... [2025-03-20 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:38:26] Production.INFO: 75 MB #Memory Used# [2025-03-20 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:39:05 [end_date_ymd] => 2025-03-20 13:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:39:19] Production.INFO: count ==6329 [2025-03-20 13:39:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:39:05 - End Time 2025-03-20 13:39:05 [2025-03-20 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723202', 'tblTempUsageDetail_20' ) start [2025-03-20 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723202', 'tblTempUsageDetail_20' ) end [2025-03-20 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723202', 'tblTempVendorCDR_20' ) start [2025-03-20 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723202', 'tblTempVendorCDR_20' ) end [2025-03-20 13:39:22] Production.INFO: ProcessCDR(1,14723202,1,1,2) [2025-03-20 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723202', 'tblTempUsageDetail_20' ) start [2025-03-20 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723202', 'tblTempUsageDetail_20' ) end [2025-03-20 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:39:27] Production.INFO: ==30167== Releasing lock... [2025-03-20 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:39:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:40:07 [end_date_ymd] => 2025-03-20 13:40:07 [RateCDR] => 1 ) [2025-03-20 13:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:40:07' and `end` < '2025-03-20 13:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:40:20] Production.INFO: count ==6329 [2025-03-20 13:40:23] Production.ERROR: pbx CDR StartTime 2025-03-20 10:40:07 - End Time 2025-03-20 13:40:07 [2025-03-20 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723208', 'tblTempUsageDetail_20' ) start [2025-03-20 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723208', 'tblTempUsageDetail_20' ) end [2025-03-20 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723208', 'tblTempVendorCDR_20' ) start [2025-03-20 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723208', 'tblTempVendorCDR_20' ) end [2025-03-20 13:40:23] Production.INFO: ProcessCDR(1,14723208,1,1,2) [2025-03-20 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723208', 'tblTempUsageDetail_20' ) start [2025-03-20 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723208', 'tblTempUsageDetail_20' ) end [2025-03-20 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:40:29] Production.INFO: ==30259== Releasing lock... [2025-03-20 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:40:29] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:41:05 [end_date_ymd] => 2025-03-20 13:41:05 [RateCDR] => 1 ) [2025-03-20 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:41:05' and `end` < '2025-03-20 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:41:19] Production.INFO: count ==6429 [2025-03-20 13:41:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:41:05 - End Time 2025-03-20 13:41:05 [2025-03-20 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723213', 'tblTempUsageDetail_20' ) start [2025-03-20 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723213', 'tblTempUsageDetail_20' ) end [2025-03-20 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723213', 'tblTempVendorCDR_20' ) start [2025-03-20 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723213', 'tblTempVendorCDR_20' ) end [2025-03-20 13:41:22] Production.INFO: ProcessCDR(1,14723213,1,1,2) [2025-03-20 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723213', 'tblTempUsageDetail_20' ) start [2025-03-20 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723213', 'tblTempUsageDetail_20' ) end [2025-03-20 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:41:27] Production.INFO: ==30341== Releasing lock... [2025-03-20 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:41:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:42:06 [end_date_ymd] => 2025-03-20 13:42:06 [RateCDR] => 1 ) [2025-03-20 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:42:06' and `end` < '2025-03-20 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:42:20] Production.INFO: count ==6445 [2025-03-20 13:42:23] Production.ERROR: pbx CDR StartTime 2025-03-20 10:42:06 - End Time 2025-03-20 13:42:06 [2025-03-20 13:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723218', 'tblTempUsageDetail_20' ) start [2025-03-20 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723218', 'tblTempUsageDetail_20' ) end [2025-03-20 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723218', 'tblTempVendorCDR_20' ) start [2025-03-20 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723218', 'tblTempVendorCDR_20' ) end [2025-03-20 13:42:23] Production.INFO: ProcessCDR(1,14723218,1,1,2) [2025-03-20 13:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723218', 'tblTempUsageDetail_20' ) start [2025-03-20 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723218', 'tblTempUsageDetail_20' ) end [2025-03-20 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:42:28] Production.INFO: ==30421== Releasing lock... [2025-03-20 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:42:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:43:05 [end_date_ymd] => 2025-03-20 13:43:05 [RateCDR] => 1 ) [2025-03-20 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:43:05' and `end` < '2025-03-20 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:43:19] Production.INFO: count ==6466 [2025-03-20 13:43:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:43:05 - End Time 2025-03-20 13:43:05 [2025-03-20 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723223', 'tblTempUsageDetail_20' ) start [2025-03-20 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723223', 'tblTempUsageDetail_20' ) end [2025-03-20 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723223', 'tblTempVendorCDR_20' ) start [2025-03-20 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723223', 'tblTempVendorCDR_20' ) end [2025-03-20 13:43:22] Production.INFO: ProcessCDR(1,14723223,1,1,2) [2025-03-20 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723223', 'tblTempUsageDetail_20' ) start [2025-03-20 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723223', 'tblTempUsageDetail_20' ) end [2025-03-20 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:43:27] Production.INFO: ==30499== Releasing lock... [2025-03-20 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:43:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:44:06 [end_date_ymd] => 2025-03-20 13:44:06 [RateCDR] => 1 ) [2025-03-20 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:44:06' and `end` < '2025-03-20 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:44:20] Production.INFO: count ==6485 [2025-03-20 13:44:23] Production.ERROR: pbx CDR StartTime 2025-03-20 10:44:06 - End Time 2025-03-20 13:44:06 [2025-03-20 13:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723228', 'tblTempUsageDetail_20' ) start [2025-03-20 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723228', 'tblTempUsageDetail_20' ) end [2025-03-20 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723228', 'tblTempVendorCDR_20' ) start [2025-03-20 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723228', 'tblTempVendorCDR_20' ) end [2025-03-20 13:44:23] Production.INFO: ProcessCDR(1,14723228,1,1,2) [2025-03-20 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723228', 'tblTempUsageDetail_20' ) start [2025-03-20 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723228', 'tblTempUsageDetail_20' ) end [2025-03-20 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:44:28] Production.INFO: ==30588== Releasing lock... [2025-03-20 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:44:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:45:05 [end_date_ymd] => 2025-03-20 13:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:45:19] Production.INFO: count ==6502 [2025-03-20 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:45:05 - End Time 2025-03-20 13:45:05 [2025-03-20 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723233', 'tblTempUsageDetail_20' ) start [2025-03-20 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723233', 'tblTempUsageDetail_20' ) end [2025-03-20 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723233', 'tblTempVendorCDR_20' ) start [2025-03-20 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723233', 'tblTempVendorCDR_20' ) end [2025-03-20 13:45:22] Production.INFO: ProcessCDR(1,14723233,1,1,2) [2025-03-20 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723233', 'tblTempUsageDetail_20' ) start [2025-03-20 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723233', 'tblTempUsageDetail_20' ) end [2025-03-20 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:45:27] Production.INFO: ==30671== Releasing lock... [2025-03-20 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:45:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:46:05 [end_date_ymd] => 2025-03-20 13:46:05 [RateCDR] => 1 ) [2025-03-20 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:46:05' and `end` < '2025-03-20 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:46:19] Production.INFO: count ==6495 [2025-03-20 13:46:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:46:05 - End Time 2025-03-20 13:46:05 [2025-03-20 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723238', 'tblTempUsageDetail_20' ) start [2025-03-20 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723238', 'tblTempUsageDetail_20' ) end [2025-03-20 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723238', 'tblTempVendorCDR_20' ) start [2025-03-20 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723238', 'tblTempVendorCDR_20' ) end [2025-03-20 13:46:22] Production.INFO: ProcessCDR(1,14723238,1,1,2) [2025-03-20 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723238', 'tblTempUsageDetail_20' ) start [2025-03-20 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723238', 'tblTempUsageDetail_20' ) end [2025-03-20 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:46:27] Production.INFO: ==30748== Releasing lock... [2025-03-20 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:46:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:47:05 [end_date_ymd] => 2025-03-20 13:47:05 [RateCDR] => 1 ) [2025-03-20 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:47:05' and `end` < '2025-03-20 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:47:18] Production.INFO: count ==6501 [2025-03-20 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:47:05 - End Time 2025-03-20 13:47:05 [2025-03-20 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723243', 'tblTempUsageDetail_20' ) start [2025-03-20 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723243', 'tblTempUsageDetail_20' ) end [2025-03-20 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723243', 'tblTempVendorCDR_20' ) start [2025-03-20 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723243', 'tblTempVendorCDR_20' ) end [2025-03-20 13:47:21] Production.INFO: ProcessCDR(1,14723243,1,1,2) [2025-03-20 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723243', 'tblTempUsageDetail_20' ) start [2025-03-20 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723243', 'tblTempUsageDetail_20' ) end [2025-03-20 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:47:26] Production.INFO: ==30825== Releasing lock... [2025-03-20 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:47:26] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:48:06 [end_date_ymd] => 2025-03-20 13:48:06 [RateCDR] => 1 ) [2025-03-20 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:48:06' and `end` < '2025-03-20 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:48:19] Production.INFO: count ==6492 [2025-03-20 13:48:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:48:06 - End Time 2025-03-20 13:48:06 [2025-03-20 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723248', 'tblTempUsageDetail_20' ) start [2025-03-20 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723248', 'tblTempUsageDetail_20' ) end [2025-03-20 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723248', 'tblTempVendorCDR_20' ) start [2025-03-20 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723248', 'tblTempVendorCDR_20' ) end [2025-03-20 13:48:23] Production.INFO: ProcessCDR(1,14723248,1,1,2) [2025-03-20 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723248', 'tblTempUsageDetail_20' ) start [2025-03-20 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723248', 'tblTempUsageDetail_20' ) end [2025-03-20 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:48:28] Production.INFO: ==30904== Releasing lock... [2025-03-20 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:48:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:49:05 [end_date_ymd] => 2025-03-20 13:49:05 [RateCDR] => 1 ) [2025-03-20 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:49:05' and `end` < '2025-03-20 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:49:18] Production.INFO: count ==6486 [2025-03-20 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:49:05 - End Time 2025-03-20 13:49:05 [2025-03-20 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723253', 'tblTempUsageDetail_20' ) start [2025-03-20 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723253', 'tblTempUsageDetail_20' ) end [2025-03-20 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723253', 'tblTempVendorCDR_20' ) start [2025-03-20 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723253', 'tblTempVendorCDR_20' ) end [2025-03-20 13:49:21] Production.INFO: ProcessCDR(1,14723253,1,1,2) [2025-03-20 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723253', 'tblTempUsageDetail_20' ) start [2025-03-20 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723253', 'tblTempUsageDetail_20' ) end [2025-03-20 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:49:26] Production.INFO: ==30986== Releasing lock... [2025-03-20 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:49:26] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:50:06 [end_date_ymd] => 2025-03-20 13:50:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:50:06' and `end` < '2025-03-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 ,'') [2025-03-20 13:50:19] Production.INFO: count ==6506 [2025-03-20 13:50:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:50:06 - End Time 2025-03-20 13:50:06 [2025-03-20 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723258', 'tblTempUsageDetail_20' ) start [2025-03-20 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723258', 'tblTempUsageDetail_20' ) end [2025-03-20 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723258', 'tblTempVendorCDR_20' ) start [2025-03-20 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723258', 'tblTempVendorCDR_20' ) end [2025-03-20 13:50:23] Production.INFO: ProcessCDR(1,14723258,1,1,2) [2025-03-20 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723258', 'tblTempUsageDetail_20' ) start [2025-03-20 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723258', 'tblTempUsageDetail_20' ) end [2025-03-20 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:50:28] Production.INFO: ==31072== Releasing lock... [2025-03-20 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:50:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:51:04 [end_date_ymd] => 2025-03-20 13:51:04 [RateCDR] => 1 ) [2025-03-20 13:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:51:04' and `end` < '2025-03-20 13:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:51:18] Production.INFO: count ==6526 [2025-03-20 13:51:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:51:04 - End Time 2025-03-20 13:51:04 [2025-03-20 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723264', 'tblTempUsageDetail_20' ) start [2025-03-20 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723264', 'tblTempUsageDetail_20' ) end [2025-03-20 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723264', 'tblTempVendorCDR_20' ) start [2025-03-20 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723264', 'tblTempVendorCDR_20' ) end [2025-03-20 13:51:21] Production.INFO: ProcessCDR(1,14723264,1,1,2) [2025-03-20 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723264', 'tblTempUsageDetail_20' ) start [2025-03-20 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723264', 'tblTempUsageDetail_20' ) end [2025-03-20 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:51:26] Production.INFO: ==31194== Releasing lock... [2025-03-20 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:51:26] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:52:05 [end_date_ymd] => 2025-03-20 13:52:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:52:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:52:19] Production.INFO: count ==6508 [2025-03-20 13:52:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:52:05 - End Time 2025-03-20 13:52:05 [2025-03-20 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723269', 'tblTempUsageDetail_20' ) start [2025-03-20 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723269', 'tblTempUsageDetail_20' ) end [2025-03-20 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723269', 'tblTempVendorCDR_20' ) start [2025-03-20 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723269', 'tblTempVendorCDR_20' ) end [2025-03-20 13:52:22] Production.INFO: ProcessCDR(1,14723269,1,1,2) [2025-03-20 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723269', 'tblTempUsageDetail_20' ) start [2025-03-20 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723269', 'tblTempUsageDetail_20' ) end [2025-03-20 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:52:27] Production.INFO: ==31284== Releasing lock... [2025-03-20 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:52:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:53:06 [end_date_ymd] => 2025-03-20 13:53:06 [RateCDR] => 1 ) [2025-03-20 13:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:53:06' and `end` < '2025-03-20 13:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:53:20] Production.INFO: count ==6513 [2025-03-20 13:53:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:53:06 - End Time 2025-03-20 13:53:06 [2025-03-20 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723274', 'tblTempUsageDetail_20' ) start [2025-03-20 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723274', 'tblTempUsageDetail_20' ) end [2025-03-20 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723274', 'tblTempVendorCDR_20' ) start [2025-03-20 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723274', 'tblTempVendorCDR_20' ) end [2025-03-20 13:53:23] Production.INFO: ProcessCDR(1,14723274,1,1,2) [2025-03-20 13:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723274', 'tblTempUsageDetail_20' ) start [2025-03-20 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723274', 'tblTempUsageDetail_20' ) end [2025-03-20 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:53:28] Production.INFO: ==31376== Releasing lock... [2025-03-20 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:53:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:54:05 [end_date_ymd] => 2025-03-20 13:54:05 [RateCDR] => 1 ) [2025-03-20 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:54:05' and `end` < '2025-03-20 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:54:19] Production.INFO: count ==6519 [2025-03-20 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:54:05 - End Time 2025-03-20 13:54:05 [2025-03-20 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723279', 'tblTempUsageDetail_20' ) start [2025-03-20 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723279', 'tblTempUsageDetail_20' ) end [2025-03-20 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723279', 'tblTempVendorCDR_20' ) start [2025-03-20 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723279', 'tblTempVendorCDR_20' ) end [2025-03-20 13:54:22] Production.INFO: ProcessCDR(1,14723279,1,1,2) [2025-03-20 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723279', 'tblTempUsageDetail_20' ) start [2025-03-20 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723279', 'tblTempUsageDetail_20' ) end [2025-03-20 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:54:27] Production.INFO: ==31458== Releasing lock... [2025-03-20 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:54:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:55:06 [end_date_ymd] => 2025-03-20 13:55:06 [RateCDR] => 1 ) [2025-03-20 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:55:06' and `end` < '2025-03-20 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:55:19] Production.INFO: count ==6559 [2025-03-20 13:55:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:55:06 - End Time 2025-03-20 13:55:06 [2025-03-20 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723284', 'tblTempUsageDetail_20' ) start [2025-03-20 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723284', 'tblTempUsageDetail_20' ) end [2025-03-20 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723284', 'tblTempVendorCDR_20' ) start [2025-03-20 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723284', 'tblTempVendorCDR_20' ) end [2025-03-20 13:55:22] Production.INFO: ProcessCDR(1,14723284,1,1,2) [2025-03-20 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723284', 'tblTempUsageDetail_20' ) start [2025-03-20 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723284', 'tblTempUsageDetail_20' ) end [2025-03-20 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:55:28] Production.INFO: ==31542== Releasing lock... [2025-03-20 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:55:28] Production.INFO: 77 MB #Memory Used# [2025-03-20 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:56:05 [end_date_ymd] => 2025-03-20 13:56:05 [RateCDR] => 1 ) [2025-03-20 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:56:05' and `end` < '2025-03-20 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:56:18] Production.INFO: count ==6589 [2025-03-20 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:56:05 - End Time 2025-03-20 13:56:05 [2025-03-20 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723289', 'tblTempUsageDetail_20' ) start [2025-03-20 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723289', 'tblTempUsageDetail_20' ) end [2025-03-20 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723289', 'tblTempVendorCDR_20' ) start [2025-03-20 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723289', 'tblTempVendorCDR_20' ) end [2025-03-20 13:56:22] Production.INFO: ProcessCDR(1,14723289,1,1,2) [2025-03-20 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723289', 'tblTempUsageDetail_20' ) start [2025-03-20 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723289', 'tblTempUsageDetail_20' ) end [2025-03-20 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:56:27] Production.INFO: ==31635== Releasing lock... [2025-03-20 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:56:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:57:05 [end_date_ymd] => 2025-03-20 13:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:57:19] Production.INFO: count ==6577 [2025-03-20 13:57:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:57:05 - End Time 2025-03-20 13:57:05 [2025-03-20 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723294', 'tblTempUsageDetail_20' ) start [2025-03-20 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723294', 'tblTempUsageDetail_20' ) end [2025-03-20 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723294', 'tblTempVendorCDR_20' ) start [2025-03-20 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723294', 'tblTempVendorCDR_20' ) end [2025-03-20 13:57:22] Production.INFO: ProcessCDR(1,14723294,1,1,2) [2025-03-20 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723294', 'tblTempUsageDetail_20' ) start [2025-03-20 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723294', 'tblTempUsageDetail_20' ) end [2025-03-20 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:57:27] Production.INFO: ==31717== Releasing lock... [2025-03-20 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:57:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:58:05 [end_date_ymd] => 2025-03-20 13:58:05 [RateCDR] => 1 ) [2025-03-20 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 10:58:05' and `end` < '2025-03-20 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 13:58:18] Production.INFO: count ==6575 [2025-03-20 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-20 10:58:05 - End Time 2025-03-20 13:58:05 [2025-03-20 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723299', 'tblTempUsageDetail_20' ) start [2025-03-20 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723299', 'tblTempUsageDetail_20' ) end [2025-03-20 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723299', 'tblTempVendorCDR_20' ) start [2025-03-20 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723299', 'tblTempVendorCDR_20' ) end [2025-03-20 13:58:21] Production.INFO: ProcessCDR(1,14723299,1,1,2) [2025-03-20 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723299', 'tblTempUsageDetail_20' ) start [2025-03-20 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723299', 'tblTempUsageDetail_20' ) end [2025-03-20 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:58:26] Production.INFO: ==31803== Releasing lock... [2025-03-20 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:58:26] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 10:59:05 [end_date_ymd] => 2025-03-20 13:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 10:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 13:59:19] Production.INFO: count ==6586 [2025-03-20 13:59:22] Production.ERROR: pbx CDR StartTime 2025-03-20 10:59:05 - End Time 2025-03-20 13:59:05 [2025-03-20 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723304', 'tblTempUsageDetail_20' ) start [2025-03-20 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723304', 'tblTempUsageDetail_20' ) end [2025-03-20 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723304', 'tblTempVendorCDR_20' ) start [2025-03-20 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723304', 'tblTempVendorCDR_20' ) end [2025-03-20 13:59:22] Production.INFO: ProcessCDR(1,14723304,1,1,2) [2025-03-20 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723304', 'tblTempUsageDetail_20' ) start [2025-03-20 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723304', 'tblTempUsageDetail_20' ) end [2025-03-20 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 13:59:27] Production.INFO: ==31897== Releasing lock... [2025-03-20 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 13:59:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:00:05 [end_date_ymd] => 2025-03-20 14:00:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:00:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:00:19] Production.INFO: count ==6588 [2025-03-20 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:00:05 - End Time 2025-03-20 14:00:05 [2025-03-20 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723309', 'tblTempUsageDetail_20' ) start [2025-03-20 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723309', 'tblTempUsageDetail_20' ) end [2025-03-20 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723309', 'tblTempVendorCDR_20' ) start [2025-03-20 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723309', 'tblTempVendorCDR_20' ) end [2025-03-20 14:00:22] Production.INFO: ProcessCDR(1,14723309,1,1,2) [2025-03-20 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723309', 'tblTempUsageDetail_20' ) start [2025-03-20 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723309', 'tblTempUsageDetail_20' ) end [2025-03-20 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:00:27] Production.INFO: ==31981== Releasing lock... [2025-03-20 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:00:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:01:05 [end_date_ymd] => 2025-03-20 14:01:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:01:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:01:19] Production.INFO: count ==6609 [2025-03-20 14:01:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:01:05 - End Time 2025-03-20 14:01:05 [2025-03-20 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723315', 'tblTempUsageDetail_20' ) start [2025-03-20 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723315', 'tblTempUsageDetail_20' ) end [2025-03-20 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723315', 'tblTempVendorCDR_20' ) start [2025-03-20 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723315', 'tblTempVendorCDR_20' ) end [2025-03-20 14:01:22] Production.INFO: ProcessCDR(1,14723315,1,1,2) [2025-03-20 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723315', 'tblTempUsageDetail_20' ) start [2025-03-20 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723315', 'tblTempUsageDetail_20' ) end [2025-03-20 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:01:26] Production.INFO: ==32081== Releasing lock... [2025-03-20 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:01:26] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:02:05 [end_date_ymd] => 2025-03-20 14:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:02:18] Production.INFO: count ==6585 [2025-03-20 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:02:05 - End Time 2025-03-20 14:02:05 [2025-03-20 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723320', 'tblTempUsageDetail_20' ) start [2025-03-20 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723320', 'tblTempUsageDetail_20' ) end [2025-03-20 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723320', 'tblTempVendorCDR_20' ) start [2025-03-20 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723320', 'tblTempVendorCDR_20' ) end [2025-03-20 14:02:22] Production.INFO: ProcessCDR(1,14723320,1,1,2) [2025-03-20 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723320', 'tblTempUsageDetail_20' ) start [2025-03-20 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723320', 'tblTempUsageDetail_20' ) end [2025-03-20 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:02:27] Production.INFO: ==32162== Releasing lock... [2025-03-20 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:02:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:03:05 [end_date_ymd] => 2025-03-20 14:03:05 [RateCDR] => 1 ) [2025-03-20 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:03:05' and `end` < '2025-03-20 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:03:18] Production.INFO: count ==6613 [2025-03-20 14:03:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:03:05 - End Time 2025-03-20 14:03:05 [2025-03-20 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723325', 'tblTempUsageDetail_20' ) start [2025-03-20 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723325', 'tblTempUsageDetail_20' ) end [2025-03-20 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723325', 'tblTempVendorCDR_20' ) start [2025-03-20 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723325', 'tblTempVendorCDR_20' ) end [2025-03-20 14:03:22] Production.INFO: ProcessCDR(1,14723325,1,1,2) [2025-03-20 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723325', 'tblTempUsageDetail_20' ) start [2025-03-20 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723325', 'tblTempUsageDetail_20' ) end [2025-03-20 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:03:27] Production.INFO: ==32244== Releasing lock... [2025-03-20 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:03:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:04:05 [end_date_ymd] => 2025-03-20 14:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:04:18] Production.INFO: count ==6633 [2025-03-20 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:04:05 - End Time 2025-03-20 14:04:05 [2025-03-20 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723330', 'tblTempUsageDetail_20' ) start [2025-03-20 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723330', 'tblTempUsageDetail_20' ) end [2025-03-20 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723330', 'tblTempVendorCDR_20' ) start [2025-03-20 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723330', 'tblTempVendorCDR_20' ) end [2025-03-20 14:04:21] Production.INFO: ProcessCDR(1,14723330,1,1,2) [2025-03-20 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723330', 'tblTempUsageDetail_20' ) start [2025-03-20 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723330', 'tblTempUsageDetail_20' ) end [2025-03-20 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:04:26] Production.INFO: ==32322== Releasing lock... [2025-03-20 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:04:26] Production.INFO: 77.75 MB #Memory Used# [2025-03-20 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:05:06 [end_date_ymd] => 2025-03-20 14:05:06 [RateCDR] => 1 ) [2025-03-20 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:05:06' and `end` < '2025-03-20 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:05:19] Production.INFO: count ==6609 [2025-03-20 14:05:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:05:06 - End Time 2025-03-20 14:05:06 [2025-03-20 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723335', 'tblTempUsageDetail_20' ) start [2025-03-20 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723335', 'tblTempUsageDetail_20' ) end [2025-03-20 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723335', 'tblTempVendorCDR_20' ) start [2025-03-20 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723335', 'tblTempVendorCDR_20' ) end [2025-03-20 14:05:23] Production.INFO: ProcessCDR(1,14723335,1,1,2) [2025-03-20 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723335', 'tblTempUsageDetail_20' ) start [2025-03-20 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723335', 'tblTempUsageDetail_20' ) end [2025-03-20 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:05:28] Production.INFO: ==32399== Releasing lock... [2025-03-20 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:05:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:06:06 [end_date_ymd] => 2025-03-20 14:06:06 [RateCDR] => 1 ) [2025-03-20 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:06:06' and `end` < '2025-03-20 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:06:20] Production.INFO: count ==6598 [2025-03-20 14:06:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:06:06 - End Time 2025-03-20 14:06:06 [2025-03-20 14:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723340', 'tblTempUsageDetail_20' ) start [2025-03-20 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723340', 'tblTempUsageDetail_20' ) end [2025-03-20 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723340', 'tblTempVendorCDR_20' ) start [2025-03-20 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723340', 'tblTempVendorCDR_20' ) end [2025-03-20 14:06:23] Production.INFO: ProcessCDR(1,14723340,1,1,2) [2025-03-20 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723340', 'tblTempUsageDetail_20' ) start [2025-03-20 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723340', 'tblTempUsageDetail_20' ) end [2025-03-20 14:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:06:28] Production.INFO: ==32478== Releasing lock... [2025-03-20 14:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:06:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:07:05 [end_date_ymd] => 2025-03-20 14:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:07:19] Production.INFO: count ==6591 [2025-03-20 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:07:05 - End Time 2025-03-20 14:07:05 [2025-03-20 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723345', 'tblTempUsageDetail_20' ) start [2025-03-20 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723345', 'tblTempUsageDetail_20' ) end [2025-03-20 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723345', 'tblTempVendorCDR_20' ) start [2025-03-20 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723345', 'tblTempVendorCDR_20' ) end [2025-03-20 14:07:22] Production.INFO: ProcessCDR(1,14723345,1,1,2) [2025-03-20 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723345', 'tblTempUsageDetail_20' ) start [2025-03-20 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723345', 'tblTempUsageDetail_20' ) end [2025-03-20 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:07:27] Production.INFO: ==32603== Releasing lock... [2025-03-20 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:07:27] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:08:05 [end_date_ymd] => 2025-03-20 14:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:08:19] Production.INFO: count ==6586 [2025-03-20 14:08:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:08:05 - End Time 2025-03-20 14:08:05 [2025-03-20 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723350', 'tblTempUsageDetail_20' ) start [2025-03-20 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723350', 'tblTempUsageDetail_20' ) end [2025-03-20 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723350', 'tblTempVendorCDR_20' ) start [2025-03-20 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723350', 'tblTempVendorCDR_20' ) end [2025-03-20 14:08:22] Production.INFO: ProcessCDR(1,14723350,1,1,2) [2025-03-20 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723350', 'tblTempUsageDetail_20' ) start [2025-03-20 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723350', 'tblTempUsageDetail_20' ) end [2025-03-20 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:08:28] Production.INFO: ==32681== Releasing lock... [2025-03-20 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:08:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:09:05 [end_date_ymd] => 2025-03-20 14:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:09:19] Production.INFO: count ==6628 [2025-03-20 14:09:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:09:05 - End Time 2025-03-20 14:09:05 [2025-03-20 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723355', 'tblTempUsageDetail_20' ) start [2025-03-20 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723355', 'tblTempUsageDetail_20' ) end [2025-03-20 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723355', 'tblTempVendorCDR_20' ) start [2025-03-20 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723355', 'tblTempVendorCDR_20' ) end [2025-03-20 14:09:22] Production.INFO: ProcessCDR(1,14723355,1,1,2) [2025-03-20 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723355', 'tblTempUsageDetail_20' ) start [2025-03-20 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723355', 'tblTempUsageDetail_20' ) end [2025-03-20 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:09:27] Production.INFO: ==32767== Releasing lock... [2025-03-20 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:09:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:10:06 [end_date_ymd] => 2025-03-20 14:10:06 [RateCDR] => 1 ) [2025-03-20 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:10:06' and `end` < '2025-03-20 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:10:20] Production.INFO: count ==6626 [2025-03-20 14:10:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:10:06 - End Time 2025-03-20 14:10:06 [2025-03-20 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723360', 'tblTempUsageDetail_20' ) start [2025-03-20 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723360', 'tblTempUsageDetail_20' ) end [2025-03-20 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723360', 'tblTempVendorCDR_20' ) start [2025-03-20 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723360', 'tblTempVendorCDR_20' ) end [2025-03-20 14:10:23] Production.INFO: ProcessCDR(1,14723360,1,1,2) [2025-03-20 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723360', 'tblTempUsageDetail_20' ) start [2025-03-20 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723360', 'tblTempUsageDetail_20' ) end [2025-03-20 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:10:28] Production.INFO: ==404== Releasing lock... [2025-03-20 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:10:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:11:05 [end_date_ymd] => 2025-03-20 14:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:11:18] Production.INFO: count ==6541 [2025-03-20 14:11:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:11:05 - End Time 2025-03-20 14:11:05 [2025-03-20 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723366', 'tblTempUsageDetail_20' ) start [2025-03-20 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723366', 'tblTempUsageDetail_20' ) end [2025-03-20 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723366', 'tblTempVendorCDR_20' ) start [2025-03-20 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723366', 'tblTempVendorCDR_20' ) end [2025-03-20 14:11:22] Production.INFO: ProcessCDR(1,14723366,1,1,2) [2025-03-20 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723366', 'tblTempUsageDetail_20' ) start [2025-03-20 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723366', 'tblTempUsageDetail_20' ) end [2025-03-20 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:11:27] Production.INFO: ==490== Releasing lock... [2025-03-20 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:11:27] Production.INFO: 77 MB #Memory Used# [2025-03-20 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:12:05 [end_date_ymd] => 2025-03-20 14:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:12:19] Production.INFO: count ==6500 [2025-03-20 14:12:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:12:05 - End Time 2025-03-20 14:12:05 [2025-03-20 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723371', 'tblTempUsageDetail_20' ) start [2025-03-20 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723371', 'tblTempUsageDetail_20' ) end [2025-03-20 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723371', 'tblTempVendorCDR_20' ) start [2025-03-20 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723371', 'tblTempVendorCDR_20' ) end [2025-03-20 14:12:22] Production.INFO: ProcessCDR(1,14723371,1,1,2) [2025-03-20 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723371', 'tblTempUsageDetail_20' ) start [2025-03-20 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723371', 'tblTempUsageDetail_20' ) end [2025-03-20 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:12:27] Production.INFO: ==576== Releasing lock... [2025-03-20 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:12:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:13:05 [end_date_ymd] => 2025-03-20 14:13:05 [RateCDR] => 1 ) [2025-03-20 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:13:05' and `end` < '2025-03-20 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:13:18] Production.INFO: count ==6487 [2025-03-20 14:13:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:13:05 - End Time 2025-03-20 14:13:05 [2025-03-20 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723376', 'tblTempUsageDetail_20' ) start [2025-03-20 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723376', 'tblTempUsageDetail_20' ) end [2025-03-20 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723376', 'tblTempVendorCDR_20' ) start [2025-03-20 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723376', 'tblTempVendorCDR_20' ) end [2025-03-20 14:13:22] Production.INFO: ProcessCDR(1,14723376,1,1,2) [2025-03-20 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723376', 'tblTempUsageDetail_20' ) start [2025-03-20 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723376', 'tblTempUsageDetail_20' ) end [2025-03-20 14:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:13:28] Production.INFO: ==681== Releasing lock... [2025-03-20 14:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:13:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:14:06 [end_date_ymd] => 2025-03-20 14:14:06 [RateCDR] => 1 ) [2025-03-20 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:14:06' and `end` < '2025-03-20 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:14:20] Production.INFO: count ==6465 [2025-03-20 14:14:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:14:06 - End Time 2025-03-20 14:14:06 [2025-03-20 14:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723381', 'tblTempUsageDetail_20' ) start [2025-03-20 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723381', 'tblTempUsageDetail_20' ) end [2025-03-20 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723381', 'tblTempVendorCDR_20' ) start [2025-03-20 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723381', 'tblTempVendorCDR_20' ) end [2025-03-20 14:14:23] Production.INFO: ProcessCDR(1,14723381,1,1,2) [2025-03-20 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723381', 'tblTempUsageDetail_20' ) start [2025-03-20 14:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723381', 'tblTempUsageDetail_20' ) end [2025-03-20 14:14:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:14:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:14:29] Production.INFO: ==775== Releasing lock... [2025-03-20 14:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:14:29] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:15:05 [end_date_ymd] => 2025-03-20 14:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:15:19] Production.INFO: count ==6474 [2025-03-20 14:15:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:15:05 - End Time 2025-03-20 14:15:05 [2025-03-20 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723386', 'tblTempUsageDetail_20' ) start [2025-03-20 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723386', 'tblTempUsageDetail_20' ) end [2025-03-20 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723386', 'tblTempVendorCDR_20' ) start [2025-03-20 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723386', 'tblTempVendorCDR_20' ) end [2025-03-20 14:15:22] Production.INFO: ProcessCDR(1,14723386,1,1,2) [2025-03-20 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723386', 'tblTempUsageDetail_20' ) start [2025-03-20 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723386', 'tblTempUsageDetail_20' ) end [2025-03-20 14:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:15:28] Production.INFO: ==852== Releasing lock... [2025-03-20 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:15:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:16:05 [end_date_ymd] => 2025-03-20 14:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:16:19] Production.INFO: count ==6474 [2025-03-20 14:16:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:16:05 - End Time 2025-03-20 14:16:05 [2025-03-20 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723391', 'tblTempUsageDetail_20' ) start [2025-03-20 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723391', 'tblTempUsageDetail_20' ) end [2025-03-20 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723391', 'tblTempVendorCDR_20' ) start [2025-03-20 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723391', 'tblTempVendorCDR_20' ) end [2025-03-20 14:16:22] Production.INFO: ProcessCDR(1,14723391,1,1,2) [2025-03-20 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723391', 'tblTempUsageDetail_20' ) start [2025-03-20 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723391', 'tblTempUsageDetail_20' ) end [2025-03-20 14:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:16:28] Production.INFO: ==939== Releasing lock... [2025-03-20 14:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:16:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:17:05 [end_date_ymd] => 2025-03-20 14:17:05 [RateCDR] => 1 ) [2025-03-20 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:17:05' and `end` < '2025-03-20 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:17:19] Production.INFO: count ==6477 [2025-03-20 14:17:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:17:05 - End Time 2025-03-20 14:17:05 [2025-03-20 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723396', 'tblTempUsageDetail_20' ) start [2025-03-20 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723396', 'tblTempUsageDetail_20' ) end [2025-03-20 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723396', 'tblTempVendorCDR_20' ) start [2025-03-20 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723396', 'tblTempVendorCDR_20' ) end [2025-03-20 14:17:23] Production.INFO: ProcessCDR(1,14723396,1,1,2) [2025-03-20 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723396', 'tblTempUsageDetail_20' ) start [2025-03-20 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723396', 'tblTempUsageDetail_20' ) end [2025-03-20 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:17:28] Production.INFO: ==1024== Releasing lock... [2025-03-20 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:17:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:18:06 [end_date_ymd] => 2025-03-20 14:18:06 [RateCDR] => 1 ) [2025-03-20 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:18:06' and `end` < '2025-03-20 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:18:20] Production.INFO: count ==6474 [2025-03-20 14:18:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:18:06 - End Time 2025-03-20 14:18:06 [2025-03-20 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723401', 'tblTempUsageDetail_20' ) start [2025-03-20 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723401', 'tblTempUsageDetail_20' ) end [2025-03-20 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723401', 'tblTempVendorCDR_20' ) start [2025-03-20 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723401', 'tblTempVendorCDR_20' ) end [2025-03-20 14:18:23] Production.INFO: ProcessCDR(1,14723401,1,1,2) [2025-03-20 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723401', 'tblTempUsageDetail_20' ) start [2025-03-20 14:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723401', 'tblTempUsageDetail_20' ) end [2025-03-20 14:18:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:18:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:18:29] Production.INFO: ==1119== Releasing lock... [2025-03-20 14:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:18:29] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:19:05 [end_date_ymd] => 2025-03-20 14:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:19:19] Production.INFO: count ==6499 [2025-03-20 14:19:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:19:05 - End Time 2025-03-20 14:19:05 [2025-03-20 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723406', 'tblTempUsageDetail_20' ) start [2025-03-20 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723406', 'tblTempUsageDetail_20' ) end [2025-03-20 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723406', 'tblTempVendorCDR_20' ) start [2025-03-20 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723406', 'tblTempVendorCDR_20' ) end [2025-03-20 14:19:22] Production.INFO: ProcessCDR(1,14723406,1,1,2) [2025-03-20 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723406', 'tblTempUsageDetail_20' ) start [2025-03-20 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723406', 'tblTempUsageDetail_20' ) end [2025-03-20 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:19:28] Production.INFO: ==1208== Releasing lock... [2025-03-20 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:19:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:20:07 [end_date_ymd] => 2025-03-20 14:20:07 [RateCDR] => 1 ) [2025-03-20 14:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:20:07' and `end` < '2025-03-20 14:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:20:21] Production.INFO: count ==6553 [2025-03-20 14:20:24] Production.ERROR: pbx CDR StartTime 2025-03-20 11:20:07 - End Time 2025-03-20 14:20:07 [2025-03-20 14:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723412', 'tblTempUsageDetail_20' ) start [2025-03-20 14:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723412', 'tblTempUsageDetail_20' ) end [2025-03-20 14:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723412', 'tblTempVendorCDR_20' ) start [2025-03-20 14:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723412', 'tblTempVendorCDR_20' ) end [2025-03-20 14:20:25] Production.INFO: ProcessCDR(1,14723412,1,1,2) [2025-03-20 14:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723412', 'tblTempUsageDetail_20' ) start [2025-03-20 14:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723412', 'tblTempUsageDetail_20' ) end [2025-03-20 14:20:31] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:20:31] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:20:31] Production.INFO: ==1306== Releasing lock... [2025-03-20 14:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:20:31] Production.INFO: 77 MB #Memory Used# [2025-03-20 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:21:06 [end_date_ymd] => 2025-03-20 14:21:06 [RateCDR] => 1 ) [2025-03-20 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:21:06' and `end` < '2025-03-20 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:21:20] Production.INFO: count ==6602 [2025-03-20 14:21:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:21:06 - End Time 2025-03-20 14:21:06 [2025-03-20 14:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723417', 'tblTempUsageDetail_20' ) start [2025-03-20 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723417', 'tblTempUsageDetail_20' ) end [2025-03-20 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723417', 'tblTempVendorCDR_20' ) start [2025-03-20 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723417', 'tblTempVendorCDR_20' ) end [2025-03-20 14:21:23] Production.INFO: ProcessCDR(1,14723417,1,1,2) [2025-03-20 14:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723417', 'tblTempUsageDetail_20' ) start [2025-03-20 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723417', 'tblTempUsageDetail_20' ) end [2025-03-20 14:21:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:21:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:21:29] Production.INFO: ==1392== Releasing lock... [2025-03-20 14:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:21:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:22:06 [end_date_ymd] => 2025-03-20 14:22:06 [RateCDR] => 1 ) [2025-03-20 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:22:06' and `end` < '2025-03-20 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:22:19] Production.INFO: count ==6612 [2025-03-20 14:22:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:22:06 - End Time 2025-03-20 14:22:06 [2025-03-20 14:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723422', 'tblTempUsageDetail_20' ) start [2025-03-20 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723422', 'tblTempUsageDetail_20' ) end [2025-03-20 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723422', 'tblTempVendorCDR_20' ) start [2025-03-20 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723422', 'tblTempVendorCDR_20' ) end [2025-03-20 14:22:23] Production.INFO: ProcessCDR(1,14723422,1,1,2) [2025-03-20 14:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723422', 'tblTempUsageDetail_20' ) start [2025-03-20 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723422', 'tblTempUsageDetail_20' ) end [2025-03-20 14:22:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:22:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:22:29] Production.INFO: ==1551== Releasing lock... [2025-03-20 14:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:22:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:23:05 [end_date_ymd] => 2025-03-20 14:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:23:19] Production.INFO: count ==6626 [2025-03-20 14:23:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:23:05 - End Time 2025-03-20 14:23:05 [2025-03-20 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723427', 'tblTempUsageDetail_20' ) start [2025-03-20 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723427', 'tblTempUsageDetail_20' ) end [2025-03-20 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723427', 'tblTempVendorCDR_20' ) start [2025-03-20 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723427', 'tblTempVendorCDR_20' ) end [2025-03-20 14:23:23] Production.INFO: ProcessCDR(1,14723427,1,1,2) [2025-03-20 14:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723427', 'tblTempUsageDetail_20' ) start [2025-03-20 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723427', 'tblTempUsageDetail_20' ) end [2025-03-20 14:23:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:23:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:23:29] Production.INFO: ==1647== Releasing lock... [2025-03-20 14:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:23:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:24:06 [end_date_ymd] => 2025-03-20 14:24:06 [RateCDR] => 1 ) [2025-03-20 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:24:06' and `end` < '2025-03-20 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:24:19] Production.INFO: count ==6614 [2025-03-20 14:24:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:24:06 - End Time 2025-03-20 14:24:06 [2025-03-20 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723432', 'tblTempUsageDetail_20' ) start [2025-03-20 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723432', 'tblTempUsageDetail_20' ) end [2025-03-20 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723432', 'tblTempVendorCDR_20' ) start [2025-03-20 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723432', 'tblTempVendorCDR_20' ) end [2025-03-20 14:24:23] Production.INFO: ProcessCDR(1,14723432,1,1,2) [2025-03-20 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723432', 'tblTempUsageDetail_20' ) start [2025-03-20 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723432', 'tblTempUsageDetail_20' ) end [2025-03-20 14:24:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:24:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:24:29] Production.INFO: ==1730== Releasing lock... [2025-03-20 14:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:24:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:25:05 [end_date_ymd] => 2025-03-20 14:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:25:19] Production.INFO: count ==6654 [2025-03-20 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:25:05 - End Time 2025-03-20 14:25:05 [2025-03-20 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723437', 'tblTempUsageDetail_20' ) start [2025-03-20 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723437', 'tblTempUsageDetail_20' ) end [2025-03-20 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723437', 'tblTempVendorCDR_20' ) start [2025-03-20 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723437', 'tblTempVendorCDR_20' ) end [2025-03-20 14:25:22] Production.INFO: ProcessCDR(1,14723437,1,1,2) [2025-03-20 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723437', 'tblTempUsageDetail_20' ) start [2025-03-20 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723437', 'tblTempUsageDetail_20' ) end [2025-03-20 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:25:28] Production.INFO: ==1820== Releasing lock... [2025-03-20 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:25:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-20 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:26:05 [end_date_ymd] => 2025-03-20 14:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:26:05' and `end` < '2025-03-20 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:26:19] Production.INFO: count ==6670 [2025-03-20 14:26:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:26:05 - End Time 2025-03-20 14:26:05 [2025-03-20 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723442', 'tblTempUsageDetail_20' ) start [2025-03-20 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723442', 'tblTempUsageDetail_20' ) end [2025-03-20 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723442', 'tblTempVendorCDR_20' ) start [2025-03-20 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723442', 'tblTempVendorCDR_20' ) end [2025-03-20 14:26:22] Production.INFO: ProcessCDR(1,14723442,1,1,2) [2025-03-20 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723442', 'tblTempUsageDetail_20' ) start [2025-03-20 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723442', 'tblTempUsageDetail_20' ) end [2025-03-20 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:26:28] Production.INFO: ==1908== Releasing lock... [2025-03-20 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:26:28] Production.INFO: 78 MB #Memory Used# [2025-03-20 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:27:06 [end_date_ymd] => 2025-03-20 14:27:06 [RateCDR] => 1 ) [2025-03-20 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:27:06' and `end` < '2025-03-20 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:27:19] Production.INFO: count ==6653 [2025-03-20 14:27:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:27:06 - End Time 2025-03-20 14:27:06 [2025-03-20 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723447', 'tblTempUsageDetail_20' ) start [2025-03-20 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723447', 'tblTempUsageDetail_20' ) end [2025-03-20 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723447', 'tblTempVendorCDR_20' ) start [2025-03-20 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723447', 'tblTempVendorCDR_20' ) end [2025-03-20 14:27:22] Production.INFO: ProcessCDR(1,14723447,1,1,2) [2025-03-20 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723447', 'tblTempUsageDetail_20' ) start [2025-03-20 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723447', 'tblTempUsageDetail_20' ) end [2025-03-20 14:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:27:28] Production.INFO: ==1996== Releasing lock... [2025-03-20 14:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:27:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-20 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:28:05 [end_date_ymd] => 2025-03-20 14:28:05 [RateCDR] => 1 ) [2025-03-20 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:28:05' and `end` < '2025-03-20 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:28:19] Production.INFO: count ==6655 [2025-03-20 14:28:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:28:05 - End Time 2025-03-20 14:28:05 [2025-03-20 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723452', 'tblTempUsageDetail_20' ) start [2025-03-20 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723452', 'tblTempUsageDetail_20' ) end [2025-03-20 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723452', 'tblTempVendorCDR_20' ) start [2025-03-20 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723452', 'tblTempVendorCDR_20' ) end [2025-03-20 14:28:22] Production.INFO: ProcessCDR(1,14723452,1,1,2) [2025-03-20 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723452', 'tblTempUsageDetail_20' ) start [2025-03-20 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723452', 'tblTempUsageDetail_20' ) end [2025-03-20 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:28:28] Production.INFO: ==2095== Releasing lock... [2025-03-20 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:28:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-20 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:29:06 [end_date_ymd] => 2025-03-20 14:29:06 [RateCDR] => 1 ) [2025-03-20 14:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:29:06' and `end` < '2025-03-20 14:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:29:19] Production.INFO: count ==6646 [2025-03-20 14:29:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:29:06 - End Time 2025-03-20 14:29:06 [2025-03-20 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723457', 'tblTempUsageDetail_20' ) start [2025-03-20 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723457', 'tblTempUsageDetail_20' ) end [2025-03-20 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723457', 'tblTempVendorCDR_20' ) start [2025-03-20 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723457', 'tblTempVendorCDR_20' ) end [2025-03-20 14:29:23] Production.INFO: ProcessCDR(1,14723457,1,1,2) [2025-03-20 14:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723457', 'tblTempUsageDetail_20' ) start [2025-03-20 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723457', 'tblTempUsageDetail_20' ) end [2025-03-20 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:29:28] Production.INFO: ==2178== Releasing lock... [2025-03-20 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:29:28] Production.INFO: 77.75 MB #Memory Used# [2025-03-20 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:30:06 [end_date_ymd] => 2025-03-20 14:30:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:30:06' and `end` < '2025-03-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 ,'') [2025-03-20 14:30:20] Production.INFO: count ==6596 [2025-03-20 14:30:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:30:06 - End Time 2025-03-20 14:30:06 [2025-03-20 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723463', 'tblTempUsageDetail_20' ) start [2025-03-20 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723463', 'tblTempUsageDetail_20' ) end [2025-03-20 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723463', 'tblTempVendorCDR_20' ) start [2025-03-20 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723463', 'tblTempVendorCDR_20' ) end [2025-03-20 14:30:23] Production.INFO: ProcessCDR(1,14723463,1,1,2) [2025-03-20 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723463', 'tblTempUsageDetail_20' ) start [2025-03-20 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723463', 'tblTempUsageDetail_20' ) end [2025-03-20 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:30:29] Production.INFO: ==2271== Releasing lock... [2025-03-20 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:30:29] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:31:05 [end_date_ymd] => 2025-03-20 14:31:05 [RateCDR] => 1 ) [2025-03-20 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:31:05' and `end` < '2025-03-20 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:31:19] Production.INFO: count ==6661 [2025-03-20 14:31:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:31:05 - End Time 2025-03-20 14:31:05 [2025-03-20 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723468', 'tblTempUsageDetail_20' ) start [2025-03-20 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723468', 'tblTempUsageDetail_20' ) end [2025-03-20 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723468', 'tblTempVendorCDR_20' ) start [2025-03-20 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723468', 'tblTempVendorCDR_20' ) end [2025-03-20 14:31:22] Production.INFO: ProcessCDR(1,14723468,1,1,2) [2025-03-20 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723468', 'tblTempUsageDetail_20' ) start [2025-03-20 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723468', 'tblTempUsageDetail_20' ) end [2025-03-20 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:31:28] Production.INFO: ==2357== Releasing lock... [2025-03-20 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:31:28] Production.INFO: 78 MB #Memory Used# [2025-03-20 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:32:06 [end_date_ymd] => 2025-03-20 14:32:06 [RateCDR] => 1 ) [2025-03-20 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:32:06' and `end` < '2025-03-20 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:32:19] Production.INFO: count ==6626 [2025-03-20 14:32:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:32:06 - End Time 2025-03-20 14:32:06 [2025-03-20 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723473', 'tblTempUsageDetail_20' ) start [2025-03-20 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723473', 'tblTempUsageDetail_20' ) end [2025-03-20 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723473', 'tblTempVendorCDR_20' ) start [2025-03-20 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723473', 'tblTempVendorCDR_20' ) end [2025-03-20 14:32:23] Production.INFO: ProcessCDR(1,14723473,1,1,2) [2025-03-20 14:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723473', 'tblTempUsageDetail_20' ) start [2025-03-20 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723473', 'tblTempUsageDetail_20' ) end [2025-03-20 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:32:28] Production.INFO: ==2440== Releasing lock... [2025-03-20 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:32:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-20 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:33:05 [end_date_ymd] => 2025-03-20 14:33:05 [RateCDR] => 1 ) [2025-03-20 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:33:05' and `end` < '2025-03-20 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:33:19] Production.INFO: count ==6584 [2025-03-20 14:33:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:33:05 - End Time 2025-03-20 14:33:05 [2025-03-20 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723478', 'tblTempUsageDetail_20' ) start [2025-03-20 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723478', 'tblTempUsageDetail_20' ) end [2025-03-20 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723478', 'tblTempVendorCDR_20' ) start [2025-03-20 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723478', 'tblTempVendorCDR_20' ) end [2025-03-20 14:33:22] Production.INFO: ProcessCDR(1,14723478,1,1,2) [2025-03-20 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723478', 'tblTempUsageDetail_20' ) start [2025-03-20 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723478', 'tblTempUsageDetail_20' ) end [2025-03-20 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:33:28] Production.INFO: ==2523== Releasing lock... [2025-03-20 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:33:28] Production.INFO: 77.25 MB #Memory Used# [2025-03-20 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:34:05 [end_date_ymd] => 2025-03-20 14:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:34:19] Production.INFO: count ==6561 [2025-03-20 14:34:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:34:05 - End Time 2025-03-20 14:34:05 [2025-03-20 14:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723483', 'tblTempUsageDetail_20' ) start [2025-03-20 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723483', 'tblTempUsageDetail_20' ) end [2025-03-20 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723483', 'tblTempVendorCDR_20' ) start [2025-03-20 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723483', 'tblTempVendorCDR_20' ) end [2025-03-20 14:34:23] Production.INFO: ProcessCDR(1,14723483,1,1,2) [2025-03-20 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723483', 'tblTempUsageDetail_20' ) start [2025-03-20 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723483', 'tblTempUsageDetail_20' ) end [2025-03-20 14:34:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:34:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:34:29] Production.INFO: ==2607== Releasing lock... [2025-03-20 14:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:34:29] Production.INFO: 77 MB #Memory Used# [2025-03-20 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:35:06 [end_date_ymd] => 2025-03-20 14:35:06 [RateCDR] => 1 ) [2025-03-20 14:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:35:06' and `end` < '2025-03-20 14:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:35:19] Production.INFO: count ==6498 [2025-03-20 14:35:24] Production.ERROR: pbx CDR StartTime 2025-03-20 11:35:06 - End Time 2025-03-20 14:35:06 [2025-03-20 14:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723488', 'tblTempUsageDetail_20' ) start [2025-03-20 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723488', 'tblTempUsageDetail_20' ) end [2025-03-20 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723488', 'tblTempVendorCDR_20' ) start [2025-03-20 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723488', 'tblTempVendorCDR_20' ) end [2025-03-20 14:35:24] Production.INFO: ProcessCDR(1,14723488,1,1,2) [2025-03-20 14:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723488', 'tblTempUsageDetail_20' ) start [2025-03-20 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723488', 'tblTempUsageDetail_20' ) end [2025-03-20 14:35:32] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:35:32] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:35:32] Production.INFO: ==2698== Releasing lock... [2025-03-20 14:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:35:32] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:36:05 [end_date_ymd] => 2025-03-20 14:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:36:19] Production.INFO: count ==6492 [2025-03-20 14:36:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:36:05 - End Time 2025-03-20 14:36:05 [2025-03-20 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723493', 'tblTempUsageDetail_20' ) start [2025-03-20 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723493', 'tblTempUsageDetail_20' ) end [2025-03-20 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723493', 'tblTempVendorCDR_20' ) start [2025-03-20 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723493', 'tblTempVendorCDR_20' ) end [2025-03-20 14:36:22] Production.INFO: ProcessCDR(1,14723493,1,1,2) [2025-03-20 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723493', 'tblTempUsageDetail_20' ) start [2025-03-20 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723493', 'tblTempUsageDetail_20' ) end [2025-03-20 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:36:28] Production.INFO: ==2794== Releasing lock... [2025-03-20 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:36:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:37:06 [end_date_ymd] => 2025-03-20 14:37:06 [RateCDR] => 1 ) [2025-03-20 14:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:37:06' and `end` < '2025-03-20 14:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:37:19] Production.INFO: count ==6481 [2025-03-20 14:37:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:37:06 - End Time 2025-03-20 14:37:06 [2025-03-20 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723498', 'tblTempUsageDetail_20' ) start [2025-03-20 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723498', 'tblTempUsageDetail_20' ) end [2025-03-20 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723498', 'tblTempVendorCDR_20' ) start [2025-03-20 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723498', 'tblTempVendorCDR_20' ) end [2025-03-20 14:37:22] Production.INFO: ProcessCDR(1,14723498,1,1,2) [2025-03-20 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723498', 'tblTempUsageDetail_20' ) start [2025-03-20 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723498', 'tblTempUsageDetail_20' ) end [2025-03-20 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:37:27] Production.INFO: ==2924== Releasing lock... [2025-03-20 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:37:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:38:05 [end_date_ymd] => 2025-03-20 14:38:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:38:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:38:19] Production.INFO: count ==6479 [2025-03-20 14:38:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:38:05 - End Time 2025-03-20 14:38:05 [2025-03-20 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723503', 'tblTempUsageDetail_20' ) start [2025-03-20 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723503', 'tblTempUsageDetail_20' ) end [2025-03-20 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723503', 'tblTempVendorCDR_20' ) start [2025-03-20 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723503', 'tblTempVendorCDR_20' ) end [2025-03-20 14:38:22] Production.INFO: ProcessCDR(1,14723503,1,1,2) [2025-03-20 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723503', 'tblTempUsageDetail_20' ) start [2025-03-20 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723503', 'tblTempUsageDetail_20' ) end [2025-03-20 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:38:27] Production.INFO: ==3011== Releasing lock... [2025-03-20 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:38:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:39:05 [end_date_ymd] => 2025-03-20 14:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:39:19] Production.INFO: count ==6486 [2025-03-20 14:39:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:39:05 - End Time 2025-03-20 14:39:05 [2025-03-20 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723508', 'tblTempUsageDetail_20' ) start [2025-03-20 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723508', 'tblTempUsageDetail_20' ) end [2025-03-20 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723508', 'tblTempVendorCDR_20' ) start [2025-03-20 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723508', 'tblTempVendorCDR_20' ) end [2025-03-20 14:39:22] Production.INFO: ProcessCDR(1,14723508,1,1,2) [2025-03-20 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723508', 'tblTempUsageDetail_20' ) start [2025-03-20 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723508', 'tblTempUsageDetail_20' ) end [2025-03-20 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:39:27] Production.INFO: ==3096== Releasing lock... [2025-03-20 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:39:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:40:06 [end_date_ymd] => 2025-03-20 14:40:06 [RateCDR] => 1 ) [2025-03-20 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:40:06' and `end` < '2025-03-20 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:40:20] Production.INFO: count ==6480 [2025-03-20 14:40:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:40:06 - End Time 2025-03-20 14:40:06 [2025-03-20 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723514', 'tblTempUsageDetail_20' ) start [2025-03-20 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723514', 'tblTempUsageDetail_20' ) end [2025-03-20 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723514', 'tblTempVendorCDR_20' ) start [2025-03-20 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723514', 'tblTempVendorCDR_20' ) end [2025-03-20 14:40:23] Production.INFO: ProcessCDR(1,14723514,1,1,2) [2025-03-20 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723514', 'tblTempUsageDetail_20' ) start [2025-03-20 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723514', 'tblTempUsageDetail_20' ) end [2025-03-20 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:40:27] Production.INFO: ==3176== Releasing lock... [2025-03-20 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:40:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:41:05 [end_date_ymd] => 2025-03-20 14:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:41:19] Production.INFO: count ==6462 [2025-03-20 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:41:05 - End Time 2025-03-20 14:41:05 [2025-03-20 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723519', 'tblTempUsageDetail_20' ) start [2025-03-20 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723519', 'tblTempUsageDetail_20' ) end [2025-03-20 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723519', 'tblTempVendorCDR_20' ) start [2025-03-20 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723519', 'tblTempVendorCDR_20' ) end [2025-03-20 14:41:22] Production.INFO: ProcessCDR(1,14723519,1,1,2) [2025-03-20 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723519', 'tblTempUsageDetail_20' ) start [2025-03-20 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723519', 'tblTempUsageDetail_20' ) end [2025-03-20 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:41:27] Production.INFO: ==3260== Releasing lock... [2025-03-20 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:41:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:42:05 [end_date_ymd] => 2025-03-20 14:42:05 [RateCDR] => 1 ) [2025-03-20 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:42:05' and `end` < '2025-03-20 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:42:19] Production.INFO: count ==6435 [2025-03-20 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:42:05 - End Time 2025-03-20 14:42:05 [2025-03-20 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723524', 'tblTempUsageDetail_20' ) start [2025-03-20 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723524', 'tblTempUsageDetail_20' ) end [2025-03-20 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723524', 'tblTempVendorCDR_20' ) start [2025-03-20 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723524', 'tblTempVendorCDR_20' ) end [2025-03-20 14:42:22] Production.INFO: ProcessCDR(1,14723524,1,1,2) [2025-03-20 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723524', 'tblTempUsageDetail_20' ) start [2025-03-20 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723524', 'tblTempUsageDetail_20' ) end [2025-03-20 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:42:27] Production.INFO: ==3333== Releasing lock... [2025-03-20 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:42:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:43:05 [end_date_ymd] => 2025-03-20 14:43:05 [RateCDR] => 1 ) [2025-03-20 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:43:05' and `end` < '2025-03-20 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:43:19] Production.INFO: count ==6412 [2025-03-20 14:43:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:43:05 - End Time 2025-03-20 14:43:05 [2025-03-20 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723529', 'tblTempUsageDetail_20' ) start [2025-03-20 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723529', 'tblTempUsageDetail_20' ) end [2025-03-20 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723529', 'tblTempVendorCDR_20' ) start [2025-03-20 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723529', 'tblTempVendorCDR_20' ) end [2025-03-20 14:43:22] Production.INFO: ProcessCDR(1,14723529,1,1,2) [2025-03-20 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723529', 'tblTempUsageDetail_20' ) start [2025-03-20 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723529', 'tblTempUsageDetail_20' ) end [2025-03-20 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:43:28] Production.INFO: ==3417== Releasing lock... [2025-03-20 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:43:28] Production.INFO: 76 MB #Memory Used# [2025-03-20 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:44:05 [end_date_ymd] => 2025-03-20 14:44:05 [RateCDR] => 1 ) [2025-03-20 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:44:05' and `end` < '2025-03-20 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:44:18] Production.INFO: count ==6355 [2025-03-20 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:44:05 - End Time 2025-03-20 14:44:05 [2025-03-20 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723534', 'tblTempUsageDetail_20' ) start [2025-03-20 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723534', 'tblTempUsageDetail_20' ) end [2025-03-20 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723534', 'tblTempVendorCDR_20' ) start [2025-03-20 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723534', 'tblTempVendorCDR_20' ) end [2025-03-20 14:44:21] Production.INFO: ProcessCDR(1,14723534,1,1,2) [2025-03-20 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723534', 'tblTempUsageDetail_20' ) start [2025-03-20 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723534', 'tblTempUsageDetail_20' ) end [2025-03-20 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:44:27] Production.INFO: ==3499== Releasing lock... [2025-03-20 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:44:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:45:05 [end_date_ymd] => 2025-03-20 14:45:05 [RateCDR] => 1 ) [2025-03-20 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:45:05' and `end` < '2025-03-20 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:45:18] Production.INFO: count ==6319 [2025-03-20 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:45:05 - End Time 2025-03-20 14:45:05 [2025-03-20 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723539', 'tblTempUsageDetail_20' ) start [2025-03-20 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723539', 'tblTempUsageDetail_20' ) end [2025-03-20 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723539', 'tblTempVendorCDR_20' ) start [2025-03-20 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723539', 'tblTempVendorCDR_20' ) end [2025-03-20 14:45:22] Production.INFO: ProcessCDR(1,14723539,1,1,2) [2025-03-20 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723539', 'tblTempUsageDetail_20' ) start [2025-03-20 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723539', 'tblTempUsageDetail_20' ) end [2025-03-20 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:45:27] Production.INFO: ==3588== Releasing lock... [2025-03-20 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:45:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:46:06 [end_date_ymd] => 2025-03-20 14:46:06 [RateCDR] => 1 ) [2025-03-20 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:46:06' and `end` < '2025-03-20 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:46:19] Production.INFO: count ==6280 [2025-03-20 14:46:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:46:06 - End Time 2025-03-20 14:46:06 [2025-03-20 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723544', 'tblTempUsageDetail_20' ) start [2025-03-20 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723544', 'tblTempUsageDetail_20' ) end [2025-03-20 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723544', 'tblTempVendorCDR_20' ) start [2025-03-20 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723544', 'tblTempVendorCDR_20' ) end [2025-03-20 14:46:23] Production.INFO: ProcessCDR(1,14723544,1,1,2) [2025-03-20 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723544', 'tblTempUsageDetail_20' ) start [2025-03-20 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723544', 'tblTempUsageDetail_20' ) end [2025-03-20 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:46:28] Production.INFO: ==3670== Releasing lock... [2025-03-20 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:46:28] Production.INFO: 75 MB #Memory Used# [2025-03-20 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:47:05 [end_date_ymd] => 2025-03-20 14:47:05 [RateCDR] => 1 ) [2025-03-20 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:47:05' and `end` < '2025-03-20 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:47:19] Production.INFO: count ==6262 [2025-03-20 14:47:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:47:05 - End Time 2025-03-20 14:47:05 [2025-03-20 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723549', 'tblTempUsageDetail_20' ) start [2025-03-20 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723549', 'tblTempUsageDetail_20' ) end [2025-03-20 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723549', 'tblTempVendorCDR_20' ) start [2025-03-20 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723549', 'tblTempVendorCDR_20' ) end [2025-03-20 14:47:22] Production.INFO: ProcessCDR(1,14723549,1,1,2) [2025-03-20 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723549', 'tblTempUsageDetail_20' ) start [2025-03-20 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723549', 'tblTempUsageDetail_20' ) end [2025-03-20 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:47:27] Production.INFO: ==3753== Releasing lock... [2025-03-20 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:47:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-20 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:48:06 [end_date_ymd] => 2025-03-20 14:48:06 [RateCDR] => 1 ) [2025-03-20 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:48:06' and `end` < '2025-03-20 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:48:19] Production.INFO: count ==6272 [2025-03-20 14:48:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:48:06 - End Time 2025-03-20 14:48:06 [2025-03-20 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723554', 'tblTempUsageDetail_20' ) start [2025-03-20 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723554', 'tblTempUsageDetail_20' ) end [2025-03-20 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723554', 'tblTempVendorCDR_20' ) start [2025-03-20 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723554', 'tblTempVendorCDR_20' ) end [2025-03-20 14:48:22] Production.INFO: ProcessCDR(1,14723554,1,1,2) [2025-03-20 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723554', 'tblTempUsageDetail_20' ) start [2025-03-20 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723554', 'tblTempUsageDetail_20' ) end [2025-03-20 14:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:48:28] Production.INFO: ==3839== Releasing lock... [2025-03-20 14:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:48:28] Production.INFO: 75 MB #Memory Used# [2025-03-20 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:49:05 [end_date_ymd] => 2025-03-20 14:49:05 [RateCDR] => 1 ) [2025-03-20 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:49:05' and `end` < '2025-03-20 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:49:19] Production.INFO: count ==6261 [2025-03-20 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:49:05 - End Time 2025-03-20 14:49:05 [2025-03-20 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723559', 'tblTempUsageDetail_20' ) start [2025-03-20 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723559', 'tblTempUsageDetail_20' ) end [2025-03-20 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723559', 'tblTempVendorCDR_20' ) start [2025-03-20 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723559', 'tblTempVendorCDR_20' ) end [2025-03-20 14:49:22] Production.INFO: ProcessCDR(1,14723559,1,1,2) [2025-03-20 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723559', 'tblTempUsageDetail_20' ) start [2025-03-20 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723559', 'tblTempUsageDetail_20' ) end [2025-03-20 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:49:27] Production.INFO: ==3933== Releasing lock... [2025-03-20 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:49:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-20 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:50:07 [end_date_ymd] => 2025-03-20 14:50:07 [RateCDR] => 1 ) [2025-03-20 14:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:50:07' and `end` < '2025-03-20 14:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:50:20] Production.INFO: count ==6255 [2025-03-20 14:50:23] Production.ERROR: pbx CDR StartTime 2025-03-20 11:50:07 - End Time 2025-03-20 14:50:07 [2025-03-20 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723565', 'tblTempUsageDetail_20' ) start [2025-03-20 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723565', 'tblTempUsageDetail_20' ) end [2025-03-20 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723565', 'tblTempVendorCDR_20' ) start [2025-03-20 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723565', 'tblTempVendorCDR_20' ) end [2025-03-20 14:50:23] Production.INFO: ProcessCDR(1,14723565,1,1,2) [2025-03-20 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723565', 'tblTempUsageDetail_20' ) start [2025-03-20 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723565', 'tblTempUsageDetail_20' ) end [2025-03-20 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:50:28] Production.INFO: ==4024== Releasing lock... [2025-03-20 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:50:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-20 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:51:05 [end_date_ymd] => 2025-03-20 14:51:05 [RateCDR] => 1 ) [2025-03-20 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:51:05' and `end` < '2025-03-20 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:51:19] Production.INFO: count ==6208 [2025-03-20 14:51:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:51:05 - End Time 2025-03-20 14:51:05 [2025-03-20 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723570', 'tblTempUsageDetail_20' ) start [2025-03-20 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723570', 'tblTempUsageDetail_20' ) end [2025-03-20 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723570', 'tblTempVendorCDR_20' ) start [2025-03-20 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723570', 'tblTempVendorCDR_20' ) end [2025-03-20 14:51:22] Production.INFO: ProcessCDR(1,14723570,1,1,2) [2025-03-20 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723570', 'tblTempUsageDetail_20' ) start [2025-03-20 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723570', 'tblTempUsageDetail_20' ) end [2025-03-20 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:51:27] Production.INFO: ==4115== Releasing lock... [2025-03-20 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:51:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:52:06 [end_date_ymd] => 2025-03-20 14:52:06 [RateCDR] => 1 ) [2025-03-20 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:52:06' and `end` < '2025-03-20 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:52:19] Production.INFO: count ==6206 [2025-03-20 14:52:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:52:06 - End Time 2025-03-20 14:52:06 [2025-03-20 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723575', 'tblTempUsageDetail_20' ) start [2025-03-20 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723575', 'tblTempUsageDetail_20' ) end [2025-03-20 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723575', 'tblTempVendorCDR_20' ) start [2025-03-20 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723575', 'tblTempVendorCDR_20' ) end [2025-03-20 14:52:23] Production.INFO: ProcessCDR(1,14723575,1,1,2) [2025-03-20 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723575', 'tblTempUsageDetail_20' ) start [2025-03-20 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723575', 'tblTempUsageDetail_20' ) end [2025-03-20 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:52:28] Production.INFO: ==4205== Releasing lock... [2025-03-20 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:52:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:53:06 [end_date_ymd] => 2025-03-20 14:53:06 [RateCDR] => 1 ) [2025-03-20 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:53:06' and `end` < '2025-03-20 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:53:19] Production.INFO: count ==6176 [2025-03-20 14:53:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:53:06 - End Time 2025-03-20 14:53:06 [2025-03-20 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723580', 'tblTempUsageDetail_20' ) start [2025-03-20 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723580', 'tblTempUsageDetail_20' ) end [2025-03-20 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723580', 'tblTempVendorCDR_20' ) start [2025-03-20 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723580', 'tblTempVendorCDR_20' ) end [2025-03-20 14:53:22] Production.INFO: ProcessCDR(1,14723580,1,1,2) [2025-03-20 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723580', 'tblTempUsageDetail_20' ) start [2025-03-20 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723580', 'tblTempUsageDetail_20' ) end [2025-03-20 14:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:53:28] Production.INFO: ==4322== Releasing lock... [2025-03-20 14:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:53:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-20 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:54:05 [end_date_ymd] => 2025-03-20 14:54:05 [RateCDR] => 1 ) [2025-03-20 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:54:05' and `end` < '2025-03-20 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:54:19] Production.INFO: count ==6149 [2025-03-20 14:54:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:54:05 - End Time 2025-03-20 14:54:05 [2025-03-20 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723585', 'tblTempUsageDetail_20' ) start [2025-03-20 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723585', 'tblTempUsageDetail_20' ) end [2025-03-20 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723585', 'tblTempVendorCDR_20' ) start [2025-03-20 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723585', 'tblTempVendorCDR_20' ) end [2025-03-20 14:54:22] Production.INFO: ProcessCDR(1,14723585,1,1,2) [2025-03-20 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723585', 'tblTempUsageDetail_20' ) start [2025-03-20 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723585', 'tblTempUsageDetail_20' ) end [2025-03-20 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:54:28] Production.INFO: ==4402== Releasing lock... [2025-03-20 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:54:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:55:05 [end_date_ymd] => 2025-03-20 14:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 11:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 14:55:19] Production.INFO: count ==6116 [2025-03-20 14:55:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:55:05 - End Time 2025-03-20 14:55:05 [2025-03-20 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723590', 'tblTempUsageDetail_20' ) start [2025-03-20 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723590', 'tblTempUsageDetail_20' ) end [2025-03-20 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723590', 'tblTempVendorCDR_20' ) start [2025-03-20 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723590', 'tblTempVendorCDR_20' ) end [2025-03-20 14:55:22] Production.INFO: ProcessCDR(1,14723590,1,1,2) [2025-03-20 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723590', 'tblTempUsageDetail_20' ) start [2025-03-20 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723590', 'tblTempUsageDetail_20' ) end [2025-03-20 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:55:27] Production.INFO: ==4485== Releasing lock... [2025-03-20 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:55:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:56:05 [end_date_ymd] => 2025-03-20 14:56:05 [RateCDR] => 1 ) [2025-03-20 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:56:05' and `end` < '2025-03-20 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:56:18] Production.INFO: count ==6082 [2025-03-20 14:56:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:56:05 - End Time 2025-03-20 14:56:05 [2025-03-20 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723595', 'tblTempUsageDetail_20' ) start [2025-03-20 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723595', 'tblTempUsageDetail_20' ) end [2025-03-20 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723595', 'tblTempVendorCDR_20' ) start [2025-03-20 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723595', 'tblTempVendorCDR_20' ) end [2025-03-20 14:56:21] Production.INFO: ProcessCDR(1,14723595,1,1,2) [2025-03-20 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723595', 'tblTempUsageDetail_20' ) start [2025-03-20 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723595', 'tblTempUsageDetail_20' ) end [2025-03-20 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:56:27] Production.INFO: ==4582== Releasing lock... [2025-03-20 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:56:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:57:06 [end_date_ymd] => 2025-03-20 14:57:06 [RateCDR] => 1 ) [2025-03-20 14:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:57:06' and `end` < '2025-03-20 14:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:57:19] Production.INFO: count ==6031 [2025-03-20 14:57:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:57:06 - End Time 2025-03-20 14:57:06 [2025-03-20 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723600', 'tblTempUsageDetail_20' ) start [2025-03-20 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723600', 'tblTempUsageDetail_20' ) end [2025-03-20 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723600', 'tblTempVendorCDR_20' ) start [2025-03-20 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723600', 'tblTempVendorCDR_20' ) end [2025-03-20 14:57:22] Production.INFO: ProcessCDR(1,14723600,1,1,2) [2025-03-20 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723600', 'tblTempUsageDetail_20' ) start [2025-03-20 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723600', 'tblTempUsageDetail_20' ) end [2025-03-20 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:57:27] Production.INFO: ==4675== Releasing lock... [2025-03-20 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:57:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:58:05 [end_date_ymd] => 2025-03-20 14:58:05 [RateCDR] => 1 ) [2025-03-20 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:58:05' and `end` < '2025-03-20 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:58:18] Production.INFO: count ==6022 [2025-03-20 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-20 11:58:05 - End Time 2025-03-20 14:58:05 [2025-03-20 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723605', 'tblTempUsageDetail_20' ) start [2025-03-20 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723605', 'tblTempUsageDetail_20' ) end [2025-03-20 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723605', 'tblTempVendorCDR_20' ) start [2025-03-20 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723605', 'tblTempVendorCDR_20' ) end [2025-03-20 14:58:21] Production.INFO: ProcessCDR(1,14723605,1,1,2) [2025-03-20 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723605', 'tblTempUsageDetail_20' ) start [2025-03-20 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723605', 'tblTempUsageDetail_20' ) end [2025-03-20 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:58:26] Production.INFO: ==4758== Releasing lock... [2025-03-20 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:58:26] Production.INFO: 73 MB #Memory Used# [2025-03-20 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 11:59:06 [end_date_ymd] => 2025-03-20 14:59:06 [RateCDR] => 1 ) [2025-03-20 14:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 11:59:06' and `end` < '2025-03-20 14:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 14:59:19] Production.INFO: count ==6010 [2025-03-20 14:59:22] Production.ERROR: pbx CDR StartTime 2025-03-20 11:59:06 - End Time 2025-03-20 14:59:06 [2025-03-20 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723610', 'tblTempUsageDetail_20' ) start [2025-03-20 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723610', 'tblTempUsageDetail_20' ) end [2025-03-20 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723610', 'tblTempVendorCDR_20' ) start [2025-03-20 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723610', 'tblTempVendorCDR_20' ) end [2025-03-20 14:59:22] Production.INFO: ProcessCDR(1,14723610,1,1,2) [2025-03-20 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723610', 'tblTempUsageDetail_20' ) start [2025-03-20 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723610', 'tblTempUsageDetail_20' ) end [2025-03-20 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 14:59:27] Production.INFO: ==4847== Releasing lock... [2025-03-20 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 14:59:27] Production.INFO: 73 MB #Memory Used# [2025-03-20 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:00:06 [end_date_ymd] => 2025-03-20 15:00:06 [RateCDR] => 1 ) [2025-03-20 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:00:06' and `end` < '2025-03-20 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:00:19] Production.INFO: count ==6013 [2025-03-20 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:00:06 - End Time 2025-03-20 15:00:06 [2025-03-20 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723616', 'tblTempUsageDetail_20' ) start [2025-03-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723616', 'tblTempUsageDetail_20' ) end [2025-03-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723616', 'tblTempVendorCDR_20' ) start [2025-03-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723616', 'tblTempVendorCDR_20' ) end [2025-03-20 15:00:22] Production.INFO: ProcessCDR(1,14723616,1,1,2) [2025-03-20 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723616', 'tblTempUsageDetail_20' ) start [2025-03-20 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723616', 'tblTempUsageDetail_20' ) end [2025-03-20 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:00:28] Production.INFO: ==4936== Releasing lock... [2025-03-20 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:00:28] Production.INFO: 73 MB #Memory Used# [2025-03-20 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:01:05 [end_date_ymd] => 2025-03-20 15:01:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:01:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:01:19] Production.INFO: count ==6026 [2025-03-20 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:01:05 - End Time 2025-03-20 15:01:05 [2025-03-20 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723621', 'tblTempUsageDetail_20' ) start [2025-03-20 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723621', 'tblTempUsageDetail_20' ) end [2025-03-20 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723621', 'tblTempVendorCDR_20' ) start [2025-03-20 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723621', 'tblTempVendorCDR_20' ) end [2025-03-20 15:01:22] Production.INFO: ProcessCDR(1,14723621,1,1,2) [2025-03-20 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723621', 'tblTempUsageDetail_20' ) start [2025-03-20 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723621', 'tblTempUsageDetail_20' ) end [2025-03-20 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:01:27] Production.INFO: ==5038== Releasing lock... [2025-03-20 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:01:27] Production.INFO: 73 MB #Memory Used# [2025-03-20 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:02:06 [end_date_ymd] => 2025-03-20 15:02:06 [RateCDR] => 1 ) [2025-03-20 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:02:06' and `end` < '2025-03-20 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:02:20] Production.INFO: count ==6041 [2025-03-20 15:02:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:02:06 - End Time 2025-03-20 15:02:06 [2025-03-20 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723626', 'tblTempUsageDetail_20' ) start [2025-03-20 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723626', 'tblTempUsageDetail_20' ) end [2025-03-20 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723626', 'tblTempVendorCDR_20' ) start [2025-03-20 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723626', 'tblTempVendorCDR_20' ) end [2025-03-20 15:02:23] Production.INFO: ProcessCDR(1,14723626,1,1,2) [2025-03-20 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723626', 'tblTempUsageDetail_20' ) start [2025-03-20 15:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723626', 'tblTempUsageDetail_20' ) end [2025-03-20 15:02:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:02:29] Production.INFO: ==5191== Releasing lock... [2025-03-20 15:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:02:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:03:06 [end_date_ymd] => 2025-03-20 15:03:06 [RateCDR] => 1 ) [2025-03-20 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:03:06' and `end` < '2025-03-20 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:03:19] Production.INFO: count ==6049 [2025-03-20 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:03:06 - End Time 2025-03-20 15:03:06 [2025-03-20 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723631', 'tblTempUsageDetail_20' ) start [2025-03-20 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723631', 'tblTempUsageDetail_20' ) end [2025-03-20 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723631', 'tblTempVendorCDR_20' ) start [2025-03-20 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723631', 'tblTempVendorCDR_20' ) end [2025-03-20 15:03:23] Production.INFO: ProcessCDR(1,14723631,1,1,2) [2025-03-20 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723631', 'tblTempUsageDetail_20' ) start [2025-03-20 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723631', 'tblTempUsageDetail_20' ) end [2025-03-20 15:03:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:03:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:03:29] Production.INFO: ==5276== Releasing lock... [2025-03-20 15:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:03:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:04:05 [end_date_ymd] => 2025-03-20 15:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:04:19] Production.INFO: count ==6054 [2025-03-20 15:04:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:04:05 - End Time 2025-03-20 15:04:05 [2025-03-20 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723636', 'tblTempUsageDetail_20' ) start [2025-03-20 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723636', 'tblTempUsageDetail_20' ) end [2025-03-20 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723636', 'tblTempVendorCDR_20' ) start [2025-03-20 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723636', 'tblTempVendorCDR_20' ) end [2025-03-20 15:04:22] Production.INFO: ProcessCDR(1,14723636,1,1,2) [2025-03-20 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723636', 'tblTempUsageDetail_20' ) start [2025-03-20 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723636', 'tblTempUsageDetail_20' ) end [2025-03-20 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:04:27] Production.INFO: ==5367== Releasing lock... [2025-03-20 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:04:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:05:05 [end_date_ymd] => 2025-03-20 15:05:05 [RateCDR] => 1 ) [2025-03-20 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:05:05' and `end` < '2025-03-20 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:05:18] Production.INFO: count ==6085 [2025-03-20 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:05:05 - End Time 2025-03-20 15:05:05 [2025-03-20 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723641', 'tblTempUsageDetail_20' ) start [2025-03-20 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723641', 'tblTempUsageDetail_20' ) end [2025-03-20 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723641', 'tblTempVendorCDR_20' ) start [2025-03-20 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723641', 'tblTempVendorCDR_20' ) end [2025-03-20 15:05:22] Production.INFO: ProcessCDR(1,14723641,1,1,2) [2025-03-20 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723641', 'tblTempUsageDetail_20' ) start [2025-03-20 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723641', 'tblTempUsageDetail_20' ) end [2025-03-20 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:05:27] Production.INFO: ==5526== Releasing lock... [2025-03-20 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:05:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:06:05 [end_date_ymd] => 2025-03-20 15:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:06:19] Production.INFO: count ==6098 [2025-03-20 15:06:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:06:05 - End Time 2025-03-20 15:06:05 [2025-03-20 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723646', 'tblTempUsageDetail_20' ) start [2025-03-20 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723646', 'tblTempUsageDetail_20' ) end [2025-03-20 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723646', 'tblTempVendorCDR_20' ) start [2025-03-20 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723646', 'tblTempVendorCDR_20' ) end [2025-03-20 15:06:22] Production.INFO: ProcessCDR(1,14723646,1,1,2) [2025-03-20 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723646', 'tblTempUsageDetail_20' ) start [2025-03-20 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723646', 'tblTempUsageDetail_20' ) end [2025-03-20 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:06:27] Production.INFO: ==5606== Releasing lock... [2025-03-20 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:06:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:07:05 [end_date_ymd] => 2025-03-20 15:07:05 [RateCDR] => 1 ) [2025-03-20 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:07:05' and `end` < '2025-03-20 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:07:19] Production.INFO: count ==6122 [2025-03-20 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:07:05 - End Time 2025-03-20 15:07:05 [2025-03-20 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723651', 'tblTempUsageDetail_20' ) start [2025-03-20 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723651', 'tblTempUsageDetail_20' ) end [2025-03-20 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723651', 'tblTempVendorCDR_20' ) start [2025-03-20 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723651', 'tblTempVendorCDR_20' ) end [2025-03-20 15:07:22] Production.INFO: ProcessCDR(1,14723651,1,1,2) [2025-03-20 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723651', 'tblTempUsageDetail_20' ) start [2025-03-20 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723651', 'tblTempUsageDetail_20' ) end [2025-03-20 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:07:27] Production.INFO: ==5686== Releasing lock... [2025-03-20 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:07:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:08:06 [end_date_ymd] => 2025-03-20 15:08:06 [RateCDR] => 1 ) [2025-03-20 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:08:06' and `end` < '2025-03-20 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:08:19] Production.INFO: count ==6134 [2025-03-20 15:08:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:08:06 - End Time 2025-03-20 15:08:06 [2025-03-20 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723656', 'tblTempUsageDetail_20' ) start [2025-03-20 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723656', 'tblTempUsageDetail_20' ) end [2025-03-20 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723656', 'tblTempVendorCDR_20' ) start [2025-03-20 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723656', 'tblTempVendorCDR_20' ) end [2025-03-20 15:08:22] Production.INFO: ProcessCDR(1,14723656,1,1,2) [2025-03-20 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723656', 'tblTempUsageDetail_20' ) start [2025-03-20 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723656', 'tblTempUsageDetail_20' ) end [2025-03-20 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:08:28] Production.INFO: ==5853== Releasing lock... [2025-03-20 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:08:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:09:05 [end_date_ymd] => 2025-03-20 15:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:09:19] Production.INFO: count ==6137 [2025-03-20 15:09:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:09:05 - End Time 2025-03-20 15:09:05 [2025-03-20 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723661', 'tblTempUsageDetail_20' ) start [2025-03-20 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723661', 'tblTempUsageDetail_20' ) end [2025-03-20 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723661', 'tblTempVendorCDR_20' ) start [2025-03-20 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723661', 'tblTempVendorCDR_20' ) end [2025-03-20 15:09:22] Production.INFO: ProcessCDR(1,14723661,1,1,2) [2025-03-20 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723661', 'tblTempUsageDetail_20' ) start [2025-03-20 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723661', 'tblTempUsageDetail_20' ) end [2025-03-20 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:09:27] Production.INFO: ==5974== Releasing lock... [2025-03-20 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:09:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:10:06 [end_date_ymd] => 2025-03-20 15:10:06 [RateCDR] => 1 ) [2025-03-20 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:10:06' and `end` < '2025-03-20 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:10:20] Production.INFO: count ==6146 [2025-03-20 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:10:06 - End Time 2025-03-20 15:10:06 [2025-03-20 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723666', 'tblTempUsageDetail_20' ) start [2025-03-20 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723666', 'tblTempUsageDetail_20' ) end [2025-03-20 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723666', 'tblTempVendorCDR_20' ) start [2025-03-20 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723666', 'tblTempVendorCDR_20' ) end [2025-03-20 15:10:23] Production.INFO: ProcessCDR(1,14723666,1,1,2) [2025-03-20 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723666', 'tblTempUsageDetail_20' ) start [2025-03-20 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723666', 'tblTempUsageDetail_20' ) end [2025-03-20 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:10:28] Production.INFO: ==6074== Releasing lock... [2025-03-20 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:10:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:11:05 [end_date_ymd] => 2025-03-20 15:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:11:19] Production.INFO: count ==6159 [2025-03-20 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:11:05 - End Time 2025-03-20 15:11:05 [2025-03-20 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723672', 'tblTempUsageDetail_20' ) start [2025-03-20 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723672', 'tblTempUsageDetail_20' ) end [2025-03-20 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723672', 'tblTempVendorCDR_20' ) start [2025-03-20 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723672', 'tblTempVendorCDR_20' ) end [2025-03-20 15:11:22] Production.INFO: ProcessCDR(1,14723672,1,1,2) [2025-03-20 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723672', 'tblTempUsageDetail_20' ) start [2025-03-20 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723672', 'tblTempUsageDetail_20' ) end [2025-03-20 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:11:28] Production.INFO: ==6163== Releasing lock... [2025-03-20 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:11:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:12:06 [end_date_ymd] => 2025-03-20 15:12:06 [RateCDR] => 1 ) [2025-03-20 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:12:06' and `end` < '2025-03-20 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:12:19] Production.INFO: count ==6149 [2025-03-20 15:12:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:12:06 - End Time 2025-03-20 15:12:06 [2025-03-20 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723677', 'tblTempUsageDetail_20' ) start [2025-03-20 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723677', 'tblTempUsageDetail_20' ) end [2025-03-20 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723677', 'tblTempVendorCDR_20' ) start [2025-03-20 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723677', 'tblTempVendorCDR_20' ) end [2025-03-20 15:12:22] Production.INFO: ProcessCDR(1,14723677,1,1,2) [2025-03-20 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723677', 'tblTempUsageDetail_20' ) start [2025-03-20 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723677', 'tblTempUsageDetail_20' ) end [2025-03-20 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:12:28] Production.INFO: ==6327== Releasing lock... [2025-03-20 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:12:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:13:05 [end_date_ymd] => 2025-03-20 15:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:13:18] Production.INFO: count ==6158 [2025-03-20 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:13:05 - End Time 2025-03-20 15:13:05 [2025-03-20 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723682', 'tblTempUsageDetail_20' ) start [2025-03-20 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723682', 'tblTempUsageDetail_20' ) end [2025-03-20 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723682', 'tblTempVendorCDR_20' ) start [2025-03-20 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723682', 'tblTempVendorCDR_20' ) end [2025-03-20 15:13:21] Production.INFO: ProcessCDR(1,14723682,1,1,2) [2025-03-20 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723682', 'tblTempUsageDetail_20' ) start [2025-03-20 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723682', 'tblTempUsageDetail_20' ) end [2025-03-20 15:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:13:26] Production.INFO: ==6410== Releasing lock... [2025-03-20 15:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:13:26] Production.INFO: 74 MB #Memory Used# [2025-03-20 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:14:05 [end_date_ymd] => 2025-03-20 15:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:14:19] Production.INFO: count ==6168 [2025-03-20 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:14:05 - End Time 2025-03-20 15:14:05 [2025-03-20 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723687', 'tblTempUsageDetail_20' ) start [2025-03-20 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723687', 'tblTempUsageDetail_20' ) end [2025-03-20 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723687', 'tblTempVendorCDR_20' ) start [2025-03-20 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723687', 'tblTempVendorCDR_20' ) end [2025-03-20 15:14:22] Production.INFO: ProcessCDR(1,14723687,1,1,2) [2025-03-20 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723687', 'tblTempUsageDetail_20' ) start [2025-03-20 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723687', 'tblTempUsageDetail_20' ) end [2025-03-20 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:14:27] Production.INFO: ==6505== Releasing lock... [2025-03-20 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:14:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-20 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:15:05 [end_date_ymd] => 2025-03-20 15:15:05 [RateCDR] => 1 ) [2025-03-20 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:15:05' and `end` < '2025-03-20 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:15:19] Production.INFO: count ==6178 [2025-03-20 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:15:05 - End Time 2025-03-20 15:15:05 [2025-03-20 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723692', 'tblTempUsageDetail_20' ) start [2025-03-20 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723692', 'tblTempUsageDetail_20' ) end [2025-03-20 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723692', 'tblTempVendorCDR_20' ) start [2025-03-20 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723692', 'tblTempVendorCDR_20' ) end [2025-03-20 15:15:22] Production.INFO: ProcessCDR(1,14723692,1,1,2) [2025-03-20 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723692', 'tblTempUsageDetail_20' ) start [2025-03-20 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723692', 'tblTempUsageDetail_20' ) end [2025-03-20 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:15:27] Production.INFO: ==6648== Releasing lock... [2025-03-20 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:15:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-20 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:16:05 [end_date_ymd] => 2025-03-20 15:16:05 [RateCDR] => 1 ) [2025-03-20 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:16:05' and `end` < '2025-03-20 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:16:19] Production.INFO: count ==6184 [2025-03-20 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:16:05 - End Time 2025-03-20 15:16:05 [2025-03-20 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723697', 'tblTempUsageDetail_20' ) start [2025-03-20 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723697', 'tblTempUsageDetail_20' ) end [2025-03-20 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723697', 'tblTempVendorCDR_20' ) start [2025-03-20 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723697', 'tblTempVendorCDR_20' ) end [2025-03-20 15:16:22] Production.INFO: ProcessCDR(1,14723697,1,1,2) [2025-03-20 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723697', 'tblTempUsageDetail_20' ) start [2025-03-20 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723697', 'tblTempUsageDetail_20' ) end [2025-03-20 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:16:26] Production.INFO: ==6756== Releasing lock... [2025-03-20 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:16:26] Production.INFO: 74.25 MB #Memory Used# [2025-03-20 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:17:05 [end_date_ymd] => 2025-03-20 15:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:17:18] Production.INFO: count ==6212 [2025-03-20 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:17:05 - End Time 2025-03-20 15:17:05 [2025-03-20 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723702', 'tblTempUsageDetail_20' ) start [2025-03-20 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723702', 'tblTempUsageDetail_20' ) end [2025-03-20 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723702', 'tblTempVendorCDR_20' ) start [2025-03-20 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723702', 'tblTempVendorCDR_20' ) end [2025-03-20 15:17:21] Production.INFO: ProcessCDR(1,14723702,1,1,2) [2025-03-20 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723702', 'tblTempUsageDetail_20' ) start [2025-03-20 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723702', 'tblTempUsageDetail_20' ) end [2025-03-20 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:17:27] Production.INFO: ==6848== Releasing lock... [2025-03-20 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:17:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:18:06 [end_date_ymd] => 2025-03-20 15:18:06 [RateCDR] => 1 ) [2025-03-20 15:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:18:06' and `end` < '2025-03-20 15:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:18:20] Production.INFO: count ==6213 [2025-03-20 15:18:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:18:06 - End Time 2025-03-20 15:18:06 [2025-03-20 15:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723707', 'tblTempUsageDetail_20' ) start [2025-03-20 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723707', 'tblTempUsageDetail_20' ) end [2025-03-20 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723707', 'tblTempVendorCDR_20' ) start [2025-03-20 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723707', 'tblTempVendorCDR_20' ) end [2025-03-20 15:18:23] Production.INFO: ProcessCDR(1,14723707,1,1,2) [2025-03-20 15:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723707', 'tblTempUsageDetail_20' ) start [2025-03-20 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723707', 'tblTempUsageDetail_20' ) end [2025-03-20 15:18:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:18:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:18:29] Production.INFO: ==6944== Releasing lock... [2025-03-20 15:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:18:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:19:05 [end_date_ymd] => 2025-03-20 15:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:19:19] Production.INFO: count ==6207 [2025-03-20 15:19:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:19:05 - End Time 2025-03-20 15:19:05 [2025-03-20 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723712', 'tblTempUsageDetail_20' ) start [2025-03-20 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723712', 'tblTempUsageDetail_20' ) end [2025-03-20 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723712', 'tblTempVendorCDR_20' ) start [2025-03-20 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723712', 'tblTempVendorCDR_20' ) end [2025-03-20 15:19:22] Production.INFO: ProcessCDR(1,14723712,1,1,2) [2025-03-20 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723712', 'tblTempUsageDetail_20' ) start [2025-03-20 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723712', 'tblTempUsageDetail_20' ) end [2025-03-20 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:19:27] Production.INFO: ==7026== Releasing lock... [2025-03-20 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:19:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:20:06 [end_date_ymd] => 2025-03-20 15:20:06 [RateCDR] => 1 ) [2025-03-20 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:20:06' and `end` < '2025-03-20 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:20:20] Production.INFO: count ==6248 [2025-03-20 15:20:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:20:06 - End Time 2025-03-20 15:20:06 [2025-03-20 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723718', 'tblTempUsageDetail_20' ) start [2025-03-20 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723718', 'tblTempUsageDetail_20' ) end [2025-03-20 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723718', 'tblTempVendorCDR_20' ) start [2025-03-20 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723718', 'tblTempVendorCDR_20' ) end [2025-03-20 15:20:23] Production.INFO: ProcessCDR(1,14723718,1,1,2) [2025-03-20 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723718', 'tblTempUsageDetail_20' ) start [2025-03-20 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723718', 'tblTempUsageDetail_20' ) end [2025-03-20 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:20:29] Production.INFO: ==7106== Releasing lock... [2025-03-20 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:20:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-20 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:21:06 [end_date_ymd] => 2025-03-20 15:21:06 [RateCDR] => 1 ) [2025-03-20 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:21:06' and `end` < '2025-03-20 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:21:21] Production.INFO: count ==6370 [2025-03-20 15:21:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:21:06 - End Time 2025-03-20 15:21:06 [2025-03-20 15:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723723', 'tblTempUsageDetail_20' ) start [2025-03-20 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723723', 'tblTempUsageDetail_20' ) end [2025-03-20 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723723', 'tblTempVendorCDR_20' ) start [2025-03-20 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723723', 'tblTempVendorCDR_20' ) end [2025-03-20 15:21:24] Production.INFO: ProcessCDR(1,14723723,1,1,2) [2025-03-20 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723723', 'tblTempUsageDetail_20' ) start [2025-03-20 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723723', 'tblTempUsageDetail_20' ) end [2025-03-20 15:21:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:21:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:21:29] Production.INFO: ==7191== Releasing lock... [2025-03-20 15:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:21:29] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:22:05 [end_date_ymd] => 2025-03-20 15:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:22:19] Production.INFO: count ==6404 [2025-03-20 15:22:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:22:05 - End Time 2025-03-20 15:22:05 [2025-03-20 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723725', 'tblTempUsageDetail_20' ) start [2025-03-20 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723725', 'tblTempUsageDetail_20' ) end [2025-03-20 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723725', 'tblTempVendorCDR_20' ) start [2025-03-20 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723725', 'tblTempVendorCDR_20' ) end [2025-03-20 15:22:22] Production.INFO: ProcessCDR(1,14723725,1,1,2) [2025-03-20 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723725', 'tblTempUsageDetail_20' ) start [2025-03-20 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723725', 'tblTempUsageDetail_20' ) end [2025-03-20 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:22:27] Production.INFO: ==7276== Releasing lock... [2025-03-20 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:22:27] Production.INFO: 76 MB #Memory Used# [2025-03-20 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:23:06 [end_date_ymd] => 2025-03-20 15:23:06 [RateCDR] => 1 ) [2025-03-20 15:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:23:06' and `end` < '2025-03-20 15:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:23:19] Production.INFO: count ==6399 [2025-03-20 15:23:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:23:06 - End Time 2025-03-20 15:23:06 [2025-03-20 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723733', 'tblTempUsageDetail_20' ) start [2025-03-20 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723733', 'tblTempUsageDetail_20' ) end [2025-03-20 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723733', 'tblTempVendorCDR_20' ) start [2025-03-20 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723733', 'tblTempVendorCDR_20' ) end [2025-03-20 15:23:23] Production.INFO: ProcessCDR(1,14723733,1,1,2) [2025-03-20 15:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723733', 'tblTempUsageDetail_20' ) start [2025-03-20 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723733', 'tblTempUsageDetail_20' ) end [2025-03-20 15:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:23:28] Production.INFO: ==7356== Releasing lock... [2025-03-20 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:23:28] Production.INFO: 76 MB #Memory Used# [2025-03-20 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:24:06 [end_date_ymd] => 2025-03-20 15:24:06 [RateCDR] => 1 ) [2025-03-20 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:24:06' and `end` < '2025-03-20 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:24:20] Production.INFO: count ==6382 [2025-03-20 15:24:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:24:06 - End Time 2025-03-20 15:24:06 [2025-03-20 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723738', 'tblTempUsageDetail_20' ) start [2025-03-20 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723738', 'tblTempUsageDetail_20' ) end [2025-03-20 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723738', 'tblTempVendorCDR_20' ) start [2025-03-20 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723738', 'tblTempVendorCDR_20' ) end [2025-03-20 15:24:23] Production.INFO: ProcessCDR(1,14723738,1,1,2) [2025-03-20 15:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723738', 'tblTempUsageDetail_20' ) start [2025-03-20 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723738', 'tblTempUsageDetail_20' ) end [2025-03-20 15:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:24:28] Production.INFO: ==7473== Releasing lock... [2025-03-20 15:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:24:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:25:05 [end_date_ymd] => 2025-03-20 15:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:25:18] Production.INFO: count ==6371 [2025-03-20 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:25:05 - End Time 2025-03-20 15:25:05 [2025-03-20 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723743', 'tblTempUsageDetail_20' ) start [2025-03-20 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723743', 'tblTempUsageDetail_20' ) end [2025-03-20 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723743', 'tblTempVendorCDR_20' ) start [2025-03-20 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723743', 'tblTempVendorCDR_20' ) end [2025-03-20 15:25:22] Production.INFO: ProcessCDR(1,14723743,1,1,2) [2025-03-20 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723743', 'tblTempUsageDetail_20' ) start [2025-03-20 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723743', 'tblTempUsageDetail_20' ) end [2025-03-20 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:25:27] Production.INFO: ==7551== Releasing lock... [2025-03-20 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:25:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:26:05 [end_date_ymd] => 2025-03-20 15:26:05 [RateCDR] => 1 ) [2025-03-20 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:26:05' and `end` < '2025-03-20 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:26:19] Production.INFO: count ==6384 [2025-03-20 15:26:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:26:05 - End Time 2025-03-20 15:26:05 [2025-03-20 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723748', 'tblTempUsageDetail_20' ) start [2025-03-20 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723748', 'tblTempUsageDetail_20' ) end [2025-03-20 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723748', 'tblTempVendorCDR_20' ) start [2025-03-20 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723748', 'tblTempVendorCDR_20' ) end [2025-03-20 15:26:22] Production.INFO: ProcessCDR(1,14723748,1,1,2) [2025-03-20 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723748', 'tblTempUsageDetail_20' ) start [2025-03-20 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723748', 'tblTempUsageDetail_20' ) end [2025-03-20 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:26:27] Production.INFO: ==7631== Releasing lock... [2025-03-20 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:26:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:27:04 [end_date_ymd] => 2025-03-20 15:27:04 [RateCDR] => 1 ) [2025-03-20 15:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:27:04' and `end` < '2025-03-20 15:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:27:18] Production.INFO: count ==6383 [2025-03-20 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:27:04 - End Time 2025-03-20 15:27:04 [2025-03-20 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723753', 'tblTempUsageDetail_20' ) start [2025-03-20 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723753', 'tblTempUsageDetail_20' ) end [2025-03-20 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723753', 'tblTempVendorCDR_20' ) start [2025-03-20 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723753', 'tblTempVendorCDR_20' ) end [2025-03-20 15:27:21] Production.INFO: ProcessCDR(1,14723753,1,1,2) [2025-03-20 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723753', 'tblTempUsageDetail_20' ) start [2025-03-20 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723753', 'tblTempUsageDetail_20' ) end [2025-03-20 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:27:26] Production.INFO: ==7708== Releasing lock... [2025-03-20 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:27:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:28:05 [end_date_ymd] => 2025-03-20 15:28:05 [RateCDR] => 1 ) [2025-03-20 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:28:05' and `end` < '2025-03-20 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:28:19] Production.INFO: count ==6396 [2025-03-20 15:28:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:28:05 - End Time 2025-03-20 15:28:05 [2025-03-20 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723758', 'tblTempUsageDetail_20' ) start [2025-03-20 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723758', 'tblTempUsageDetail_20' ) end [2025-03-20 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723758', 'tblTempVendorCDR_20' ) start [2025-03-20 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723758', 'tblTempVendorCDR_20' ) end [2025-03-20 15:28:22] Production.INFO: ProcessCDR(1,14723758,1,1,2) [2025-03-20 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723758', 'tblTempUsageDetail_20' ) start [2025-03-20 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723758', 'tblTempUsageDetail_20' ) end [2025-03-20 15:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:28:28] Production.INFO: ==7797== Releasing lock... [2025-03-20 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:28:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:29:05 [end_date_ymd] => 2025-03-20 15:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:29:19] Production.INFO: count ==6398 [2025-03-20 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:29:05 - End Time 2025-03-20 15:29:05 [2025-03-20 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723763', 'tblTempUsageDetail_20' ) start [2025-03-20 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723763', 'tblTempUsageDetail_20' ) end [2025-03-20 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723763', 'tblTempVendorCDR_20' ) start [2025-03-20 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723763', 'tblTempVendorCDR_20' ) end [2025-03-20 15:29:22] Production.INFO: ProcessCDR(1,14723763,1,1,2) [2025-03-20 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723763', 'tblTempUsageDetail_20' ) start [2025-03-20 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723763', 'tblTempUsageDetail_20' ) end [2025-03-20 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:29:27] Production.INFO: ==7885== Releasing lock... [2025-03-20 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:29:27] Production.INFO: 76 MB #Memory Used# [2025-03-20 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:30:07 [end_date_ymd] => 2025-03-20 15:30:07 [RateCDR] => 1 ) [2025-03-20 15:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:30:07' and `end` < '2025-03-20 15:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:30:20] Production.INFO: count ==6394 [2025-03-20 15:30:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:30:07 - End Time 2025-03-20 15:30:07 [2025-03-20 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723769', 'tblTempUsageDetail_20' ) start [2025-03-20 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723769', 'tblTempUsageDetail_20' ) end [2025-03-20 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723769', 'tblTempVendorCDR_20' ) start [2025-03-20 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723769', 'tblTempVendorCDR_20' ) end [2025-03-20 15:30:24] Production.INFO: ProcessCDR(1,14723769,1,1,2) [2025-03-20 15:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723769', 'tblTempUsageDetail_20' ) start [2025-03-20 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723769', 'tblTempUsageDetail_20' ) end [2025-03-20 15:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:30:29] Production.INFO: ==7972== Releasing lock... [2025-03-20 15:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:30:29] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:31:05 [end_date_ymd] => 2025-03-20 15:31:05 [RateCDR] => 1 ) [2025-03-20 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:31:05' and `end` < '2025-03-20 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:31:19] Production.INFO: count ==6428 [2025-03-20 15:31:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:31:05 - End Time 2025-03-20 15:31:05 [2025-03-20 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723774', 'tblTempUsageDetail_20' ) start [2025-03-20 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723774', 'tblTempUsageDetail_20' ) end [2025-03-20 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723774', 'tblTempVendorCDR_20' ) start [2025-03-20 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723774', 'tblTempVendorCDR_20' ) end [2025-03-20 15:31:22] Production.INFO: ProcessCDR(1,14723774,1,1,2) [2025-03-20 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723774', 'tblTempUsageDetail_20' ) start [2025-03-20 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723774', 'tblTempUsageDetail_20' ) end [2025-03-20 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:31:27] Production.INFO: ==8064== Releasing lock... [2025-03-20 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:31:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:32:05 [end_date_ymd] => 2025-03-20 15:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:32:19] Production.INFO: count ==6443 [2025-03-20 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:32:05 - End Time 2025-03-20 15:32:05 [2025-03-20 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723779', 'tblTempUsageDetail_20' ) start [2025-03-20 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723779', 'tblTempUsageDetail_20' ) end [2025-03-20 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723779', 'tblTempVendorCDR_20' ) start [2025-03-20 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723779', 'tblTempVendorCDR_20' ) end [2025-03-20 15:32:22] Production.INFO: ProcessCDR(1,14723779,1,1,2) [2025-03-20 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723779', 'tblTempUsageDetail_20' ) start [2025-03-20 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723779', 'tblTempUsageDetail_20' ) end [2025-03-20 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:32:28] Production.INFO: ==8158== Releasing lock... [2025-03-20 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:32:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:33:05 [end_date_ymd] => 2025-03-20 15:33:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:33:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:33:19] Production.INFO: count ==6476 [2025-03-20 15:33:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:33:05 - End Time 2025-03-20 15:33:05 [2025-03-20 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723784', 'tblTempUsageDetail_20' ) start [2025-03-20 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723784', 'tblTempUsageDetail_20' ) end [2025-03-20 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723784', 'tblTempVendorCDR_20' ) start [2025-03-20 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723784', 'tblTempVendorCDR_20' ) end [2025-03-20 15:33:22] Production.INFO: ProcessCDR(1,14723784,1,1,2) [2025-03-20 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723784', 'tblTempUsageDetail_20' ) start [2025-03-20 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723784', 'tblTempUsageDetail_20' ) end [2025-03-20 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:33:27] Production.INFO: ==8244== Releasing lock... [2025-03-20 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:33:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:34:06 [end_date_ymd] => 2025-03-20 15:34:06 [RateCDR] => 1 ) [2025-03-20 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:34:06' and `end` < '2025-03-20 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:34:19] Production.INFO: count ==6464 [2025-03-20 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:34:06 - End Time 2025-03-20 15:34:06 [2025-03-20 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723789', 'tblTempUsageDetail_20' ) start [2025-03-20 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723789', 'tblTempUsageDetail_20' ) end [2025-03-20 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723789', 'tblTempVendorCDR_20' ) start [2025-03-20 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723789', 'tblTempVendorCDR_20' ) end [2025-03-20 15:34:22] Production.INFO: ProcessCDR(1,14723789,1,1,2) [2025-03-20 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723789', 'tblTempUsageDetail_20' ) start [2025-03-20 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723789', 'tblTempUsageDetail_20' ) end [2025-03-20 15:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:34:28] Production.INFO: ==8323== Releasing lock... [2025-03-20 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:34:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:35:06 [end_date_ymd] => 2025-03-20 15:35:06 [RateCDR] => 1 ) [2025-03-20 15:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:35:06' and `end` < '2025-03-20 15:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:35:19] Production.INFO: count ==6475 [2025-03-20 15:35:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:35:06 - End Time 2025-03-20 15:35:06 [2025-03-20 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723794', 'tblTempUsageDetail_20' ) start [2025-03-20 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723794', 'tblTempUsageDetail_20' ) end [2025-03-20 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723794', 'tblTempVendorCDR_20' ) start [2025-03-20 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723794', 'tblTempVendorCDR_20' ) end [2025-03-20 15:35:23] Production.INFO: ProcessCDR(1,14723794,1,1,2) [2025-03-20 15:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723794', 'tblTempUsageDetail_20' ) start [2025-03-20 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723794', 'tblTempUsageDetail_20' ) end [2025-03-20 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:35:28] Production.INFO: ==8418== Releasing lock... [2025-03-20 15:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:35:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:36:06 [end_date_ymd] => 2025-03-20 15:36:06 [RateCDR] => 1 ) [2025-03-20 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:36:06' and `end` < '2025-03-20 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:36:19] Production.INFO: count ==6496 [2025-03-20 15:36:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:36:06 - End Time 2025-03-20 15:36:06 [2025-03-20 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723799', 'tblTempUsageDetail_20' ) start [2025-03-20 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723799', 'tblTempUsageDetail_20' ) end [2025-03-20 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723799', 'tblTempVendorCDR_20' ) start [2025-03-20 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723799', 'tblTempVendorCDR_20' ) end [2025-03-20 15:36:23] Production.INFO: ProcessCDR(1,14723799,1,1,2) [2025-03-20 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723799', 'tblTempUsageDetail_20' ) start [2025-03-20 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723799', 'tblTempUsageDetail_20' ) end [2025-03-20 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:36:28] Production.INFO: ==8508== Releasing lock... [2025-03-20 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:36:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:37:05 [end_date_ymd] => 2025-03-20 15:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:37:19] Production.INFO: count ==6507 [2025-03-20 15:37:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:37:05 - End Time 2025-03-20 15:37:05 [2025-03-20 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723804', 'tblTempUsageDetail_20' ) start [2025-03-20 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723804', 'tblTempUsageDetail_20' ) end [2025-03-20 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723804', 'tblTempVendorCDR_20' ) start [2025-03-20 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723804', 'tblTempVendorCDR_20' ) end [2025-03-20 15:37:22] Production.INFO: ProcessCDR(1,14723804,1,1,2) [2025-03-20 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723804', 'tblTempUsageDetail_20' ) start [2025-03-20 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723804', 'tblTempUsageDetail_20' ) end [2025-03-20 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:37:27] Production.INFO: ==8603== Releasing lock... [2025-03-20 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:37:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:38:05 [end_date_ymd] => 2025-03-20 15:38:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:38:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:38:19] Production.INFO: count ==6509 [2025-03-20 15:38:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:38:05 - End Time 2025-03-20 15:38:05 [2025-03-20 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723809', 'tblTempUsageDetail_20' ) start [2025-03-20 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723809', 'tblTempUsageDetail_20' ) end [2025-03-20 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723809', 'tblTempVendorCDR_20' ) start [2025-03-20 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723809', 'tblTempVendorCDR_20' ) end [2025-03-20 15:38:22] Production.INFO: ProcessCDR(1,14723809,1,1,2) [2025-03-20 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723809', 'tblTempUsageDetail_20' ) start [2025-03-20 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723809', 'tblTempUsageDetail_20' ) end [2025-03-20 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:38:28] Production.INFO: ==8696== Releasing lock... [2025-03-20 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:38:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:39:05 [end_date_ymd] => 2025-03-20 15:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:39:18] Production.INFO: count ==6493 [2025-03-20 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:39:05 - End Time 2025-03-20 15:39:05 [2025-03-20 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723814', 'tblTempUsageDetail_20' ) start [2025-03-20 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723814', 'tblTempUsageDetail_20' ) end [2025-03-20 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723814', 'tblTempVendorCDR_20' ) start [2025-03-20 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723814', 'tblTempVendorCDR_20' ) end [2025-03-20 15:39:22] Production.INFO: ProcessCDR(1,14723814,1,1,2) [2025-03-20 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723814', 'tblTempUsageDetail_20' ) start [2025-03-20 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723814', 'tblTempUsageDetail_20' ) end [2025-03-20 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:39:27] Production.INFO: ==8819== Releasing lock... [2025-03-20 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:39:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:40:07 [end_date_ymd] => 2025-03-20 15:40:07 [RateCDR] => 1 ) [2025-03-20 15:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:40:07' and `end` < '2025-03-20 15:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:40:20] Production.INFO: count ==6497 [2025-03-20 15:40:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:40:07 - End Time 2025-03-20 15:40:07 [2025-03-20 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723820', 'tblTempUsageDetail_20' ) start [2025-03-20 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723820', 'tblTempUsageDetail_20' ) end [2025-03-20 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723820', 'tblTempVendorCDR_20' ) start [2025-03-20 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723820', 'tblTempVendorCDR_20' ) end [2025-03-20 15:40:24] Production.INFO: ProcessCDR(1,14723820,1,1,2) [2025-03-20 15:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723820', 'tblTempUsageDetail_20' ) start [2025-03-20 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723820', 'tblTempUsageDetail_20' ) end [2025-03-20 15:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:40:29] Production.INFO: ==8908== Releasing lock... [2025-03-20 15:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:40:29] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:41:05 [end_date_ymd] => 2025-03-20 15:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:41:19] Production.INFO: count ==6506 [2025-03-20 15:41:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:41:05 - End Time 2025-03-20 15:41:05 [2025-03-20 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723825', 'tblTempUsageDetail_20' ) start [2025-03-20 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723825', 'tblTempUsageDetail_20' ) end [2025-03-20 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723825', 'tblTempVendorCDR_20' ) start [2025-03-20 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723825', 'tblTempVendorCDR_20' ) end [2025-03-20 15:41:22] Production.INFO: ProcessCDR(1,14723825,1,1,2) [2025-03-20 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723825', 'tblTempUsageDetail_20' ) start [2025-03-20 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723825', 'tblTempUsageDetail_20' ) end [2025-03-20 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:41:28] Production.INFO: ==8993== Releasing lock... [2025-03-20 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:41:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:42:05 [end_date_ymd] => 2025-03-20 15:42:05 [RateCDR] => 1 ) [2025-03-20 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:42:05' and `end` < '2025-03-20 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:42:18] Production.INFO: count ==6502 [2025-03-20 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:42:05 - End Time 2025-03-20 15:42:05 [2025-03-20 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723830', 'tblTempUsageDetail_20' ) start [2025-03-20 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723830', 'tblTempUsageDetail_20' ) end [2025-03-20 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723830', 'tblTempVendorCDR_20' ) start [2025-03-20 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723830', 'tblTempVendorCDR_20' ) end [2025-03-20 15:42:22] Production.INFO: ProcessCDR(1,14723830,1,1,2) [2025-03-20 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723830', 'tblTempUsageDetail_20' ) start [2025-03-20 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723830', 'tblTempUsageDetail_20' ) end [2025-03-20 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:42:27] Production.INFO: ==9080== Releasing lock... [2025-03-20 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:42:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-20 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:43:06 [end_date_ymd] => 2025-03-20 15:43:06 [RateCDR] => 1 ) [2025-03-20 15:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:43:06' and `end` < '2025-03-20 15:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:43:19] Production.INFO: count ==6476 [2025-03-20 15:43:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:43:06 - End Time 2025-03-20 15:43:06 [2025-03-20 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723835', 'tblTempUsageDetail_20' ) start [2025-03-20 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723835', 'tblTempUsageDetail_20' ) end [2025-03-20 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723835', 'tblTempVendorCDR_20' ) start [2025-03-20 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723835', 'tblTempVendorCDR_20' ) end [2025-03-20 15:43:23] Production.INFO: ProcessCDR(1,14723835,1,1,2) [2025-03-20 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723835', 'tblTempUsageDetail_20' ) start [2025-03-20 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723835', 'tblTempUsageDetail_20' ) end [2025-03-20 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:43:28] Production.INFO: ==9178== Releasing lock... [2025-03-20 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:43:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:44:05 [end_date_ymd] => 2025-03-20 15:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:44:19] Production.INFO: count ==6466 [2025-03-20 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:44:05 - End Time 2025-03-20 15:44:05 [2025-03-20 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723840', 'tblTempUsageDetail_20' ) start [2025-03-20 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723840', 'tblTempUsageDetail_20' ) end [2025-03-20 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723840', 'tblTempVendorCDR_20' ) start [2025-03-20 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723840', 'tblTempVendorCDR_20' ) end [2025-03-20 15:44:22] Production.INFO: ProcessCDR(1,14723840,1,1,2) [2025-03-20 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723840', 'tblTempUsageDetail_20' ) start [2025-03-20 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723840', 'tblTempUsageDetail_20' ) end [2025-03-20 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:44:27] Production.INFO: ==9261== Releasing lock... [2025-03-20 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:44:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:45:05 [end_date_ymd] => 2025-03-20 15:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:45:19] Production.INFO: count ==6445 [2025-03-20 15:45:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:45:05 - End Time 2025-03-20 15:45:05 [2025-03-20 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723845', 'tblTempUsageDetail_20' ) start [2025-03-20 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723845', 'tblTempUsageDetail_20' ) end [2025-03-20 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723845', 'tblTempVendorCDR_20' ) start [2025-03-20 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723845', 'tblTempVendorCDR_20' ) end [2025-03-20 15:45:22] Production.INFO: ProcessCDR(1,14723845,1,1,2) [2025-03-20 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723845', 'tblTempUsageDetail_20' ) start [2025-03-20 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723845', 'tblTempUsageDetail_20' ) end [2025-03-20 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:45:27] Production.INFO: ==9357== Releasing lock... [2025-03-20 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:45:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:46:05 [end_date_ymd] => 2025-03-20 15:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 12:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 15:46:19] Production.INFO: count ==6449 [2025-03-20 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:46:05 - End Time 2025-03-20 15:46:05 [2025-03-20 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723850', 'tblTempUsageDetail_20' ) start [2025-03-20 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723850', 'tblTempUsageDetail_20' ) end [2025-03-20 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723850', 'tblTempVendorCDR_20' ) start [2025-03-20 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723850', 'tblTempVendorCDR_20' ) end [2025-03-20 15:46:22] Production.INFO: ProcessCDR(1,14723850,1,1,2) [2025-03-20 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723850', 'tblTempUsageDetail_20' ) start [2025-03-20 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723850', 'tblTempUsageDetail_20' ) end [2025-03-20 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:46:27] Production.INFO: ==9438== Releasing lock... [2025-03-20 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:46:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:47:06 [end_date_ymd] => 2025-03-20 15:47:06 [RateCDR] => 1 ) [2025-03-20 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:47:06' and `end` < '2025-03-20 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:47:20] Production.INFO: count ==6436 [2025-03-20 15:47:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:47:06 - End Time 2025-03-20 15:47:06 [2025-03-20 15:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723855', 'tblTempUsageDetail_20' ) start [2025-03-20 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723855', 'tblTempUsageDetail_20' ) end [2025-03-20 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723855', 'tblTempVendorCDR_20' ) start [2025-03-20 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723855', 'tblTempVendorCDR_20' ) end [2025-03-20 15:47:23] Production.INFO: ProcessCDR(1,14723855,1,1,2) [2025-03-20 15:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723855', 'tblTempUsageDetail_20' ) start [2025-03-20 15:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723855', 'tblTempUsageDetail_20' ) end [2025-03-20 15:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:47:29] Production.INFO: ==9523== Releasing lock... [2025-03-20 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:47:29] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:48:05 [end_date_ymd] => 2025-03-20 15:48:05 [RateCDR] => 1 ) [2025-03-20 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:48:05' and `end` < '2025-03-20 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:48:19] Production.INFO: count ==6448 [2025-03-20 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:48:05 - End Time 2025-03-20 15:48:05 [2025-03-20 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723860', 'tblTempUsageDetail_20' ) start [2025-03-20 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723860', 'tblTempUsageDetail_20' ) end [2025-03-20 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723860', 'tblTempVendorCDR_20' ) start [2025-03-20 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723860', 'tblTempVendorCDR_20' ) end [2025-03-20 15:48:22] Production.INFO: ProcessCDR(1,14723860,1,1,2) [2025-03-20 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723860', 'tblTempUsageDetail_20' ) start [2025-03-20 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723860', 'tblTempUsageDetail_20' ) end [2025-03-20 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:48:27] Production.INFO: ==9613== Releasing lock... [2025-03-20 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:48:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:49:06 [end_date_ymd] => 2025-03-20 15:49:06 [RateCDR] => 1 ) [2025-03-20 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:49:06' and `end` < '2025-03-20 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:49:20] Production.INFO: count ==6441 [2025-03-20 15:49:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:49:06 - End Time 2025-03-20 15:49:06 [2025-03-20 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723865', 'tblTempUsageDetail_20' ) start [2025-03-20 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723865', 'tblTempUsageDetail_20' ) end [2025-03-20 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723865', 'tblTempVendorCDR_20' ) start [2025-03-20 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723865', 'tblTempVendorCDR_20' ) end [2025-03-20 15:49:23] Production.INFO: ProcessCDR(1,14723865,1,1,2) [2025-03-20 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723865', 'tblTempUsageDetail_20' ) start [2025-03-20 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723865', 'tblTempUsageDetail_20' ) end [2025-03-20 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:49:28] Production.INFO: ==9696== Releasing lock... [2025-03-20 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:49:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:50:07 [end_date_ymd] => 2025-03-20 15:50:07 [RateCDR] => 1 ) [2025-03-20 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:50:07' and `end` < '2025-03-20 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:50:20] Production.INFO: count ==6434 [2025-03-20 15:50:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:50:07 - End Time 2025-03-20 15:50:07 [2025-03-20 15:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723871', 'tblTempUsageDetail_20' ) start [2025-03-20 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723871', 'tblTempUsageDetail_20' ) end [2025-03-20 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723871', 'tblTempVendorCDR_20' ) start [2025-03-20 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723871', 'tblTempVendorCDR_20' ) end [2025-03-20 15:50:23] Production.INFO: ProcessCDR(1,14723871,1,1,2) [2025-03-20 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723871', 'tblTempUsageDetail_20' ) start [2025-03-20 15:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723871', 'tblTempUsageDetail_20' ) end [2025-03-20 15:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:50:29] Production.INFO: ==9781== Releasing lock... [2025-03-20 15:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:50:29] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:51:06 [end_date_ymd] => 2025-03-20 15:51:06 [RateCDR] => 1 ) [2025-03-20 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:51:06' and `end` < '2025-03-20 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:51:19] Production.INFO: count ==6430 [2025-03-20 15:51:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:51:06 - End Time 2025-03-20 15:51:06 [2025-03-20 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723876', 'tblTempUsageDetail_20' ) start [2025-03-20 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723876', 'tblTempUsageDetail_20' ) end [2025-03-20 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723876', 'tblTempVendorCDR_20' ) start [2025-03-20 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723876', 'tblTempVendorCDR_20' ) end [2025-03-20 15:51:23] Production.INFO: ProcessCDR(1,14723876,1,1,2) [2025-03-20 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723876', 'tblTempUsageDetail_20' ) start [2025-03-20 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723876', 'tblTempUsageDetail_20' ) end [2025-03-20 15:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:51:28] Production.INFO: ==9864== Releasing lock... [2025-03-20 15:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:51:28] Production.INFO: 76 MB #Memory Used# [2025-03-20 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:52:05 [end_date_ymd] => 2025-03-20 15:52:05 [RateCDR] => 1 ) [2025-03-20 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:52:05' and `end` < '2025-03-20 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:52:19] Production.INFO: count ==6450 [2025-03-20 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:52:05 - End Time 2025-03-20 15:52:05 [2025-03-20 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723881', 'tblTempUsageDetail_20' ) start [2025-03-20 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723881', 'tblTempUsageDetail_20' ) end [2025-03-20 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723881', 'tblTempVendorCDR_20' ) start [2025-03-20 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723881', 'tblTempVendorCDR_20' ) end [2025-03-20 15:52:22] Production.INFO: ProcessCDR(1,14723881,1,1,2) [2025-03-20 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723881', 'tblTempUsageDetail_20' ) start [2025-03-20 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723881', 'tblTempUsageDetail_20' ) end [2025-03-20 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:52:27] Production.INFO: ==9945== Releasing lock... [2025-03-20 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:52:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:53:06 [end_date_ymd] => 2025-03-20 15:53:06 [RateCDR] => 1 ) [2025-03-20 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:53:06' and `end` < '2025-03-20 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:53:19] Production.INFO: count ==6460 [2025-03-20 15:53:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:53:06 - End Time 2025-03-20 15:53:06 [2025-03-20 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723886', 'tblTempUsageDetail_20' ) start [2025-03-20 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723886', 'tblTempUsageDetail_20' ) end [2025-03-20 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723886', 'tblTempVendorCDR_20' ) start [2025-03-20 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723886', 'tblTempVendorCDR_20' ) end [2025-03-20 15:53:23] Production.INFO: ProcessCDR(1,14723886,1,1,2) [2025-03-20 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723886', 'tblTempUsageDetail_20' ) start [2025-03-20 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723886', 'tblTempUsageDetail_20' ) end [2025-03-20 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:53:26] Production.INFO: ==10023== Releasing lock... [2025-03-20 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:53:26] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:54:05 [end_date_ymd] => 2025-03-20 15:54:05 [RateCDR] => 1 ) [2025-03-20 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:54:05' and `end` < '2025-03-20 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:54:19] Production.INFO: count ==6489 [2025-03-20 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:54:05 - End Time 2025-03-20 15:54:05 [2025-03-20 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723891', 'tblTempUsageDetail_20' ) start [2025-03-20 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723891', 'tblTempUsageDetail_20' ) end [2025-03-20 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723891', 'tblTempVendorCDR_20' ) start [2025-03-20 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723891', 'tblTempVendorCDR_20' ) end [2025-03-20 15:54:22] Production.INFO: ProcessCDR(1,14723891,1,1,2) [2025-03-20 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723891', 'tblTempUsageDetail_20' ) start [2025-03-20 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723891', 'tblTempUsageDetail_20' ) end [2025-03-20 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:54:27] Production.INFO: ==10101== Releasing lock... [2025-03-20 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:54:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:55:06 [end_date_ymd] => 2025-03-20 15:55:06 [RateCDR] => 1 ) [2025-03-20 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:55:06' and `end` < '2025-03-20 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:55:19] Production.INFO: count ==6465 [2025-03-20 15:55:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:55:06 - End Time 2025-03-20 15:55:06 [2025-03-20 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723896', 'tblTempUsageDetail_20' ) start [2025-03-20 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723896', 'tblTempUsageDetail_20' ) end [2025-03-20 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723896', 'tblTempVendorCDR_20' ) start [2025-03-20 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723896', 'tblTempVendorCDR_20' ) end [2025-03-20 15:55:23] Production.INFO: ProcessCDR(1,14723896,1,1,2) [2025-03-20 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723896', 'tblTempUsageDetail_20' ) start [2025-03-20 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723896', 'tblTempUsageDetail_20' ) end [2025-03-20 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:55:28] Production.INFO: ==10227== Releasing lock... [2025-03-20 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:55:28] Production.INFO: 76.5 MB #Memory Used# [2025-03-20 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:56:05 [end_date_ymd] => 2025-03-20 15:56:05 [RateCDR] => 1 ) [2025-03-20 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:56:05' and `end` < '2025-03-20 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:56:18] Production.INFO: count ==6427 [2025-03-20 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-20 12:56:05 - End Time 2025-03-20 15:56:05 [2025-03-20 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723901', 'tblTempUsageDetail_20' ) start [2025-03-20 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723901', 'tblTempUsageDetail_20' ) end [2025-03-20 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723901', 'tblTempVendorCDR_20' ) start [2025-03-20 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723901', 'tblTempVendorCDR_20' ) end [2025-03-20 15:56:22] Production.INFO: ProcessCDR(1,14723901,1,1,2) [2025-03-20 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723901', 'tblTempUsageDetail_20' ) start [2025-03-20 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723901', 'tblTempUsageDetail_20' ) end [2025-03-20 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:56:27] Production.INFO: ==10314== Releasing lock... [2025-03-20 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:56:27] Production.INFO: 76 MB #Memory Used# [2025-03-20 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:57:05 [end_date_ymd] => 2025-03-20 15:57:05 [RateCDR] => 1 ) [2025-03-20 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:57:05' and `end` < '2025-03-20 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:57:19] Production.INFO: count ==6436 [2025-03-20 15:57:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:57:05 - End Time 2025-03-20 15:57:05 [2025-03-20 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723906', 'tblTempUsageDetail_20' ) start [2025-03-20 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723906', 'tblTempUsageDetail_20' ) end [2025-03-20 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723906', 'tblTempVendorCDR_20' ) start [2025-03-20 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723906', 'tblTempVendorCDR_20' ) end [2025-03-20 15:57:23] Production.INFO: ProcessCDR(1,14723906,1,1,2) [2025-03-20 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723906', 'tblTempUsageDetail_20' ) start [2025-03-20 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723906', 'tblTempUsageDetail_20' ) end [2025-03-20 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:57:28] Production.INFO: ==10397== Releasing lock... [2025-03-20 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:57:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:58:06 [end_date_ymd] => 2025-03-20 15:58:06 [RateCDR] => 1 ) [2025-03-20 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:58:06' and `end` < '2025-03-20 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:58:19] Production.INFO: count ==6434 [2025-03-20 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-20 12:58:06 - End Time 2025-03-20 15:58:06 [2025-03-20 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723911', 'tblTempUsageDetail_20' ) start [2025-03-20 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723911', 'tblTempUsageDetail_20' ) end [2025-03-20 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723911', 'tblTempVendorCDR_20' ) start [2025-03-20 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723911', 'tblTempVendorCDR_20' ) end [2025-03-20 15:58:22] Production.INFO: ProcessCDR(1,14723911,1,1,2) [2025-03-20 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723911', 'tblTempUsageDetail_20' ) start [2025-03-20 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723911', 'tblTempUsageDetail_20' ) end [2025-03-20 15:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:58:28] Production.INFO: ==10487== Releasing lock... [2025-03-20 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:58:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-20 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 12:59:06 [end_date_ymd] => 2025-03-20 15:59:06 [RateCDR] => 1 ) [2025-03-20 15:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 12:59:06' and `end` < '2025-03-20 15:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 15:59:20] Production.INFO: count ==6424 [2025-03-20 15:59:23] Production.ERROR: pbx CDR StartTime 2025-03-20 12:59:06 - End Time 2025-03-20 15:59:06 [2025-03-20 15:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723916', 'tblTempUsageDetail_20' ) start [2025-03-20 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723916', 'tblTempUsageDetail_20' ) end [2025-03-20 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723916', 'tblTempVendorCDR_20' ) start [2025-03-20 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723916', 'tblTempVendorCDR_20' ) end [2025-03-20 15:59:23] Production.INFO: ProcessCDR(1,14723916,1,1,2) [2025-03-20 15:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 15:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723916', 'tblTempUsageDetail_20' ) start [2025-03-20 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723916', 'tblTempUsageDetail_20' ) end [2025-03-20 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 15:59:28] Production.INFO: ==10573== Releasing lock... [2025-03-20 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 15:59:28] Production.INFO: 76 MB #Memory Used# [2025-03-20 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:00:06 [end_date_ymd] => 2025-03-20 16:00:06 [RateCDR] => 1 ) [2025-03-20 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:00:06' and `end` < '2025-03-20 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:00:19] Production.INFO: count ==6402 [2025-03-20 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:00:06 - End Time 2025-03-20 16:00:06 [2025-03-20 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723921', 'tblTempUsageDetail_20' ) start [2025-03-20 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723921', 'tblTempUsageDetail_20' ) end [2025-03-20 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723921', 'tblTempVendorCDR_20' ) start [2025-03-20 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723921', 'tblTempVendorCDR_20' ) end [2025-03-20 16:00:23] Production.INFO: ProcessCDR(1,14723921,1,1,2) [2025-03-20 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723921', 'tblTempUsageDetail_20' ) start [2025-03-20 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723921', 'tblTempUsageDetail_20' ) end [2025-03-20 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:00:28] Production.INFO: ==10660== Releasing lock... [2025-03-20 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:00:28] Production.INFO: 76 MB #Memory Used# [2025-03-20 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:01:05 [end_date_ymd] => 2025-03-20 16:01:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:01:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:01:19] Production.INFO: count ==6383 [2025-03-20 16:01:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:01:05 - End Time 2025-03-20 16:01:05 [2025-03-20 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723927', 'tblTempUsageDetail_20' ) start [2025-03-20 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723927', 'tblTempUsageDetail_20' ) end [2025-03-20 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723927', 'tblTempVendorCDR_20' ) start [2025-03-20 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723927', 'tblTempVendorCDR_20' ) end [2025-03-20 16:01:22] Production.INFO: ProcessCDR(1,14723927,1,1,2) [2025-03-20 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723927', 'tblTempUsageDetail_20' ) start [2025-03-20 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723927', 'tblTempUsageDetail_20' ) end [2025-03-20 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:01:26] Production.INFO: ==10762== Releasing lock... [2025-03-20 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:01:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:02:05 [end_date_ymd] => 2025-03-20 16:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:02:18] Production.INFO: count ==6338 [2025-03-20 16:02:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:02:05 - End Time 2025-03-20 16:02:05 [2025-03-20 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723932', 'tblTempUsageDetail_20' ) start [2025-03-20 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723932', 'tblTempUsageDetail_20' ) end [2025-03-20 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723932', 'tblTempVendorCDR_20' ) start [2025-03-20 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723932', 'tblTempVendorCDR_20' ) end [2025-03-20 16:02:21] Production.INFO: ProcessCDR(1,14723932,1,1,2) [2025-03-20 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723932', 'tblTempUsageDetail_20' ) start [2025-03-20 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723932', 'tblTempUsageDetail_20' ) end [2025-03-20 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:02:26] Production.INFO: ==10843== Releasing lock... [2025-03-20 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:02:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:03:06 [end_date_ymd] => 2025-03-20 16:03:06 [RateCDR] => 1 ) [2025-03-20 16:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:03:06' and `end` < '2025-03-20 16:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:03:19] Production.INFO: count ==6327 [2025-03-20 16:03:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:03:06 - End Time 2025-03-20 16:03:06 [2025-03-20 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723937', 'tblTempUsageDetail_20' ) start [2025-03-20 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723937', 'tblTempUsageDetail_20' ) end [2025-03-20 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723937', 'tblTempVendorCDR_20' ) start [2025-03-20 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723937', 'tblTempVendorCDR_20' ) end [2025-03-20 16:03:23] Production.INFO: ProcessCDR(1,14723937,1,1,2) [2025-03-20 16:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723937', 'tblTempUsageDetail_20' ) start [2025-03-20 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723937', 'tblTempUsageDetail_20' ) end [2025-03-20 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:03:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:03:29] Production.INFO: ==10927== Releasing lock... [2025-03-20 16:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:03:29] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:04:05 [end_date_ymd] => 2025-03-20 16:04:05 [RateCDR] => 1 ) [2025-03-20 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:04:05' and `end` < '2025-03-20 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:04:18] Production.INFO: count ==6320 [2025-03-20 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:04:05 - End Time 2025-03-20 16:04:05 [2025-03-20 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723942', 'tblTempUsageDetail_20' ) start [2025-03-20 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723942', 'tblTempUsageDetail_20' ) end [2025-03-20 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723942', 'tblTempVendorCDR_20' ) start [2025-03-20 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723942', 'tblTempVendorCDR_20' ) end [2025-03-20 16:04:21] Production.INFO: ProcessCDR(1,14723942,1,1,2) [2025-03-20 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723942', 'tblTempUsageDetail_20' ) start [2025-03-20 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723942', 'tblTempUsageDetail_20' ) end [2025-03-20 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:04:27] Production.INFO: ==11004== Releasing lock... [2025-03-20 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:04:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:05:05 [end_date_ymd] => 2025-03-20 16:05:05 [RateCDR] => 1 ) [2025-03-20 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:05:05' and `end` < '2025-03-20 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:05:19] Production.INFO: count ==6293 [2025-03-20 16:05:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:05:05 - End Time 2025-03-20 16:05:05 [2025-03-20 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723947', 'tblTempUsageDetail_20' ) start [2025-03-20 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723947', 'tblTempUsageDetail_20' ) end [2025-03-20 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723947', 'tblTempVendorCDR_20' ) start [2025-03-20 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723947', 'tblTempVendorCDR_20' ) end [2025-03-20 16:05:22] Production.INFO: ProcessCDR(1,14723947,1,1,2) [2025-03-20 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723947', 'tblTempUsageDetail_20' ) start [2025-03-20 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723947', 'tblTempUsageDetail_20' ) end [2025-03-20 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:05:27] Production.INFO: ==11084== Releasing lock... [2025-03-20 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:05:27] Production.INFO: 75 MB #Memory Used# [2025-03-20 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:06:05 [end_date_ymd] => 2025-03-20 16:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:06:18] Production.INFO: count ==6331 [2025-03-20 16:06:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:06:05 - End Time 2025-03-20 16:06:05 [2025-03-20 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723952', 'tblTempUsageDetail_20' ) start [2025-03-20 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723952', 'tblTempUsageDetail_20' ) end [2025-03-20 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723952', 'tblTempVendorCDR_20' ) start [2025-03-20 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723952', 'tblTempVendorCDR_20' ) end [2025-03-20 16:06:21] Production.INFO: ProcessCDR(1,14723952,1,1,2) [2025-03-20 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723952', 'tblTempUsageDetail_20' ) start [2025-03-20 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723952', 'tblTempUsageDetail_20' ) end [2025-03-20 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:06:26] Production.INFO: ==11169== Releasing lock... [2025-03-20 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:06:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:07:05 [end_date_ymd] => 2025-03-20 16:07:05 [RateCDR] => 1 ) [2025-03-20 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:07:05' and `end` < '2025-03-20 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:07:19] Production.INFO: count ==6308 [2025-03-20 16:07:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:07:05 - End Time 2025-03-20 16:07:05 [2025-03-20 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723957', 'tblTempUsageDetail_20' ) start [2025-03-20 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723957', 'tblTempUsageDetail_20' ) end [2025-03-20 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723957', 'tblTempVendorCDR_20' ) start [2025-03-20 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723957', 'tblTempVendorCDR_20' ) end [2025-03-20 16:07:22] Production.INFO: ProcessCDR(1,14723957,1,1,2) [2025-03-20 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723957', 'tblTempUsageDetail_20' ) start [2025-03-20 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723957', 'tblTempUsageDetail_20' ) end [2025-03-20 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:07:27] Production.INFO: ==11262== Releasing lock... [2025-03-20 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:07:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:08:04 [end_date_ymd] => 2025-03-20 16:08:04 [RateCDR] => 1 ) [2025-03-20 16:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:08:04' and `end` < '2025-03-20 16:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:08:18] Production.INFO: count ==6276 [2025-03-20 16:08:20] Production.ERROR: pbx CDR StartTime 2025-03-20 13:08:04 - End Time 2025-03-20 16:08:04 [2025-03-20 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723962', 'tblTempUsageDetail_20' ) start [2025-03-20 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723962', 'tblTempUsageDetail_20' ) end [2025-03-20 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723962', 'tblTempVendorCDR_20' ) start [2025-03-20 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723962', 'tblTempVendorCDR_20' ) end [2025-03-20 16:08:21] Production.INFO: ProcessCDR(1,14723962,1,1,2) [2025-03-20 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723962', 'tblTempUsageDetail_20' ) start [2025-03-20 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723962', 'tblTempUsageDetail_20' ) end [2025-03-20 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:08:26] Production.INFO: ==11352== Releasing lock... [2025-03-20 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:08:26] Production.INFO: 75 MB #Memory Used# [2025-03-20 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:09:05 [end_date_ymd] => 2025-03-20 16:09:05 [RateCDR] => 1 ) [2025-03-20 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:09:05' and `end` < '2025-03-20 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:09:18] Production.INFO: count ==6246 [2025-03-20 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:09:05 - End Time 2025-03-20 16:09:05 [2025-03-20 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723967', 'tblTempUsageDetail_20' ) start [2025-03-20 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723967', 'tblTempUsageDetail_20' ) end [2025-03-20 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723967', 'tblTempVendorCDR_20' ) start [2025-03-20 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723967', 'tblTempVendorCDR_20' ) end [2025-03-20 16:09:21] Production.INFO: ProcessCDR(1,14723967,1,1,2) [2025-03-20 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723967', 'tblTempUsageDetail_20' ) start [2025-03-20 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723967', 'tblTempUsageDetail_20' ) end [2025-03-20 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:09:26] Production.INFO: ==11438== Releasing lock... [2025-03-20 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:09:26] Production.INFO: 74.75 MB #Memory Used# [2025-03-20 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:10:07 [end_date_ymd] => 2025-03-20 16:10:07 [RateCDR] => 1 ) [2025-03-20 16:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:10:07' and `end` < '2025-03-20 16:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:10:20] Production.INFO: count ==6256 [2025-03-20 16:10:23] Production.ERROR: pbx CDR StartTime 2025-03-20 13:10:07 - End Time 2025-03-20 16:10:07 [2025-03-20 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723973', 'tblTempUsageDetail_20' ) start [2025-03-20 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723973', 'tblTempUsageDetail_20' ) end [2025-03-20 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723973', 'tblTempVendorCDR_20' ) start [2025-03-20 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723973', 'tblTempVendorCDR_20' ) end [2025-03-20 16:10:23] Production.INFO: ProcessCDR(1,14723973,1,1,2) [2025-03-20 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723973', 'tblTempUsageDetail_20' ) start [2025-03-20 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723973', 'tblTempUsageDetail_20' ) end [2025-03-20 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:10:29] Production.INFO: ==11569== Releasing lock... [2025-03-20 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:10:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-20 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:11:05 [end_date_ymd] => 2025-03-20 16:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:11:19] Production.INFO: count ==6275 [2025-03-20 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:11:05 - End Time 2025-03-20 16:11:05 [2025-03-20 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723978', 'tblTempUsageDetail_20' ) start [2025-03-20 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723978', 'tblTempUsageDetail_20' ) end [2025-03-20 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723978', 'tblTempVendorCDR_20' ) start [2025-03-20 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723978', 'tblTempVendorCDR_20' ) end [2025-03-20 16:11:22] Production.INFO: ProcessCDR(1,14723978,1,1,2) [2025-03-20 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723978', 'tblTempUsageDetail_20' ) start [2025-03-20 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723978', 'tblTempUsageDetail_20' ) end [2025-03-20 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:11:27] Production.INFO: ==11662== Releasing lock... [2025-03-20 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:11:27] Production.INFO: 75 MB #Memory Used# [2025-03-20 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:12:06 [end_date_ymd] => 2025-03-20 16:12:06 [RateCDR] => 1 ) [2025-03-20 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:12:06' and `end` < '2025-03-20 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:12:20] Production.INFO: count ==6291 [2025-03-20 16:12:23] Production.ERROR: pbx CDR StartTime 2025-03-20 13:12:06 - End Time 2025-03-20 16:12:06 [2025-03-20 16:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723983', 'tblTempUsageDetail_20' ) start [2025-03-20 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723983', 'tblTempUsageDetail_20' ) end [2025-03-20 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723983', 'tblTempVendorCDR_20' ) start [2025-03-20 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723983', 'tblTempVendorCDR_20' ) end [2025-03-20 16:12:23] Production.INFO: ProcessCDR(1,14723983,1,1,2) [2025-03-20 16:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723983', 'tblTempUsageDetail_20' ) start [2025-03-20 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723983', 'tblTempUsageDetail_20' ) end [2025-03-20 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:12:28] Production.INFO: ==11753== Releasing lock... [2025-03-20 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:12:28] Production.INFO: 75 MB #Memory Used# [2025-03-20 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:13:05 [end_date_ymd] => 2025-03-20 16:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:13:19] Production.INFO: count ==6293 [2025-03-20 16:13:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:13:05 - End Time 2025-03-20 16:13:05 [2025-03-20 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723988', 'tblTempUsageDetail_20' ) start [2025-03-20 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723988', 'tblTempUsageDetail_20' ) end [2025-03-20 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723988', 'tblTempVendorCDR_20' ) start [2025-03-20 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723988', 'tblTempVendorCDR_20' ) end [2025-03-20 16:13:22] Production.INFO: ProcessCDR(1,14723988,1,1,2) [2025-03-20 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723988', 'tblTempUsageDetail_20' ) start [2025-03-20 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723988', 'tblTempUsageDetail_20' ) end [2025-03-20 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:13:28] Production.INFO: ==11852== Releasing lock... [2025-03-20 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:13:28] Production.INFO: 75 MB #Memory Used# [2025-03-20 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:14:05 [end_date_ymd] => 2025-03-20 16:14:05 [RateCDR] => 1 ) [2025-03-20 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:14:05' and `end` < '2025-03-20 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:14:19] Production.INFO: count ==6319 [2025-03-20 16:14:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:14:05 - End Time 2025-03-20 16:14:05 [2025-03-20 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723993', 'tblTempUsageDetail_20' ) start [2025-03-20 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723993', 'tblTempUsageDetail_20' ) end [2025-03-20 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723993', 'tblTempVendorCDR_20' ) start [2025-03-20 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723993', 'tblTempVendorCDR_20' ) end [2025-03-20 16:14:22] Production.INFO: ProcessCDR(1,14723993,1,1,2) [2025-03-20 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723993', 'tblTempUsageDetail_20' ) start [2025-03-20 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723993', 'tblTempUsageDetail_20' ) end [2025-03-20 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:14:27] Production.INFO: ==11952== Releasing lock... [2025-03-20 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:14:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:15:05 [end_date_ymd] => 2025-03-20 16:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:15:19] Production.INFO: count ==6316 [2025-03-20 16:15:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:15:05 - End Time 2025-03-20 16:15:05 [2025-03-20 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723998', 'tblTempUsageDetail_20' ) start [2025-03-20 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14723998', 'tblTempUsageDetail_20' ) end [2025-03-20 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723998', 'tblTempVendorCDR_20' ) start [2025-03-20 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14723998', 'tblTempVendorCDR_20' ) end [2025-03-20 16:15:22] Production.INFO: ProcessCDR(1,14723998,1,1,2) [2025-03-20 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14723998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14723998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14723998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14723998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723998', 'tblTempUsageDetail_20' ) start [2025-03-20 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14723998', 'tblTempUsageDetail_20' ) end [2025-03-20 16:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:15:28] Production.INFO: ==12044== Releasing lock... [2025-03-20 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:15:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:16:06 [end_date_ymd] => 2025-03-20 16:16:06 [RateCDR] => 1 ) [2025-03-20 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:16:06' and `end` < '2025-03-20 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:16:19] Production.INFO: count ==6308 [2025-03-20 16:16:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:16:06 - End Time 2025-03-20 16:16:06 [2025-03-20 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724003', 'tblTempUsageDetail_20' ) start [2025-03-20 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724003', 'tblTempUsageDetail_20' ) end [2025-03-20 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724003', 'tblTempVendorCDR_20' ) start [2025-03-20 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724003', 'tblTempVendorCDR_20' ) end [2025-03-20 16:16:22] Production.INFO: ProcessCDR(1,14724003,1,1,2) [2025-03-20 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724003', 'tblTempUsageDetail_20' ) start [2025-03-20 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724003', 'tblTempUsageDetail_20' ) end [2025-03-20 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:16:27] Production.INFO: ==12135== Releasing lock... [2025-03-20 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:16:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:17:05 [end_date_ymd] => 2025-03-20 16:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:17:18] Production.INFO: count ==6321 [2025-03-20 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:17:05 - End Time 2025-03-20 16:17:05 [2025-03-20 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724008', 'tblTempUsageDetail_20' ) start [2025-03-20 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724008', 'tblTempUsageDetail_20' ) end [2025-03-20 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724008', 'tblTempVendorCDR_20' ) start [2025-03-20 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724008', 'tblTempVendorCDR_20' ) end [2025-03-20 16:17:21] Production.INFO: ProcessCDR(1,14724008,1,1,2) [2025-03-20 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724008', 'tblTempUsageDetail_20' ) start [2025-03-20 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724008', 'tblTempUsageDetail_20' ) end [2025-03-20 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:17:26] Production.INFO: ==12224== Releasing lock... [2025-03-20 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:17:26] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:18:06 [end_date_ymd] => 2025-03-20 16:18:06 [RateCDR] => 1 ) [2025-03-20 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:18:06' and `end` < '2025-03-20 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:18:19] Production.INFO: count ==6312 [2025-03-20 16:18:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:18:06 - End Time 2025-03-20 16:18:06 [2025-03-20 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724013', 'tblTempUsageDetail_20' ) start [2025-03-20 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724013', 'tblTempUsageDetail_20' ) end [2025-03-20 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724013', 'tblTempVendorCDR_20' ) start [2025-03-20 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724013', 'tblTempVendorCDR_20' ) end [2025-03-20 16:18:22] Production.INFO: ProcessCDR(1,14724013,1,1,2) [2025-03-20 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724013', 'tblTempUsageDetail_20' ) start [2025-03-20 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724013', 'tblTempUsageDetail_20' ) end [2025-03-20 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:18:27] Production.INFO: ==12305== Releasing lock... [2025-03-20 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:18:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:19:05 [end_date_ymd] => 2025-03-20 16:19:05 [RateCDR] => 1 ) [2025-03-20 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:19:05' and `end` < '2025-03-20 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:19:19] Production.INFO: count ==6311 [2025-03-20 16:19:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:19:05 - End Time 2025-03-20 16:19:05 [2025-03-20 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724018', 'tblTempUsageDetail_20' ) start [2025-03-20 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724018', 'tblTempUsageDetail_20' ) end [2025-03-20 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724018', 'tblTempVendorCDR_20' ) start [2025-03-20 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724018', 'tblTempVendorCDR_20' ) end [2025-03-20 16:19:22] Production.INFO: ProcessCDR(1,14724018,1,1,2) [2025-03-20 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724018', 'tblTempUsageDetail_20' ) start [2025-03-20 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724018', 'tblTempUsageDetail_20' ) end [2025-03-20 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:19:27] Production.INFO: ==12389== Releasing lock... [2025-03-20 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:19:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:20:06 [end_date_ymd] => 2025-03-20 16:20:06 [RateCDR] => 1 ) [2025-03-20 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:20:06' and `end` < '2025-03-20 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:20:20] Production.INFO: count ==6299 [2025-03-20 16:20:23] Production.ERROR: pbx CDR StartTime 2025-03-20 13:20:06 - End Time 2025-03-20 16:20:06 [2025-03-20 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724024', 'tblTempUsageDetail_20' ) start [2025-03-20 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724024', 'tblTempUsageDetail_20' ) end [2025-03-20 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724024', 'tblTempVendorCDR_20' ) start [2025-03-20 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724024', 'tblTempVendorCDR_20' ) end [2025-03-20 16:20:23] Production.INFO: ProcessCDR(1,14724024,1,1,2) [2025-03-20 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724024', 'tblTempUsageDetail_20' ) start [2025-03-20 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724024', 'tblTempUsageDetail_20' ) end [2025-03-20 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:20:28] Production.INFO: ==12475== Releasing lock... [2025-03-20 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:20:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:21:05 [end_date_ymd] => 2025-03-20 16:21:05 [RateCDR] => 1 ) [2025-03-20 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:21:05' and `end` < '2025-03-20 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:21:19] Production.INFO: count ==6364 [2025-03-20 16:21:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:21:05 - End Time 2025-03-20 16:21:05 [2025-03-20 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724029', 'tblTempUsageDetail_20' ) start [2025-03-20 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724029', 'tblTempUsageDetail_20' ) end [2025-03-20 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724029', 'tblTempVendorCDR_20' ) start [2025-03-20 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724029', 'tblTempVendorCDR_20' ) end [2025-03-20 16:21:22] Production.INFO: ProcessCDR(1,14724029,1,1,2) [2025-03-20 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724029', 'tblTempUsageDetail_20' ) start [2025-03-20 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724029', 'tblTempUsageDetail_20' ) end [2025-03-20 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:21:27] Production.INFO: ==12555== Releasing lock... [2025-03-20 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:21:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:22:05 [end_date_ymd] => 2025-03-20 16:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:22:19] Production.INFO: count ==6375 [2025-03-20 16:22:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:22:05 - End Time 2025-03-20 16:22:05 [2025-03-20 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724034', 'tblTempUsageDetail_20' ) start [2025-03-20 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724034', 'tblTempUsageDetail_20' ) end [2025-03-20 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724034', 'tblTempVendorCDR_20' ) start [2025-03-20 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724034', 'tblTempVendorCDR_20' ) end [2025-03-20 16:22:22] Production.INFO: ProcessCDR(1,14724034,1,1,2) [2025-03-20 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724034', 'tblTempUsageDetail_20' ) start [2025-03-20 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724034', 'tblTempUsageDetail_20' ) end [2025-03-20 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:22:27] Production.INFO: ==12643== Releasing lock... [2025-03-20 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:22:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:23:05 [end_date_ymd] => 2025-03-20 16:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:23:18] Production.INFO: count ==6385 [2025-03-20 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:23:05 - End Time 2025-03-20 16:23:05 [2025-03-20 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724039', 'tblTempUsageDetail_20' ) start [2025-03-20 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724039', 'tblTempUsageDetail_20' ) end [2025-03-20 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724039', 'tblTempVendorCDR_20' ) start [2025-03-20 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724039', 'tblTempVendorCDR_20' ) end [2025-03-20 16:23:21] Production.INFO: ProcessCDR(1,14724039,1,1,2) [2025-03-20 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724039', 'tblTempUsageDetail_20' ) start [2025-03-20 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724039', 'tblTempUsageDetail_20' ) end [2025-03-20 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:23:26] Production.INFO: ==12738== Releasing lock... [2025-03-20 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:23:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:24:05 [end_date_ymd] => 2025-03-20 16:24:05 [RateCDR] => 1 ) [2025-03-20 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:24:05' and `end` < '2025-03-20 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:24:19] Production.INFO: count ==6393 [2025-03-20 16:24:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:24:05 - End Time 2025-03-20 16:24:05 [2025-03-20 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724044', 'tblTempUsageDetail_20' ) start [2025-03-20 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724044', 'tblTempUsageDetail_20' ) end [2025-03-20 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724044', 'tblTempVendorCDR_20' ) start [2025-03-20 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724044', 'tblTempVendorCDR_20' ) end [2025-03-20 16:24:22] Production.INFO: ProcessCDR(1,14724044,1,1,2) [2025-03-20 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724044', 'tblTempUsageDetail_20' ) start [2025-03-20 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724044', 'tblTempUsageDetail_20' ) end [2025-03-20 16:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:24:28] Production.INFO: ==12816== Releasing lock... [2025-03-20 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:24:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:25:05 [end_date_ymd] => 2025-03-20 16:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:25:19] Production.INFO: count ==6388 [2025-03-20 16:25:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:25:05 - End Time 2025-03-20 16:25:05 [2025-03-20 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724049', 'tblTempUsageDetail_20' ) start [2025-03-20 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724049', 'tblTempUsageDetail_20' ) end [2025-03-20 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724049', 'tblTempVendorCDR_20' ) start [2025-03-20 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724049', 'tblTempVendorCDR_20' ) end [2025-03-20 16:25:22] Production.INFO: ProcessCDR(1,14724049,1,1,2) [2025-03-20 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724049', 'tblTempUsageDetail_20' ) start [2025-03-20 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724049', 'tblTempUsageDetail_20' ) end [2025-03-20 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:25:27] Production.INFO: ==12897== Releasing lock... [2025-03-20 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:25:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:26:05 [end_date_ymd] => 2025-03-20 16:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:26:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:26:19] Production.INFO: count ==6382 [2025-03-20 16:26:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:26:05 - End Time 2025-03-20 16:26:05 [2025-03-20 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724054', 'tblTempUsageDetail_20' ) start [2025-03-20 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724054', 'tblTempUsageDetail_20' ) end [2025-03-20 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724054', 'tblTempVendorCDR_20' ) start [2025-03-20 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724054', 'tblTempVendorCDR_20' ) end [2025-03-20 16:26:22] Production.INFO: ProcessCDR(1,14724054,1,1,2) [2025-03-20 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724054', 'tblTempUsageDetail_20' ) start [2025-03-20 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724054', 'tblTempUsageDetail_20' ) end [2025-03-20 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:26:27] Production.INFO: ==13034== Releasing lock... [2025-03-20 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:26:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:27:05 [end_date_ymd] => 2025-03-20 16:27:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:27:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:27:18] Production.INFO: count ==6381 [2025-03-20 16:27:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:27:05 - End Time 2025-03-20 16:27:05 [2025-03-20 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724059', 'tblTempUsageDetail_20' ) start [2025-03-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724059', 'tblTempUsageDetail_20' ) end [2025-03-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724059', 'tblTempVendorCDR_20' ) start [2025-03-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724059', 'tblTempVendorCDR_20' ) end [2025-03-20 16:27:21] Production.INFO: ProcessCDR(1,14724059,1,1,2) [2025-03-20 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724059', 'tblTempUsageDetail_20' ) start [2025-03-20 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724059', 'tblTempUsageDetail_20' ) end [2025-03-20 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:27:26] Production.INFO: ==13118== Releasing lock... [2025-03-20 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:27:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:28:05 [end_date_ymd] => 2025-03-20 16:28:05 [RateCDR] => 1 ) [2025-03-20 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:28:05' and `end` < '2025-03-20 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:28:19] Production.INFO: count ==6377 [2025-03-20 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:28:05 - End Time 2025-03-20 16:28:05 [2025-03-20 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724064', 'tblTempUsageDetail_20' ) start [2025-03-20 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724064', 'tblTempUsageDetail_20' ) end [2025-03-20 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724064', 'tblTempVendorCDR_20' ) start [2025-03-20 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724064', 'tblTempVendorCDR_20' ) end [2025-03-20 16:28:22] Production.INFO: ProcessCDR(1,14724064,1,1,2) [2025-03-20 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724064', 'tblTempUsageDetail_20' ) start [2025-03-20 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724064', 'tblTempUsageDetail_20' ) end [2025-03-20 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:28:27] Production.INFO: ==13207== Releasing lock... [2025-03-20 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:28:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:29:05 [end_date_ymd] => 2025-03-20 16:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:29:19] Production.INFO: count ==6371 [2025-03-20 16:29:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:29:05 - End Time 2025-03-20 16:29:05 [2025-03-20 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724069', 'tblTempUsageDetail_20' ) start [2025-03-20 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724069', 'tblTempUsageDetail_20' ) end [2025-03-20 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724069', 'tblTempVendorCDR_20' ) start [2025-03-20 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724069', 'tblTempVendorCDR_20' ) end [2025-03-20 16:29:22] Production.INFO: ProcessCDR(1,14724069,1,1,2) [2025-03-20 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724069', 'tblTempUsageDetail_20' ) start [2025-03-20 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724069', 'tblTempUsageDetail_20' ) end [2025-03-20 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:29:27] Production.INFO: ==13295== Releasing lock... [2025-03-20 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:29:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-20 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:30:06 [end_date_ymd] => 2025-03-20 16:30:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:30:06' and `end` < '2025-03-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 ,'') [2025-03-20 16:30:20] Production.INFO: count ==6354 [2025-03-20 16:30:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:30:06 - End Time 2025-03-20 16:30:06 [2025-03-20 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724075', 'tblTempUsageDetail_20' ) start [2025-03-20 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724075', 'tblTempUsageDetail_20' ) end [2025-03-20 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724075', 'tblTempVendorCDR_20' ) start [2025-03-20 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724075', 'tblTempVendorCDR_20' ) end [2025-03-20 16:30:23] Production.INFO: ProcessCDR(1,14724075,1,1,2) [2025-03-20 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724075', 'tblTempUsageDetail_20' ) start [2025-03-20 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724075', 'tblTempUsageDetail_20' ) end [2025-03-20 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:30:27] Production.INFO: ==13382== Releasing lock... [2025-03-20 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:30:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:31:05 [end_date_ymd] => 2025-03-20 16:31:05 [RateCDR] => 1 ) [2025-03-20 16:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:31:05' and `end` < '2025-03-20 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:31:19] Production.INFO: count ==6327 [2025-03-20 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:31:05 - End Time 2025-03-20 16:31:05 [2025-03-20 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724080', 'tblTempUsageDetail_20' ) start [2025-03-20 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724080', 'tblTempUsageDetail_20' ) end [2025-03-20 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724080', 'tblTempVendorCDR_20' ) start [2025-03-20 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724080', 'tblTempVendorCDR_20' ) end [2025-03-20 16:31:22] Production.INFO: ProcessCDR(1,14724080,1,1,2) [2025-03-20 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724080', 'tblTempUsageDetail_20' ) start [2025-03-20 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724080', 'tblTempUsageDetail_20' ) end [2025-03-20 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:31:27] Production.INFO: ==13468== Releasing lock... [2025-03-20 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:31:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:32:05 [end_date_ymd] => 2025-03-20 16:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:32:19] Production.INFO: count ==6324 [2025-03-20 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:32:05 - End Time 2025-03-20 16:32:05 [2025-03-20 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724085', 'tblTempUsageDetail_20' ) start [2025-03-20 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724085', 'tblTempUsageDetail_20' ) end [2025-03-20 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724085', 'tblTempVendorCDR_20' ) start [2025-03-20 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724085', 'tblTempVendorCDR_20' ) end [2025-03-20 16:32:22] Production.INFO: ProcessCDR(1,14724085,1,1,2) [2025-03-20 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724085', 'tblTempUsageDetail_20' ) start [2025-03-20 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724085', 'tblTempUsageDetail_20' ) end [2025-03-20 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:32:27] Production.INFO: ==13561== Releasing lock... [2025-03-20 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:32:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:33:05 [end_date_ymd] => 2025-03-20 16:33:05 [RateCDR] => 1 ) [2025-03-20 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:33:05' and `end` < '2025-03-20 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:33:19] Production.INFO: count ==6330 [2025-03-20 16:33:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:33:05 - End Time 2025-03-20 16:33:05 [2025-03-20 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724090', 'tblTempUsageDetail_20' ) start [2025-03-20 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724090', 'tblTempUsageDetail_20' ) end [2025-03-20 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724090', 'tblTempVendorCDR_20' ) start [2025-03-20 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724090', 'tblTempVendorCDR_20' ) end [2025-03-20 16:33:22] Production.INFO: ProcessCDR(1,14724090,1,1,2) [2025-03-20 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724090', 'tblTempUsageDetail_20' ) start [2025-03-20 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724090', 'tblTempUsageDetail_20' ) end [2025-03-20 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:33:27] Production.INFO: ==13651== Releasing lock... [2025-03-20 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:33:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:34:05 [end_date_ymd] => 2025-03-20 16:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:34:19] Production.INFO: count ==6337 [2025-03-20 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:34:05 - End Time 2025-03-20 16:34:05 [2025-03-20 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724095', 'tblTempUsageDetail_20' ) start [2025-03-20 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724095', 'tblTempUsageDetail_20' ) end [2025-03-20 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724095', 'tblTempVendorCDR_20' ) start [2025-03-20 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724095', 'tblTempVendorCDR_20' ) end [2025-03-20 16:34:22] Production.INFO: ProcessCDR(1,14724095,1,1,2) [2025-03-20 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724095', 'tblTempUsageDetail_20' ) start [2025-03-20 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724095', 'tblTempUsageDetail_20' ) end [2025-03-20 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:34:27] Production.INFO: ==13736== Releasing lock... [2025-03-20 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:34:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-20 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:35:06 [end_date_ymd] => 2025-03-20 16:35:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:35:06' and `end` < '2025-03-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 ,'') [2025-03-20 16:35:19] Production.INFO: count ==6305 [2025-03-20 16:35:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:35:06 - End Time 2025-03-20 16:35:06 [2025-03-20 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724100', 'tblTempUsageDetail_20' ) start [2025-03-20 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724100', 'tblTempUsageDetail_20' ) end [2025-03-20 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724100', 'tblTempVendorCDR_20' ) start [2025-03-20 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724100', 'tblTempVendorCDR_20' ) end [2025-03-20 16:35:22] Production.INFO: ProcessCDR(1,14724100,1,1,2) [2025-03-20 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724100', 'tblTempUsageDetail_20' ) start [2025-03-20 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724100', 'tblTempUsageDetail_20' ) end [2025-03-20 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:35:28] Production.INFO: ==13825== Releasing lock... [2025-03-20 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:35:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-20 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:36:05 [end_date_ymd] => 2025-03-20 16:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:36:18] Production.INFO: count ==6291 [2025-03-20 16:36:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:36:05 - End Time 2025-03-20 16:36:05 [2025-03-20 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724105', 'tblTempUsageDetail_20' ) start [2025-03-20 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724105', 'tblTempUsageDetail_20' ) end [2025-03-20 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724105', 'tblTempVendorCDR_20' ) start [2025-03-20 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724105', 'tblTempVendorCDR_20' ) end [2025-03-20 16:36:21] Production.INFO: ProcessCDR(1,14724105,1,1,2) [2025-03-20 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724105', 'tblTempUsageDetail_20' ) start [2025-03-20 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724105', 'tblTempUsageDetail_20' ) end [2025-03-20 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:36:27] Production.INFO: ==13912== Releasing lock... [2025-03-20 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:36:27] Production.INFO: 75 MB #Memory Used# [2025-03-20 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:37:06 [end_date_ymd] => 2025-03-20 16:37:06 [RateCDR] => 1 ) [2025-03-20 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:37:06' and `end` < '2025-03-20 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:37:19] Production.INFO: count ==6229 [2025-03-20 16:37:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:37:06 - End Time 2025-03-20 16:37:06 [2025-03-20 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724110', 'tblTempUsageDetail_20' ) start [2025-03-20 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724110', 'tblTempUsageDetail_20' ) end [2025-03-20 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724110', 'tblTempVendorCDR_20' ) start [2025-03-20 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724110', 'tblTempVendorCDR_20' ) end [2025-03-20 16:37:22] Production.INFO: ProcessCDR(1,14724110,1,1,2) [2025-03-20 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724110', 'tblTempUsageDetail_20' ) start [2025-03-20 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724110', 'tblTempUsageDetail_20' ) end [2025-03-20 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:37:27] Production.INFO: ==13993== Releasing lock... [2025-03-20 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:37:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-20 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:38:05 [end_date_ymd] => 2025-03-20 16:38:05 [RateCDR] => 1 ) [2025-03-20 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:38:05' and `end` < '2025-03-20 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:38:19] Production.INFO: count ==6186 [2025-03-20 16:38:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:38:05 - End Time 2025-03-20 16:38:05 [2025-03-20 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724115', 'tblTempUsageDetail_20' ) start [2025-03-20 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724115', 'tblTempUsageDetail_20' ) end [2025-03-20 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724115', 'tblTempVendorCDR_20' ) start [2025-03-20 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724115', 'tblTempVendorCDR_20' ) end [2025-03-20 16:38:21] Production.INFO: ProcessCDR(1,14724115,1,1,2) [2025-03-20 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724115', 'tblTempUsageDetail_20' ) start [2025-03-20 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724115', 'tblTempUsageDetail_20' ) end [2025-03-20 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:38:26] Production.INFO: ==14083== Releasing lock... [2025-03-20 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:38:26] Production.INFO: 74.25 MB #Memory Used# [2025-03-20 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:39:06 [end_date_ymd] => 2025-03-20 16:39:06 [RateCDR] => 1 ) [2025-03-20 16:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:39:06' and `end` < '2025-03-20 16:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:39:19] Production.INFO: count ==6168 [2025-03-20 16:39:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:39:06 - End Time 2025-03-20 16:39:06 [2025-03-20 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724120', 'tblTempUsageDetail_20' ) start [2025-03-20 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724120', 'tblTempUsageDetail_20' ) end [2025-03-20 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724120', 'tblTempVendorCDR_20' ) start [2025-03-20 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724120', 'tblTempVendorCDR_20' ) end [2025-03-20 16:39:22] Production.INFO: ProcessCDR(1,14724120,1,1,2) [2025-03-20 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724120', 'tblTempUsageDetail_20' ) start [2025-03-20 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724120', 'tblTempUsageDetail_20' ) end [2025-03-20 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:39:25] Production.INFO: ==14170== Releasing lock... [2025-03-20 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:39:25] Production.INFO: 74.25 MB #Memory Used# [2025-03-20 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:40:06 [end_date_ymd] => 2025-03-20 16:40:06 [RateCDR] => 1 ) [2025-03-20 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:40:06' and `end` < '2025-03-20 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:40:19] Production.INFO: count ==6148 [2025-03-20 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:40:06 - End Time 2025-03-20 16:40:06 [2025-03-20 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724126', 'tblTempUsageDetail_20' ) start [2025-03-20 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724126', 'tblTempUsageDetail_20' ) end [2025-03-20 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724126', 'tblTempVendorCDR_20' ) start [2025-03-20 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724126', 'tblTempVendorCDR_20' ) end [2025-03-20 16:40:22] Production.INFO: ProcessCDR(1,14724126,1,1,2) [2025-03-20 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724126', 'tblTempUsageDetail_20' ) start [2025-03-20 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724126', 'tblTempUsageDetail_20' ) end [2025-03-20 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:40:28] Production.INFO: ==14268== Releasing lock... [2025-03-20 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:40:28] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:41:05 [end_date_ymd] => 2025-03-20 16:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:41:19] Production.INFO: count ==6135 [2025-03-20 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:41:05 - End Time 2025-03-20 16:41:05 [2025-03-20 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724131', 'tblTempUsageDetail_20' ) start [2025-03-20 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724131', 'tblTempUsageDetail_20' ) end [2025-03-20 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724131', 'tblTempVendorCDR_20' ) start [2025-03-20 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724131', 'tblTempVendorCDR_20' ) end [2025-03-20 16:41:22] Production.INFO: ProcessCDR(1,14724131,1,1,2) [2025-03-20 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724131', 'tblTempUsageDetail_20' ) start [2025-03-20 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724131', 'tblTempUsageDetail_20' ) end [2025-03-20 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:41:26] Production.INFO: ==14399== Releasing lock... [2025-03-20 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:41:26] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:42:04 [end_date_ymd] => 2025-03-20 16:42:04 [RateCDR] => 1 ) [2025-03-20 16:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:42:04' and `end` < '2025-03-20 16:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:42:18] Production.INFO: count ==6127 [2025-03-20 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:42:04 - End Time 2025-03-20 16:42:04 [2025-03-20 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724136', 'tblTempUsageDetail_20' ) start [2025-03-20 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724136', 'tblTempUsageDetail_20' ) end [2025-03-20 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724136', 'tblTempVendorCDR_20' ) start [2025-03-20 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724136', 'tblTempVendorCDR_20' ) end [2025-03-20 16:42:21] Production.INFO: ProcessCDR(1,14724136,1,1,2) [2025-03-20 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724136', 'tblTempUsageDetail_20' ) start [2025-03-20 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724136', 'tblTempUsageDetail_20' ) end [2025-03-20 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:42:26] Production.INFO: ==14484== Releasing lock... [2025-03-20 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:42:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:43:05 [end_date_ymd] => 2025-03-20 16:43:05 [RateCDR] => 1 ) [2025-03-20 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:43:05' and `end` < '2025-03-20 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:43:19] Production.INFO: count ==6133 [2025-03-20 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:43:05 - End Time 2025-03-20 16:43:05 [2025-03-20 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724141', 'tblTempUsageDetail_20' ) start [2025-03-20 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724141', 'tblTempUsageDetail_20' ) end [2025-03-20 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724141', 'tblTempVendorCDR_20' ) start [2025-03-20 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724141', 'tblTempVendorCDR_20' ) end [2025-03-20 16:43:22] Production.INFO: ProcessCDR(1,14724141,1,1,2) [2025-03-20 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724141', 'tblTempUsageDetail_20' ) start [2025-03-20 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724141', 'tblTempUsageDetail_20' ) end [2025-03-20 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:43:27] Production.INFO: ==14579== Releasing lock... [2025-03-20 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:43:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:44:05 [end_date_ymd] => 2025-03-20 16:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:44:18] Production.INFO: count ==6131 [2025-03-20 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:44:05 - End Time 2025-03-20 16:44:05 [2025-03-20 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724146', 'tblTempUsageDetail_20' ) start [2025-03-20 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724146', 'tblTempUsageDetail_20' ) end [2025-03-20 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724146', 'tblTempVendorCDR_20' ) start [2025-03-20 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724146', 'tblTempVendorCDR_20' ) end [2025-03-20 16:44:21] Production.INFO: ProcessCDR(1,14724146,1,1,2) [2025-03-20 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724146', 'tblTempUsageDetail_20' ) start [2025-03-20 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724146', 'tblTempUsageDetail_20' ) end [2025-03-20 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:44:27] Production.INFO: ==14672== Releasing lock... [2025-03-20 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:44:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:45:06 [end_date_ymd] => 2025-03-20 16:45:06 [RateCDR] => 1 ) [2025-03-20 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:45:06' and `end` < '2025-03-20 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:45:19] Production.INFO: count ==6143 [2025-03-20 16:45:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:45:06 - End Time 2025-03-20 16:45:06 [2025-03-20 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724151', 'tblTempUsageDetail_20' ) start [2025-03-20 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724151', 'tblTempUsageDetail_20' ) end [2025-03-20 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724151', 'tblTempVendorCDR_20' ) start [2025-03-20 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724151', 'tblTempVendorCDR_20' ) end [2025-03-20 16:45:22] Production.INFO: ProcessCDR(1,14724151,1,1,2) [2025-03-20 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724151', 'tblTempUsageDetail_20' ) start [2025-03-20 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724151', 'tblTempUsageDetail_20' ) end [2025-03-20 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:45:27] Production.INFO: ==14768== Releasing lock... [2025-03-20 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:45:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:46:05 [end_date_ymd] => 2025-03-20 16:46:05 [RateCDR] => 1 ) [2025-03-20 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:46:05' and `end` < '2025-03-20 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:46:18] Production.INFO: count ==6139 [2025-03-20 16:46:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:46:05 - End Time 2025-03-20 16:46:05 [2025-03-20 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724156', 'tblTempUsageDetail_20' ) start [2025-03-20 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724156', 'tblTempUsageDetail_20' ) end [2025-03-20 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724156', 'tblTempVendorCDR_20' ) start [2025-03-20 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724156', 'tblTempVendorCDR_20' ) end [2025-03-20 16:46:22] Production.INFO: ProcessCDR(1,14724156,1,1,2) [2025-03-20 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724156', 'tblTempUsageDetail_20' ) start [2025-03-20 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724156', 'tblTempUsageDetail_20' ) end [2025-03-20 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:46:25] Production.INFO: ==14861== Releasing lock... [2025-03-20 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:46:25] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:47:05 [end_date_ymd] => 2025-03-20 16:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:47:19] Production.INFO: count ==6158 [2025-03-20 16:47:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:47:05 - End Time 2025-03-20 16:47:05 [2025-03-20 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724161', 'tblTempUsageDetail_20' ) start [2025-03-20 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724161', 'tblTempUsageDetail_20' ) end [2025-03-20 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724161', 'tblTempVendorCDR_20' ) start [2025-03-20 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724161', 'tblTempVendorCDR_20' ) end [2025-03-20 16:47:22] Production.INFO: ProcessCDR(1,14724161,1,1,2) [2025-03-20 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724161', 'tblTempUsageDetail_20' ) start [2025-03-20 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724161', 'tblTempUsageDetail_20' ) end [2025-03-20 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:47:27] Production.INFO: ==14962== Releasing lock... [2025-03-20 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:47:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:48:05 [end_date_ymd] => 2025-03-20 16:48:05 [RateCDR] => 1 ) [2025-03-20 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:48:05' and `end` < '2025-03-20 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:48:19] Production.INFO: count ==6157 [2025-03-20 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:48:05 - End Time 2025-03-20 16:48:05 [2025-03-20 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724166', 'tblTempUsageDetail_20' ) start [2025-03-20 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724166', 'tblTempUsageDetail_20' ) end [2025-03-20 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724166', 'tblTempVendorCDR_20' ) start [2025-03-20 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724166', 'tblTempVendorCDR_20' ) end [2025-03-20 16:48:22] Production.INFO: ProcessCDR(1,14724166,1,1,2) [2025-03-20 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724166', 'tblTempUsageDetail_20' ) start [2025-03-20 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724166', 'tblTempUsageDetail_20' ) end [2025-03-20 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:48:27] Production.INFO: ==15060== Releasing lock... [2025-03-20 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:48:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:49:05 [end_date_ymd] => 2025-03-20 16:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:49:19] Production.INFO: count ==6147 [2025-03-20 16:49:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:49:05 - End Time 2025-03-20 16:49:05 [2025-03-20 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724171', 'tblTempUsageDetail_20' ) start [2025-03-20 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724171', 'tblTempUsageDetail_20' ) end [2025-03-20 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724171', 'tblTempVendorCDR_20' ) start [2025-03-20 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724171', 'tblTempVendorCDR_20' ) end [2025-03-20 16:49:22] Production.INFO: ProcessCDR(1,14724171,1,1,2) [2025-03-20 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724171', 'tblTempUsageDetail_20' ) start [2025-03-20 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724171', 'tblTempUsageDetail_20' ) end [2025-03-20 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:49:27] Production.INFO: ==15152== Releasing lock... [2025-03-20 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:49:27] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:50:06 [end_date_ymd] => 2025-03-20 16:50:06 [RateCDR] => 1 ) [2025-03-20 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:50:06' and `end` < '2025-03-20 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:50:20] Production.INFO: count ==6125 [2025-03-20 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:50:06 - End Time 2025-03-20 16:50:06 [2025-03-20 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724177', 'tblTempUsageDetail_20' ) start [2025-03-20 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724177', 'tblTempUsageDetail_20' ) end [2025-03-20 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724177', 'tblTempVendorCDR_20' ) start [2025-03-20 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724177', 'tblTempVendorCDR_20' ) end [2025-03-20 16:50:22] Production.INFO: ProcessCDR(1,14724177,1,1,2) [2025-03-20 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724177', 'tblTempUsageDetail_20' ) start [2025-03-20 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724177', 'tblTempUsageDetail_20' ) end [2025-03-20 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:50:27] Production.INFO: ==15266== Releasing lock... [2025-03-20 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:50:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:51:05 [end_date_ymd] => 2025-03-20 16:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:51:18] Production.INFO: count ==6138 [2025-03-20 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:51:05 - End Time 2025-03-20 16:51:05 [2025-03-20 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724182', 'tblTempUsageDetail_20' ) start [2025-03-20 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724182', 'tblTempUsageDetail_20' ) end [2025-03-20 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724182', 'tblTempVendorCDR_20' ) start [2025-03-20 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724182', 'tblTempVendorCDR_20' ) end [2025-03-20 16:51:21] Production.INFO: ProcessCDR(1,14724182,1,1,2) [2025-03-20 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724182', 'tblTempUsageDetail_20' ) start [2025-03-20 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724182', 'tblTempUsageDetail_20' ) end [2025-03-20 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:51:26] Production.INFO: ==15369== Releasing lock... [2025-03-20 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:51:26] Production.INFO: 74 MB #Memory Used# [2025-03-20 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:52:06 [end_date_ymd] => 2025-03-20 16:52:06 [RateCDR] => 1 ) [2025-03-20 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:52:06' and `end` < '2025-03-20 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:52:19] Production.INFO: count ==6125 [2025-03-20 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:52:06 - End Time 2025-03-20 16:52:06 [2025-03-20 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724187', 'tblTempUsageDetail_20' ) start [2025-03-20 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724187', 'tblTempUsageDetail_20' ) end [2025-03-20 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724187', 'tblTempVendorCDR_20' ) start [2025-03-20 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724187', 'tblTempVendorCDR_20' ) end [2025-03-20 16:52:22] Production.INFO: ProcessCDR(1,14724187,1,1,2) [2025-03-20 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724187', 'tblTempUsageDetail_20' ) start [2025-03-20 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724187', 'tblTempUsageDetail_20' ) end [2025-03-20 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:52:27] Production.INFO: ==15472== Releasing lock... [2025-03-20 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:52:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:53:05 [end_date_ymd] => 2025-03-20 16:53:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:53:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:53:19] Production.INFO: count ==6107 [2025-03-20 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:53:05 - End Time 2025-03-20 16:53:05 [2025-03-20 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724192', 'tblTempUsageDetail_20' ) start [2025-03-20 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724192', 'tblTempUsageDetail_20' ) end [2025-03-20 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724192', 'tblTempVendorCDR_20' ) start [2025-03-20 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724192', 'tblTempVendorCDR_20' ) end [2025-03-20 16:53:21] Production.INFO: ProcessCDR(1,14724192,1,1,2) [2025-03-20 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724192', 'tblTempUsageDetail_20' ) start [2025-03-20 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724192', 'tblTempUsageDetail_20' ) end [2025-03-20 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:53:27] Production.INFO: ==15572== Releasing lock... [2025-03-20 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:53:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-20 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:54:06 [end_date_ymd] => 2025-03-20 16:54:06 [RateCDR] => 1 ) [2025-03-20 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:54:06' and `end` < '2025-03-20 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:54:19] Production.INFO: count ==6076 [2025-03-20 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:54:06 - End Time 2025-03-20 16:54:06 [2025-03-20 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724197', 'tblTempUsageDetail_20' ) start [2025-03-20 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724197', 'tblTempUsageDetail_20' ) end [2025-03-20 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724197', 'tblTempVendorCDR_20' ) start [2025-03-20 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724197', 'tblTempVendorCDR_20' ) end [2025-03-20 16:54:22] Production.INFO: ProcessCDR(1,14724197,1,1,2) [2025-03-20 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724197', 'tblTempUsageDetail_20' ) start [2025-03-20 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724197', 'tblTempUsageDetail_20' ) end [2025-03-20 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:54:27] Production.INFO: ==15666== Releasing lock... [2025-03-20 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:54:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:55:05 [end_date_ymd] => 2025-03-20 16:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:55:18] Production.INFO: count ==6064 [2025-03-20 16:55:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:55:05 - End Time 2025-03-20 16:55:05 [2025-03-20 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724202', 'tblTempUsageDetail_20' ) start [2025-03-20 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724202', 'tblTempUsageDetail_20' ) end [2025-03-20 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724202', 'tblTempVendorCDR_20' ) start [2025-03-20 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724202', 'tblTempVendorCDR_20' ) end [2025-03-20 16:55:21] Production.INFO: ProcessCDR(1,14724202,1,1,2) [2025-03-20 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724202', 'tblTempUsageDetail_20' ) start [2025-03-20 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724202', 'tblTempUsageDetail_20' ) end [2025-03-20 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:55:26] Production.INFO: ==15756== Releasing lock... [2025-03-20 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:55:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:56:06 [end_date_ymd] => 2025-03-20 16:56:06 [RateCDR] => 1 ) [2025-03-20 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:56:06' and `end` < '2025-03-20 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:56:19] Production.INFO: count ==6064 [2025-03-20 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:56:06 - End Time 2025-03-20 16:56:06 [2025-03-20 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724207', 'tblTempUsageDetail_20' ) start [2025-03-20 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724207', 'tblTempUsageDetail_20' ) end [2025-03-20 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724207', 'tblTempVendorCDR_20' ) start [2025-03-20 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724207', 'tblTempVendorCDR_20' ) end [2025-03-20 16:56:22] Production.INFO: ProcessCDR(1,14724207,1,1,2) [2025-03-20 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724207', 'tblTempUsageDetail_20' ) start [2025-03-20 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724207', 'tblTempUsageDetail_20' ) end [2025-03-20 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:56:27] Production.INFO: ==15894== Releasing lock... [2025-03-20 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:56:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:57:05 [end_date_ymd] => 2025-03-20 16:57:05 [RateCDR] => 1 ) [2025-03-20 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:57:05' and `end` < '2025-03-20 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:57:19] Production.INFO: count ==6066 [2025-03-20 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:57:05 - End Time 2025-03-20 16:57:05 [2025-03-20 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724212', 'tblTempUsageDetail_20' ) start [2025-03-20 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724212', 'tblTempUsageDetail_20' ) end [2025-03-20 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724212', 'tblTempVendorCDR_20' ) start [2025-03-20 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724212', 'tblTempVendorCDR_20' ) end [2025-03-20 16:57:21] Production.INFO: ProcessCDR(1,14724212,1,1,2) [2025-03-20 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724212', 'tblTempUsageDetail_20' ) start [2025-03-20 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724212', 'tblTempUsageDetail_20' ) end [2025-03-20 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:57:27] Production.INFO: ==15994== Releasing lock... [2025-03-20 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:57:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:58:05 [end_date_ymd] => 2025-03-20 16:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 13:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 16:58:19] Production.INFO: count ==6060 [2025-03-20 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-20 13:58:05 - End Time 2025-03-20 16:58:05 [2025-03-20 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724217', 'tblTempUsageDetail_20' ) start [2025-03-20 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724217', 'tblTempUsageDetail_20' ) end [2025-03-20 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724217', 'tblTempVendorCDR_20' ) start [2025-03-20 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724217', 'tblTempVendorCDR_20' ) end [2025-03-20 16:58:22] Production.INFO: ProcessCDR(1,14724217,1,1,2) [2025-03-20 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724217', 'tblTempUsageDetail_20' ) start [2025-03-20 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724217', 'tblTempUsageDetail_20' ) end [2025-03-20 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:58:27] Production.INFO: ==16101== Releasing lock... [2025-03-20 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:58:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 13:59:05 [end_date_ymd] => 2025-03-20 16:59:05 [RateCDR] => 1 ) [2025-03-20 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 13:59:05' and `end` < '2025-03-20 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 16:59:19] Production.INFO: count ==6061 [2025-03-20 16:59:22] Production.ERROR: pbx CDR StartTime 2025-03-20 13:59:05 - End Time 2025-03-20 16:59:05 [2025-03-20 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724222', 'tblTempUsageDetail_20' ) start [2025-03-20 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724222', 'tblTempUsageDetail_20' ) end [2025-03-20 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724222', 'tblTempVendorCDR_20' ) start [2025-03-20 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724222', 'tblTempVendorCDR_20' ) end [2025-03-20 16:59:22] Production.INFO: ProcessCDR(1,14724222,1,1,2) [2025-03-20 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724222', 'tblTempUsageDetail_20' ) start [2025-03-20 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724222', 'tblTempUsageDetail_20' ) end [2025-03-20 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 16:59:27] Production.INFO: ==16202== Releasing lock... [2025-03-20 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 16:59:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:00:06 [end_date_ymd] => 2025-03-20 17:00:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:00:06' and `end` < '2025-03-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 ,'') [2025-03-20 17:00:19] Production.INFO: count ==6035 [2025-03-20 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:00:06 - End Time 2025-03-20 17:00:06 [2025-03-20 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724228', 'tblTempUsageDetail_20' ) start [2025-03-20 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724228', 'tblTempUsageDetail_20' ) end [2025-03-20 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724228', 'tblTempVendorCDR_20' ) start [2025-03-20 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724228', 'tblTempVendorCDR_20' ) end [2025-03-20 17:00:22] Production.INFO: ProcessCDR(1,14724228,1,1,2) [2025-03-20 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724228', 'tblTempUsageDetail_20' ) start [2025-03-20 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724228', 'tblTempUsageDetail_20' ) end [2025-03-20 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:00:27] Production.INFO: ==16288== Releasing lock... [2025-03-20 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:00:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:01:05 [end_date_ymd] => 2025-03-20 17:01:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:01:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:01:18] Production.INFO: count ==6020 [2025-03-20 17:01:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:01:05 - End Time 2025-03-20 17:01:05 [2025-03-20 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724233', 'tblTempUsageDetail_20' ) start [2025-03-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724233', 'tblTempUsageDetail_20' ) end [2025-03-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724233', 'tblTempVendorCDR_20' ) start [2025-03-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724233', 'tblTempVendorCDR_20' ) end [2025-03-20 17:01:21] Production.INFO: ProcessCDR(1,14724233,1,1,2) [2025-03-20 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724233', 'tblTempUsageDetail_20' ) start [2025-03-20 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724233', 'tblTempUsageDetail_20' ) end [2025-03-20 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:01:26] Production.INFO: ==16396== Releasing lock... [2025-03-20 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:01:26] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:02:06 [end_date_ymd] => 2025-03-20 17:02:06 [RateCDR] => 1 ) [2025-03-20 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:02:06' and `end` < '2025-03-20 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:02:19] Production.INFO: count ==6028 [2025-03-20 17:02:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:02:06 - End Time 2025-03-20 17:02:06 [2025-03-20 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724238', 'tblTempUsageDetail_20' ) start [2025-03-20 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724238', 'tblTempUsageDetail_20' ) end [2025-03-20 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724238', 'tblTempVendorCDR_20' ) start [2025-03-20 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724238', 'tblTempVendorCDR_20' ) end [2025-03-20 17:02:22] Production.INFO: ProcessCDR(1,14724238,1,1,2) [2025-03-20 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724238', 'tblTempUsageDetail_20' ) start [2025-03-20 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724238', 'tblTempUsageDetail_20' ) end [2025-03-20 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:02:28] Production.INFO: ==16494== Releasing lock... [2025-03-20 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:02:28] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:03:06 [end_date_ymd] => 2025-03-20 17:03:06 [RateCDR] => 1 ) [2025-03-20 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:03:06' and `end` < '2025-03-20 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:03:19] Production.INFO: count ==6016 [2025-03-20 17:03:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:03:06 - End Time 2025-03-20 17:03:06 [2025-03-20 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724243', 'tblTempUsageDetail_20' ) start [2025-03-20 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724243', 'tblTempUsageDetail_20' ) end [2025-03-20 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724243', 'tblTempVendorCDR_20' ) start [2025-03-20 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724243', 'tblTempVendorCDR_20' ) end [2025-03-20 17:03:22] Production.INFO: ProcessCDR(1,14724243,1,1,2) [2025-03-20 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724243', 'tblTempUsageDetail_20' ) start [2025-03-20 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724243', 'tblTempUsageDetail_20' ) end [2025-03-20 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:03:27] Production.INFO: ==16585== Releasing lock... [2025-03-20 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:03:27] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:04:06 [end_date_ymd] => 2025-03-20 17:04:06 [RateCDR] => 1 ) [2025-03-20 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:04:06' and `end` < '2025-03-20 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:04:19] Production.INFO: count ==6015 [2025-03-20 17:04:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:04:06 - End Time 2025-03-20 17:04:06 [2025-03-20 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724248', 'tblTempUsageDetail_20' ) start [2025-03-20 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724248', 'tblTempUsageDetail_20' ) end [2025-03-20 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724248', 'tblTempVendorCDR_20' ) start [2025-03-20 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724248', 'tblTempVendorCDR_20' ) end [2025-03-20 17:04:22] Production.INFO: ProcessCDR(1,14724248,1,1,2) [2025-03-20 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724248', 'tblTempUsageDetail_20' ) start [2025-03-20 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724248', 'tblTempUsageDetail_20' ) end [2025-03-20 17:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:04:28] Production.INFO: ==16687== Releasing lock... [2025-03-20 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:04:28] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:05:05 [end_date_ymd] => 2025-03-20 17:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:05:19] Production.INFO: count ==6004 [2025-03-20 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:05:05 - End Time 2025-03-20 17:05:05 [2025-03-20 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724253', 'tblTempUsageDetail_20' ) start [2025-03-20 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724253', 'tblTempUsageDetail_20' ) end [2025-03-20 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724253', 'tblTempVendorCDR_20' ) start [2025-03-20 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724253', 'tblTempVendorCDR_20' ) end [2025-03-20 17:05:21] Production.INFO: ProcessCDR(1,14724253,1,1,2) [2025-03-20 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724253', 'tblTempUsageDetail_20' ) start [2025-03-20 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724253', 'tblTempUsageDetail_20' ) end [2025-03-20 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:05:27] Production.INFO: ==16786== Releasing lock... [2025-03-20 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:05:27] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:06:06 [end_date_ymd] => 2025-03-20 17:06:06 [RateCDR] => 1 ) [2025-03-20 17:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:06:06' and `end` < '2025-03-20 17:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:06:19] Production.INFO: count ==6032 [2025-03-20 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:06:06 - End Time 2025-03-20 17:06:06 [2025-03-20 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724258', 'tblTempUsageDetail_20' ) start [2025-03-20 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724258', 'tblTempUsageDetail_20' ) end [2025-03-20 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724258', 'tblTempVendorCDR_20' ) start [2025-03-20 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724258', 'tblTempVendorCDR_20' ) end [2025-03-20 17:06:22] Production.INFO: ProcessCDR(1,14724258,1,1,2) [2025-03-20 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724258', 'tblTempUsageDetail_20' ) start [2025-03-20 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724258', 'tblTempUsageDetail_20' ) end [2025-03-20 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:06:27] Production.INFO: ==16885== Releasing lock... [2025-03-20 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:06:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:07:05 [end_date_ymd] => 2025-03-20 17:07:05 [RateCDR] => 1 ) [2025-03-20 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:07:05' and `end` < '2025-03-20 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:07:18] Production.INFO: count ==6002 [2025-03-20 17:07:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:07:05 - End Time 2025-03-20 17:07:05 [2025-03-20 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724263', 'tblTempUsageDetail_20' ) start [2025-03-20 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724263', 'tblTempUsageDetail_20' ) end [2025-03-20 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724263', 'tblTempVendorCDR_20' ) start [2025-03-20 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724263', 'tblTempVendorCDR_20' ) end [2025-03-20 17:07:21] Production.INFO: ProcessCDR(1,14724263,1,1,2) [2025-03-20 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724263', 'tblTempUsageDetail_20' ) start [2025-03-20 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724263', 'tblTempUsageDetail_20' ) end [2025-03-20 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:07:27] Production.INFO: ==16982== Releasing lock... [2025-03-20 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:07:27] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:08:05 [end_date_ymd] => 2025-03-20 17:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:08:19] Production.INFO: count ==5995 [2025-03-20 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:08:05 - End Time 2025-03-20 17:08:05 [2025-03-20 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724268', 'tblTempUsageDetail_20' ) start [2025-03-20 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724268', 'tblTempUsageDetail_20' ) end [2025-03-20 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724268', 'tblTempVendorCDR_20' ) start [2025-03-20 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724268', 'tblTempVendorCDR_20' ) end [2025-03-20 17:08:21] Production.INFO: ProcessCDR(1,14724268,1,1,2) [2025-03-20 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724268', 'tblTempUsageDetail_20' ) start [2025-03-20 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724268', 'tblTempUsageDetail_20' ) end [2025-03-20 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:08:27] Production.INFO: ==17087== Releasing lock... [2025-03-20 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:08:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-20 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:09:05 [end_date_ymd] => 2025-03-20 17:09:05 [RateCDR] => 1 ) [2025-03-20 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:09:05' and `end` < '2025-03-20 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:09:19] Production.INFO: count ==6031 [2025-03-20 17:09:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:09:05 - End Time 2025-03-20 17:09:05 [2025-03-20 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724273', 'tblTempUsageDetail_20' ) start [2025-03-20 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724273', 'tblTempUsageDetail_20' ) end [2025-03-20 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724273', 'tblTempVendorCDR_20' ) start [2025-03-20 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724273', 'tblTempVendorCDR_20' ) end [2025-03-20 17:09:22] Production.INFO: ProcessCDR(1,14724273,1,1,2) [2025-03-20 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724273', 'tblTempUsageDetail_20' ) start [2025-03-20 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724273', 'tblTempUsageDetail_20' ) end [2025-03-20 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:09:27] Production.INFO: ==17188== Releasing lock... [2025-03-20 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:09:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:10:06 [end_date_ymd] => 2025-03-20 17:10:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:10:06' and `end` < '2025-03-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 ,'') [2025-03-20 17:10:20] Production.INFO: count ==6007 [2025-03-20 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:10:06 - End Time 2025-03-20 17:10:06 [2025-03-20 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724279', 'tblTempUsageDetail_20' ) start [2025-03-20 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724279', 'tblTempUsageDetail_20' ) end [2025-03-20 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724279', 'tblTempVendorCDR_20' ) start [2025-03-20 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724279', 'tblTempVendorCDR_20' ) end [2025-03-20 17:10:22] Production.INFO: ProcessCDR(1,14724279,1,1,2) [2025-03-20 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724279', 'tblTempUsageDetail_20' ) start [2025-03-20 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724279', 'tblTempUsageDetail_20' ) end [2025-03-20 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:10:26] Production.INFO: ==17288== Releasing lock... [2025-03-20 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:10:26] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:11:05 [end_date_ymd] => 2025-03-20 17:11:05 [RateCDR] => 1 ) [2025-03-20 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:11:05' and `end` < '2025-03-20 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:11:18] Production.INFO: count ==6001 [2025-03-20 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:11:05 - End Time 2025-03-20 17:11:05 [2025-03-20 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724284', 'tblTempUsageDetail_20' ) start [2025-03-20 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724284', 'tblTempUsageDetail_20' ) end [2025-03-20 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724284', 'tblTempVendorCDR_20' ) start [2025-03-20 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724284', 'tblTempVendorCDR_20' ) end [2025-03-20 17:11:21] Production.INFO: ProcessCDR(1,14724284,1,1,2) [2025-03-20 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724284', 'tblTempUsageDetail_20' ) start [2025-03-20 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724284', 'tblTempUsageDetail_20' ) end [2025-03-20 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:11:26] Production.INFO: ==17383== Releasing lock... [2025-03-20 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:11:26] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:12:05 [end_date_ymd] => 2025-03-20 17:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:12:18] Production.INFO: count ==5994 [2025-03-20 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:12:05 - End Time 2025-03-20 17:12:05 [2025-03-20 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724289', 'tblTempUsageDetail_20' ) start [2025-03-20 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724289', 'tblTempUsageDetail_20' ) end [2025-03-20 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724289', 'tblTempVendorCDR_20' ) start [2025-03-20 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724289', 'tblTempVendorCDR_20' ) end [2025-03-20 17:12:21] Production.INFO: ProcessCDR(1,14724289,1,1,2) [2025-03-20 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724289', 'tblTempUsageDetail_20' ) start [2025-03-20 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724289', 'tblTempUsageDetail_20' ) end [2025-03-20 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:12:27] Production.INFO: ==17516== Releasing lock... [2025-03-20 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:12:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-20 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:13:05 [end_date_ymd] => 2025-03-20 17:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:13:05' and `end` < '2025-03-20 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:13:18] Production.INFO: count ==5979 [2025-03-20 17:13:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:13:05 - End Time 2025-03-20 17:13:05 [2025-03-20 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724294', 'tblTempUsageDetail_20' ) start [2025-03-20 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724294', 'tblTempUsageDetail_20' ) end [2025-03-20 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724294', 'tblTempVendorCDR_20' ) start [2025-03-20 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724294', 'tblTempVendorCDR_20' ) end [2025-03-20 17:13:21] Production.INFO: ProcessCDR(1,14724294,1,1,2) [2025-03-20 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724294', 'tblTempUsageDetail_20' ) start [2025-03-20 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724294', 'tblTempUsageDetail_20' ) end [2025-03-20 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:13:26] Production.INFO: ==17602== Releasing lock... [2025-03-20 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:13:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-20 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:14:06 [end_date_ymd] => 2025-03-20 17:14:06 [RateCDR] => 1 ) [2025-03-20 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:14:06' and `end` < '2025-03-20 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:14:19] Production.INFO: count ==5985 [2025-03-20 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:14:06 - End Time 2025-03-20 17:14:06 [2025-03-20 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724299', 'tblTempUsageDetail_20' ) start [2025-03-20 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724299', 'tblTempUsageDetail_20' ) end [2025-03-20 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724299', 'tblTempVendorCDR_20' ) start [2025-03-20 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724299', 'tblTempVendorCDR_20' ) end [2025-03-20 17:14:22] Production.INFO: ProcessCDR(1,14724299,1,1,2) [2025-03-20 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724299', 'tblTempUsageDetail_20' ) start [2025-03-20 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724299', 'tblTempUsageDetail_20' ) end [2025-03-20 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:14:27] Production.INFO: ==17689== Releasing lock... [2025-03-20 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:14:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-20 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:15:05 [end_date_ymd] => 2025-03-20 17:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:15:18] Production.INFO: count ==5983 [2025-03-20 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:15:05 - End Time 2025-03-20 17:15:05 [2025-03-20 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724304', 'tblTempUsageDetail_20' ) start [2025-03-20 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724304', 'tblTempUsageDetail_20' ) end [2025-03-20 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724304', 'tblTempVendorCDR_20' ) start [2025-03-20 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724304', 'tblTempVendorCDR_20' ) end [2025-03-20 17:15:21] Production.INFO: ProcessCDR(1,14724304,1,1,2) [2025-03-20 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724304', 'tblTempUsageDetail_20' ) start [2025-03-20 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724304', 'tblTempUsageDetail_20' ) end [2025-03-20 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:15:27] Production.INFO: ==17777== Releasing lock... [2025-03-20 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:15:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-20 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:16:05 [end_date_ymd] => 2025-03-20 17:16:05 [RateCDR] => 1 ) [2025-03-20 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:16:05' and `end` < '2025-03-20 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:16:19] Production.INFO: count ==5970 [2025-03-20 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:16:05 - End Time 2025-03-20 17:16:05 [2025-03-20 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724309', 'tblTempUsageDetail_20' ) start [2025-03-20 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724309', 'tblTempUsageDetail_20' ) end [2025-03-20 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724309', 'tblTempVendorCDR_20' ) start [2025-03-20 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724309', 'tblTempVendorCDR_20' ) end [2025-03-20 17:16:21] Production.INFO: ProcessCDR(1,14724309,1,1,2) [2025-03-20 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724309', 'tblTempUsageDetail_20' ) start [2025-03-20 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724309', 'tblTempUsageDetail_20' ) end [2025-03-20 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:16:26] Production.INFO: ==17870== Releasing lock... [2025-03-20 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:16:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-20 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:17:05 [end_date_ymd] => 2025-03-20 17:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:17:18] Production.INFO: count ==6076 [2025-03-20 17:17:20] Production.ERROR: pbx CDR StartTime 2025-03-20 14:17:05 - End Time 2025-03-20 17:17:05 [2025-03-20 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724314', 'tblTempUsageDetail_20' ) start [2025-03-20 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724314', 'tblTempUsageDetail_20' ) end [2025-03-20 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724314', 'tblTempVendorCDR_20' ) start [2025-03-20 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724314', 'tblTempVendorCDR_20' ) end [2025-03-20 17:17:21] Production.INFO: ProcessCDR(1,14724314,1,1,2) [2025-03-20 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724314', 'tblTempUsageDetail_20' ) start [2025-03-20 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724314', 'tblTempUsageDetail_20' ) end [2025-03-20 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:17:24] Production.INFO: ==17967== Releasing lock... [2025-03-20 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:17:24] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:18:05 [end_date_ymd] => 2025-03-20 17:18:05 [RateCDR] => 1 ) [2025-03-20 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:18:05' and `end` < '2025-03-20 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:18:18] Production.INFO: count ==6065 [2025-03-20 17:18:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:18:05 - End Time 2025-03-20 17:18:05 [2025-03-20 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724319', 'tblTempUsageDetail_20' ) start [2025-03-20 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724319', 'tblTempUsageDetail_20' ) end [2025-03-20 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724319', 'tblTempVendorCDR_20' ) start [2025-03-20 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724319', 'tblTempVendorCDR_20' ) end [2025-03-20 17:18:21] Production.INFO: ProcessCDR(1,14724319,1,1,2) [2025-03-20 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724319', 'tblTempUsageDetail_20' ) start [2025-03-20 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724319', 'tblTempUsageDetail_20' ) end [2025-03-20 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:18:25] Production.INFO: ==18068== Releasing lock... [2025-03-20 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:18:25] Production.INFO: 73.5 MB #Memory Used# [2025-03-20 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:19:06 [end_date_ymd] => 2025-03-20 17:19:06 [RateCDR] => 1 ) [2025-03-20 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:19:06' and `end` < '2025-03-20 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:19:19] Production.INFO: count ==6050 [2025-03-20 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:19:06 - End Time 2025-03-20 17:19:06 [2025-03-20 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724324', 'tblTempUsageDetail_20' ) start [2025-03-20 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724324', 'tblTempUsageDetail_20' ) end [2025-03-20 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724324', 'tblTempVendorCDR_20' ) start [2025-03-20 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724324', 'tblTempVendorCDR_20' ) end [2025-03-20 17:19:21] Production.INFO: ProcessCDR(1,14724324,1,1,2) [2025-03-20 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724324', 'tblTempUsageDetail_20' ) start [2025-03-20 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724324', 'tblTempUsageDetail_20' ) end [2025-03-20 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:19:27] Production.INFO: ==18156== Releasing lock... [2025-03-20 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:19:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-20 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:20:05 [end_date_ymd] => 2025-03-20 17:20:05 [RateCDR] => 1 ) [2025-03-20 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:20:05' and `end` < '2025-03-20 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:20:19] Production.INFO: count ==6011 [2025-03-20 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:20:05 - End Time 2025-03-20 17:20:05 [2025-03-20 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724330', 'tblTempUsageDetail_20' ) start [2025-03-20 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724330', 'tblTempUsageDetail_20' ) end [2025-03-20 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724330', 'tblTempVendorCDR_20' ) start [2025-03-20 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724330', 'tblTempVendorCDR_20' ) end [2025-03-20 17:20:22] Production.INFO: ProcessCDR(1,14724330,1,1,2) [2025-03-20 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724330', 'tblTempUsageDetail_20' ) start [2025-03-20 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724330', 'tblTempUsageDetail_20' ) end [2025-03-20 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:20:27] Production.INFO: ==18251== Releasing lock... [2025-03-20 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:20:27] Production.INFO: 73 MB #Memory Used# [2025-03-20 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:21:05 [end_date_ymd] => 2025-03-20 17:21:05 [RateCDR] => 1 ) [2025-03-20 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:21:05' and `end` < '2025-03-20 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:21:19] Production.INFO: count ==5935 [2025-03-20 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:21:05 - End Time 2025-03-20 17:21:05 [2025-03-20 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724335', 'tblTempUsageDetail_20' ) start [2025-03-20 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724335', 'tblTempUsageDetail_20' ) end [2025-03-20 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724335', 'tblTempVendorCDR_20' ) start [2025-03-20 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724335', 'tblTempVendorCDR_20' ) end [2025-03-20 17:21:21] Production.INFO: ProcessCDR(1,14724335,1,1,2) [2025-03-20 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724335', 'tblTempUsageDetail_20' ) start [2025-03-20 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724335', 'tblTempUsageDetail_20' ) end [2025-03-20 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:21:26] Production.INFO: ==18333== Releasing lock... [2025-03-20 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:21:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-20 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:22:05 [end_date_ymd] => 2025-03-20 17:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:22:18] Production.INFO: count ==5883 [2025-03-20 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:22:05 - End Time 2025-03-20 17:22:05 [2025-03-20 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724340', 'tblTempUsageDetail_20' ) start [2025-03-20 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724340', 'tblTempUsageDetail_20' ) end [2025-03-20 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724340', 'tblTempVendorCDR_20' ) start [2025-03-20 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724340', 'tblTempVendorCDR_20' ) end [2025-03-20 17:22:21] Production.INFO: ProcessCDR(1,14724340,1,1,2) [2025-03-20 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724340', 'tblTempUsageDetail_20' ) start [2025-03-20 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724340', 'tblTempUsageDetail_20' ) end [2025-03-20 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:22:26] Production.INFO: ==18423== Releasing lock... [2025-03-20 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:22:26] Production.INFO: 72 MB #Memory Used# [2025-03-20 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:23:06 [end_date_ymd] => 2025-03-20 17:23:06 [RateCDR] => 1 ) [2025-03-20 17:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:23:06' and `end` < '2025-03-20 17:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:23:19] Production.INFO: count ==5881 [2025-03-20 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:23:06 - End Time 2025-03-20 17:23:06 [2025-03-20 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724345', 'tblTempUsageDetail_20' ) start [2025-03-20 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724345', 'tblTempUsageDetail_20' ) end [2025-03-20 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724345', 'tblTempVendorCDR_20' ) start [2025-03-20 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724345', 'tblTempVendorCDR_20' ) end [2025-03-20 17:23:22] Production.INFO: ProcessCDR(1,14724345,1,1,2) [2025-03-20 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724345', 'tblTempUsageDetail_20' ) start [2025-03-20 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724345', 'tblTempUsageDetail_20' ) end [2025-03-20 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:23:27] Production.INFO: ==18510== Releasing lock... [2025-03-20 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:23:27] Production.INFO: 72 MB #Memory Used# [2025-03-20 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:24:05 [end_date_ymd] => 2025-03-20 17:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:24:18] Production.INFO: count ==5868 [2025-03-20 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-20 14:24:05 - End Time 2025-03-20 17:24:05 [2025-03-20 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724350', 'tblTempUsageDetail_20' ) start [2025-03-20 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724350', 'tblTempUsageDetail_20' ) end [2025-03-20 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724350', 'tblTempVendorCDR_20' ) start [2025-03-20 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724350', 'tblTempVendorCDR_20' ) end [2025-03-20 17:24:20] Production.INFO: ProcessCDR(1,14724350,1,1,2) [2025-03-20 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724350', 'tblTempUsageDetail_20' ) start [2025-03-20 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724350', 'tblTempUsageDetail_20' ) end [2025-03-20 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:24:25] Production.INFO: ==18604== Releasing lock... [2025-03-20 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:24:25] Production.INFO: 72 MB #Memory Used# [2025-03-20 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:25:05 [end_date_ymd] => 2025-03-20 17:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:25:18] Production.INFO: count ==5838 [2025-03-20 17:25:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:25:05 - End Time 2025-03-20 17:25:05 [2025-03-20 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724355', 'tblTempUsageDetail_20' ) start [2025-03-20 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724355', 'tblTempUsageDetail_20' ) end [2025-03-20 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724355', 'tblTempVendorCDR_20' ) start [2025-03-20 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724355', 'tblTempVendorCDR_20' ) end [2025-03-20 17:25:21] Production.INFO: ProcessCDR(1,14724355,1,1,2) [2025-03-20 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724355', 'tblTempUsageDetail_20' ) start [2025-03-20 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724355', 'tblTempUsageDetail_20' ) end [2025-03-20 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:25:26] Production.INFO: ==18687== Releasing lock... [2025-03-20 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:25:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-20 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:26:06 [end_date_ymd] => 2025-03-20 17:26:06 [RateCDR] => 1 ) [2025-03-20 17:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:26:06' and `end` < '2025-03-20 17:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:26:19] Production.INFO: count ==5809 [2025-03-20 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:26:06 - End Time 2025-03-20 17:26:06 [2025-03-20 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724360', 'tblTempUsageDetail_20' ) start [2025-03-20 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724360', 'tblTempUsageDetail_20' ) end [2025-03-20 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724360', 'tblTempVendorCDR_20' ) start [2025-03-20 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724360', 'tblTempVendorCDR_20' ) end [2025-03-20 17:26:21] Production.INFO: ProcessCDR(1,14724360,1,1,2) [2025-03-20 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724360', 'tblTempUsageDetail_20' ) start [2025-03-20 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724360', 'tblTempUsageDetail_20' ) end [2025-03-20 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:26:27] Production.INFO: ==18773== Releasing lock... [2025-03-20 17:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:26:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-20 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:27:05 [end_date_ymd] => 2025-03-20 17:27:05 [RateCDR] => 1 ) [2025-03-20 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:27:05' and `end` < '2025-03-20 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:27:18] Production.INFO: count ==5788 [2025-03-20 17:27:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:27:05 - End Time 2025-03-20 17:27:05 [2025-03-20 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724365', 'tblTempUsageDetail_20' ) start [2025-03-20 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724365', 'tblTempUsageDetail_20' ) end [2025-03-20 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724365', 'tblTempVendorCDR_20' ) start [2025-03-20 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724365', 'tblTempVendorCDR_20' ) end [2025-03-20 17:27:21] Production.INFO: ProcessCDR(1,14724365,1,1,2) [2025-03-20 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724365', 'tblTempUsageDetail_20' ) start [2025-03-20 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724365', 'tblTempUsageDetail_20' ) end [2025-03-20 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:27:25] Production.INFO: ==18900== Releasing lock... [2025-03-20 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:27:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-20 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:28:06 [end_date_ymd] => 2025-03-20 17:28:06 [RateCDR] => 1 ) [2025-03-20 17:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:28:06' and `end` < '2025-03-20 17:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:28:19] Production.INFO: count ==5759 [2025-03-20 17:28:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:28:06 - End Time 2025-03-20 17:28:06 [2025-03-20 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724370', 'tblTempUsageDetail_20' ) start [2025-03-20 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724370', 'tblTempUsageDetail_20' ) end [2025-03-20 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724370', 'tblTempVendorCDR_20' ) start [2025-03-20 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724370', 'tblTempVendorCDR_20' ) end [2025-03-20 17:28:21] Production.INFO: ProcessCDR(1,14724370,1,1,2) [2025-03-20 17:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724370', 'tblTempUsageDetail_20' ) start [2025-03-20 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724370', 'tblTempUsageDetail_20' ) end [2025-03-20 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:28:25] Production.INFO: ==18991== Releasing lock... [2025-03-20 17:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:28:25] Production.INFO: 71 MB #Memory Used# [2025-03-20 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:29:05 [end_date_ymd] => 2025-03-20 17:29:05 [RateCDR] => 1 ) [2025-03-20 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:29:05' and `end` < '2025-03-20 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:29:18] Production.INFO: count ==5732 [2025-03-20 17:29:20] Production.ERROR: pbx CDR StartTime 2025-03-20 14:29:05 - End Time 2025-03-20 17:29:05 [2025-03-20 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724375', 'tblTempUsageDetail_20' ) start [2025-03-20 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724375', 'tblTempUsageDetail_20' ) end [2025-03-20 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724375', 'tblTempVendorCDR_20' ) start [2025-03-20 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724375', 'tblTempVendorCDR_20' ) end [2025-03-20 17:29:21] Production.INFO: ProcessCDR(1,14724375,1,1,2) [2025-03-20 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724375', 'tblTempUsageDetail_20' ) start [2025-03-20 17:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724375', 'tblTempUsageDetail_20' ) end [2025-03-20 17:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:29:24] Production.INFO: ==19074== Releasing lock... [2025-03-20 17:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:29:24] Production.INFO: 71 MB #Memory Used# [2025-03-20 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:30:06 [end_date_ymd] => 2025-03-20 17:30:06 [RateCDR] => 1 ) [2025-03-20 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:30:06' and `end` < '2025-03-20 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:30:19] Production.INFO: count ==5700 [2025-03-20 17:30:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:30:06 - End Time 2025-03-20 17:30:06 [2025-03-20 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724381', 'tblTempUsageDetail_20' ) start [2025-03-20 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724381', 'tblTempUsageDetail_20' ) end [2025-03-20 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724381', 'tblTempVendorCDR_20' ) start [2025-03-20 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724381', 'tblTempVendorCDR_20' ) end [2025-03-20 17:30:22] Production.INFO: ProcessCDR(1,14724381,1,1,2) [2025-03-20 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724381', 'tblTempUsageDetail_20' ) start [2025-03-20 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724381', 'tblTempUsageDetail_20' ) end [2025-03-20 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:30:27] Production.INFO: ==19165== Releasing lock... [2025-03-20 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:30:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-20 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:31:05 [end_date_ymd] => 2025-03-20 17:31:05 [RateCDR] => 1 ) [2025-03-20 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:31:05' and `end` < '2025-03-20 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:31:18] Production.INFO: count ==5643 [2025-03-20 17:31:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:31:05 - End Time 2025-03-20 17:31:05 [2025-03-20 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724386', 'tblTempUsageDetail_20' ) start [2025-03-20 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724386', 'tblTempUsageDetail_20' ) end [2025-03-20 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724386', 'tblTempVendorCDR_20' ) start [2025-03-20 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724386', 'tblTempVendorCDR_20' ) end [2025-03-20 17:31:21] Production.INFO: ProcessCDR(1,14724386,1,1,2) [2025-03-20 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724386', 'tblTempUsageDetail_20' ) start [2025-03-20 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724386', 'tblTempUsageDetail_20' ) end [2025-03-20 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:31:26] Production.INFO: ==19245== Releasing lock... [2025-03-20 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:31:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-20 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:32:06 [end_date_ymd] => 2025-03-20 17:32:06 [RateCDR] => 1 ) [2025-03-20 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:32:06' and `end` < '2025-03-20 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:32:19] Production.INFO: count ==5631 [2025-03-20 17:32:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:32:06 - End Time 2025-03-20 17:32:06 [2025-03-20 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724391', 'tblTempUsageDetail_20' ) start [2025-03-20 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724391', 'tblTempUsageDetail_20' ) end [2025-03-20 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724391', 'tblTempVendorCDR_20' ) start [2025-03-20 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724391', 'tblTempVendorCDR_20' ) end [2025-03-20 17:32:21] Production.INFO: ProcessCDR(1,14724391,1,1,2) [2025-03-20 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724391', 'tblTempUsageDetail_20' ) start [2025-03-20 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724391', 'tblTempUsageDetail_20' ) end [2025-03-20 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:32:27] Production.INFO: ==19334== Releasing lock... [2025-03-20 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:32:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-20 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:33:05 [end_date_ymd] => 2025-03-20 17:33:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:33:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:33:18] Production.INFO: count ==5616 [2025-03-20 17:33:20] Production.ERROR: pbx CDR StartTime 2025-03-20 14:33:05 - End Time 2025-03-20 17:33:05 [2025-03-20 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724396', 'tblTempUsageDetail_20' ) start [2025-03-20 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724396', 'tblTempUsageDetail_20' ) end [2025-03-20 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724396', 'tblTempVendorCDR_20' ) start [2025-03-20 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724396', 'tblTempVendorCDR_20' ) end [2025-03-20 17:33:20] Production.INFO: ProcessCDR(1,14724396,1,1,2) [2025-03-20 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724396', 'tblTempUsageDetail_20' ) start [2025-03-20 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724396', 'tblTempUsageDetail_20' ) end [2025-03-20 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:33:25] Production.INFO: ==19412== Releasing lock... [2025-03-20 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:33:25] Production.INFO: 70 MB #Memory Used# [2025-03-20 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:34:05 [end_date_ymd] => 2025-03-20 17:34:05 [RateCDR] => 1 ) [2025-03-20 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:34:05' and `end` < '2025-03-20 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:34:19] Production.INFO: count ==5627 [2025-03-20 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:34:05 - End Time 2025-03-20 17:34:05 [2025-03-20 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724401', 'tblTempUsageDetail_20' ) start [2025-03-20 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724401', 'tblTempUsageDetail_20' ) end [2025-03-20 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724401', 'tblTempVendorCDR_20' ) start [2025-03-20 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724401', 'tblTempVendorCDR_20' ) end [2025-03-20 17:34:21] Production.INFO: ProcessCDR(1,14724401,1,1,2) [2025-03-20 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724401', 'tblTempUsageDetail_20' ) start [2025-03-20 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724401', 'tblTempUsageDetail_20' ) end [2025-03-20 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:34:26] Production.INFO: ==19509== Releasing lock... [2025-03-20 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:34:26] Production.INFO: 70 MB #Memory Used# [2025-03-20 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:35:05 [end_date_ymd] => 2025-03-20 17:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:35:18] Production.INFO: count ==5602 [2025-03-20 17:35:20] Production.ERROR: pbx CDR StartTime 2025-03-20 14:35:05 - End Time 2025-03-20 17:35:05 [2025-03-20 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724406', 'tblTempUsageDetail_20' ) start [2025-03-20 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724406', 'tblTempUsageDetail_20' ) end [2025-03-20 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724406', 'tblTempVendorCDR_20' ) start [2025-03-20 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724406', 'tblTempVendorCDR_20' ) end [2025-03-20 17:35:20] Production.INFO: ProcessCDR(1,14724406,1,1,2) [2025-03-20 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724406', 'tblTempUsageDetail_20' ) start [2025-03-20 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724406', 'tblTempUsageDetail_20' ) end [2025-03-20 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:35:25] Production.INFO: ==19597== Releasing lock... [2025-03-20 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:35:25] Production.INFO: 70 MB #Memory Used# [2025-03-20 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:36:05 [end_date_ymd] => 2025-03-20 17:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:36:18] Production.INFO: count ==5602 [2025-03-20 17:36:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:36:05 - End Time 2025-03-20 17:36:05 [2025-03-20 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724411', 'tblTempUsageDetail_20' ) start [2025-03-20 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724411', 'tblTempUsageDetail_20' ) end [2025-03-20 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724411', 'tblTempVendorCDR_20' ) start [2025-03-20 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724411', 'tblTempVendorCDR_20' ) end [2025-03-20 17:36:21] Production.INFO: ProcessCDR(1,14724411,1,1,2) [2025-03-20 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724411', 'tblTempUsageDetail_20' ) start [2025-03-20 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724411', 'tblTempUsageDetail_20' ) end [2025-03-20 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:36:26] Production.INFO: ==19679== Releasing lock... [2025-03-20 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:36:26] Production.INFO: 70 MB #Memory Used# [2025-03-20 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:37:05 [end_date_ymd] => 2025-03-20 17:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:37:18] Production.INFO: count ==5600 [2025-03-20 17:37:20] Production.ERROR: pbx CDR StartTime 2025-03-20 14:37:05 - End Time 2025-03-20 17:37:05 [2025-03-20 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724416', 'tblTempUsageDetail_20' ) start [2025-03-20 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724416', 'tblTempUsageDetail_20' ) end [2025-03-20 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724416', 'tblTempVendorCDR_20' ) start [2025-03-20 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724416', 'tblTempVendorCDR_20' ) end [2025-03-20 17:37:20] Production.INFO: ProcessCDR(1,14724416,1,1,2) [2025-03-20 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724416', 'tblTempUsageDetail_20' ) start [2025-03-20 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724416', 'tblTempUsageDetail_20' ) end [2025-03-20 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:37:26] Production.INFO: ==19767== Releasing lock... [2025-03-20 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:37:26] Production.INFO: 70 MB #Memory Used# [2025-03-20 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:38:05 [end_date_ymd] => 2025-03-20 17:38:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:38:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:38:19] Production.INFO: count ==5606 [2025-03-20 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:38:05 - End Time 2025-03-20 17:38:05 [2025-03-20 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724421', 'tblTempUsageDetail_20' ) start [2025-03-20 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724421', 'tblTempUsageDetail_20' ) end [2025-03-20 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724421', 'tblTempVendorCDR_20' ) start [2025-03-20 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724421', 'tblTempVendorCDR_20' ) end [2025-03-20 17:38:21] Production.INFO: ProcessCDR(1,14724421,1,1,2) [2025-03-20 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724421', 'tblTempUsageDetail_20' ) start [2025-03-20 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724421', 'tblTempUsageDetail_20' ) end [2025-03-20 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:38:26] Production.INFO: ==19850== Releasing lock... [2025-03-20 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:38:26] Production.INFO: 70 MB #Memory Used# [2025-03-20 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:39:05 [end_date_ymd] => 2025-03-20 17:39:05 [RateCDR] => 1 ) [2025-03-20 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:39:05' and `end` < '2025-03-20 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:39:18] Production.INFO: count ==5601 [2025-03-20 17:39:20] Production.ERROR: pbx CDR StartTime 2025-03-20 14:39:05 - End Time 2025-03-20 17:39:05 [2025-03-20 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724426', 'tblTempUsageDetail_20' ) start [2025-03-20 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724426', 'tblTempUsageDetail_20' ) end [2025-03-20 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724426', 'tblTempVendorCDR_20' ) start [2025-03-20 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724426', 'tblTempVendorCDR_20' ) end [2025-03-20 17:39:20] Production.INFO: ProcessCDR(1,14724426,1,1,2) [2025-03-20 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724426', 'tblTempUsageDetail_20' ) start [2025-03-20 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724426', 'tblTempUsageDetail_20' ) end [2025-03-20 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:39:25] Production.INFO: ==19938== Releasing lock... [2025-03-20 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:39:25] Production.INFO: 70 MB #Memory Used# [2025-03-20 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:40:06 [end_date_ymd] => 2025-03-20 17:40:06 [RateCDR] => 1 ) [2025-03-20 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:40:06' and `end` < '2025-03-20 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:40:19] Production.INFO: count ==5613 [2025-03-20 17:40:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:40:06 - End Time 2025-03-20 17:40:06 [2025-03-20 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724431', 'tblTempUsageDetail_20' ) start [2025-03-20 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724431', 'tblTempUsageDetail_20' ) end [2025-03-20 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724431', 'tblTempVendorCDR_20' ) start [2025-03-20 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724431', 'tblTempVendorCDR_20' ) end [2025-03-20 17:40:21] Production.INFO: ProcessCDR(1,14724431,1,1,2) [2025-03-20 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724431', 'tblTempUsageDetail_20' ) start [2025-03-20 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724431', 'tblTempUsageDetail_20' ) end [2025-03-20 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:40:26] Production.INFO: ==20031== Releasing lock... [2025-03-20 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:40:26] Production.INFO: 70 MB #Memory Used# [2025-03-20 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:41:05 [end_date_ymd] => 2025-03-20 17:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:41:18] Production.INFO: count ==5551 [2025-03-20 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-20 14:41:05 - End Time 2025-03-20 17:41:05 [2025-03-20 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724437', 'tblTempUsageDetail_20' ) start [2025-03-20 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724437', 'tblTempUsageDetail_20' ) end [2025-03-20 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724437', 'tblTempVendorCDR_20' ) start [2025-03-20 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724437', 'tblTempVendorCDR_20' ) end [2025-03-20 17:41:21] Production.INFO: ProcessCDR(1,14724437,1,1,2) [2025-03-20 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724437', 'tblTempUsageDetail_20' ) start [2025-03-20 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724437', 'tblTempUsageDetail_20' ) end [2025-03-20 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:41:26] Production.INFO: ==20118== Releasing lock... [2025-03-20 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:41:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-20 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:42:06 [end_date_ymd] => 2025-03-20 17:42:06 [RateCDR] => 1 ) [2025-03-20 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:42:06' and `end` < '2025-03-20 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:42:19] Production.INFO: count ==5565 [2025-03-20 17:42:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:42:06 - End Time 2025-03-20 17:42:06 [2025-03-20 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724442', 'tblTempUsageDetail_20' ) start [2025-03-20 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724442', 'tblTempUsageDetail_20' ) end [2025-03-20 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724442', 'tblTempVendorCDR_20' ) start [2025-03-20 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724442', 'tblTempVendorCDR_20' ) end [2025-03-20 17:42:22] Production.INFO: ProcessCDR(1,14724442,1,1,2) [2025-03-20 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724442', 'tblTempUsageDetail_20' ) start [2025-03-20 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724442', 'tblTempUsageDetail_20' ) end [2025-03-20 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:42:27] Production.INFO: ==20198== Releasing lock... [2025-03-20 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:42:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-20 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:43:05 [end_date_ymd] => 2025-03-20 17:43:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:43:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:43:18] Production.INFO: count ==5560 [2025-03-20 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:43:05 - End Time 2025-03-20 17:43:05 [2025-03-20 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724447', 'tblTempUsageDetail_20' ) start [2025-03-20 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724447', 'tblTempUsageDetail_20' ) end [2025-03-20 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724447', 'tblTempVendorCDR_20' ) start [2025-03-20 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724447', 'tblTempVendorCDR_20' ) end [2025-03-20 17:43:21] Production.INFO: ProcessCDR(1,14724447,1,1,2) [2025-03-20 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724447', 'tblTempUsageDetail_20' ) start [2025-03-20 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724447', 'tblTempUsageDetail_20' ) end [2025-03-20 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:43:26] Production.INFO: ==20316== Releasing lock... [2025-03-20 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:43:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-20 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:44:05 [end_date_ymd] => 2025-03-20 17:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:44:19] Production.INFO: count ==5557 [2025-03-20 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:44:05 - End Time 2025-03-20 17:44:05 [2025-03-20 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724452', 'tblTempUsageDetail_20' ) start [2025-03-20 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724452', 'tblTempUsageDetail_20' ) end [2025-03-20 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724452', 'tblTempVendorCDR_20' ) start [2025-03-20 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724452', 'tblTempVendorCDR_20' ) end [2025-03-20 17:44:21] Production.INFO: ProcessCDR(1,14724452,1,1,2) [2025-03-20 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724452', 'tblTempUsageDetail_20' ) start [2025-03-20 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724452', 'tblTempUsageDetail_20' ) end [2025-03-20 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:44:26] Production.INFO: ==20398== Releasing lock... [2025-03-20 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:44:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-20 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:45:06 [end_date_ymd] => 2025-03-20 17:45:06 [RateCDR] => 1 ) [2025-03-20 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:45:06' and `end` < '2025-03-20 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:45:19] Production.INFO: count ==5545 [2025-03-20 17:45:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:45:06 - End Time 2025-03-20 17:45:06 [2025-03-20 17:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724457', 'tblTempUsageDetail_20' ) start [2025-03-20 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724457', 'tblTempUsageDetail_20' ) end [2025-03-20 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724457', 'tblTempVendorCDR_20' ) start [2025-03-20 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724457', 'tblTempVendorCDR_20' ) end [2025-03-20 17:45:22] Production.INFO: ProcessCDR(1,14724457,1,1,2) [2025-03-20 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724457', 'tblTempUsageDetail_20' ) start [2025-03-20 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724457', 'tblTempUsageDetail_20' ) end [2025-03-20 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:45:27] Production.INFO: ==20487== Releasing lock... [2025-03-20 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:45:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-20 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:46:05 [end_date_ymd] => 2025-03-20 17:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:46:18] Production.INFO: count ==5547 [2025-03-20 17:46:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:46:05 - End Time 2025-03-20 17:46:05 [2025-03-20 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724462', 'tblTempUsageDetail_20' ) start [2025-03-20 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724462', 'tblTempUsageDetail_20' ) end [2025-03-20 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724462', 'tblTempVendorCDR_20' ) start [2025-03-20 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724462', 'tblTempVendorCDR_20' ) end [2025-03-20 17:46:21] Production.INFO: ProcessCDR(1,14724462,1,1,2) [2025-03-20 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724462', 'tblTempUsageDetail_20' ) start [2025-03-20 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724462', 'tblTempUsageDetail_20' ) end [2025-03-20 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:46:25] Production.INFO: ==20575== Releasing lock... [2025-03-20 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:46:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-20 17:47:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:47:07 [end_date_ymd] => 2025-03-20 17:47:07 [RateCDR] => 1 ) [2025-03-20 17:47:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:47:07' and `end` < '2025-03-20 17:47:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:47:20] Production.INFO: count ==5524 [2025-03-20 17:47:23] Production.ERROR: pbx CDR StartTime 2025-03-20 14:47:07 - End Time 2025-03-20 17:47:07 [2025-03-20 17:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724467', 'tblTempUsageDetail_20' ) start [2025-03-20 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724467', 'tblTempUsageDetail_20' ) end [2025-03-20 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724467', 'tblTempVendorCDR_20' ) start [2025-03-20 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724467', 'tblTempVendorCDR_20' ) end [2025-03-20 17:47:23] Production.INFO: ProcessCDR(1,14724467,1,1,2) [2025-03-20 17:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724467', 'tblTempUsageDetail_20' ) start [2025-03-20 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724467', 'tblTempUsageDetail_20' ) end [2025-03-20 17:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:47:29] Production.INFO: ==20666== Releasing lock... [2025-03-20 17:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:47:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-20 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:48:06 [end_date_ymd] => 2025-03-20 17:48:06 [RateCDR] => 1 ) [2025-03-20 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:48:06' and `end` < '2025-03-20 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:48:19] Production.INFO: count ==5475 [2025-03-20 17:48:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:48:06 - End Time 2025-03-20 17:48:06 [2025-03-20 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724472', 'tblTempUsageDetail_20' ) start [2025-03-20 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724472', 'tblTempUsageDetail_20' ) end [2025-03-20 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724472', 'tblTempVendorCDR_20' ) start [2025-03-20 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724472', 'tblTempVendorCDR_20' ) end [2025-03-20 17:48:22] Production.INFO: ProcessCDR(1,14724472,1,1,2) [2025-03-20 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724472', 'tblTempUsageDetail_20' ) start [2025-03-20 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724472', 'tblTempUsageDetail_20' ) end [2025-03-20 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:48:28] Production.INFO: ==20746== Releasing lock... [2025-03-20 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:48:28] Production.INFO: 69 MB #Memory Used# [2025-03-20 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:49:06 [end_date_ymd] => 2025-03-20 17:49:06 [RateCDR] => 1 ) [2025-03-20 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:49:06' and `end` < '2025-03-20 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:49:20] Production.INFO: count ==5463 [2025-03-20 17:49:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:49:06 - End Time 2025-03-20 17:49:06 [2025-03-20 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724477', 'tblTempUsageDetail_20' ) start [2025-03-20 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724477', 'tblTempUsageDetail_20' ) end [2025-03-20 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724477', 'tblTempVendorCDR_20' ) start [2025-03-20 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724477', 'tblTempVendorCDR_20' ) end [2025-03-20 17:49:22] Production.INFO: ProcessCDR(1,14724477,1,1,2) [2025-03-20 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724477', 'tblTempUsageDetail_20' ) start [2025-03-20 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724477', 'tblTempUsageDetail_20' ) end [2025-03-20 17:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:49:28] Production.INFO: ==20831== Releasing lock... [2025-03-20 17:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:49:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-20 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:50:06 [end_date_ymd] => 2025-03-20 17:50:06 [RateCDR] => 1 ) [2025-03-20 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:50:06' and `end` < '2025-03-20 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:50:19] Production.INFO: count ==5463 [2025-03-20 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:50:06 - End Time 2025-03-20 17:50:06 [2025-03-20 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724482', 'tblTempUsageDetail_20' ) start [2025-03-20 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724482', 'tblTempUsageDetail_20' ) end [2025-03-20 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724482', 'tblTempVendorCDR_20' ) start [2025-03-20 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724482', 'tblTempVendorCDR_20' ) end [2025-03-20 17:50:22] Production.INFO: ProcessCDR(1,14724482,1,1,2) [2025-03-20 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724482', 'tblTempUsageDetail_20' ) start [2025-03-20 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724482', 'tblTempUsageDetail_20' ) end [2025-03-20 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:50:28] Production.INFO: ==20915== Releasing lock... [2025-03-20 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:50:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-20 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:51:06 [end_date_ymd] => 2025-03-20 17:51:06 [RateCDR] => 1 ) [2025-03-20 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:51:06' and `end` < '2025-03-20 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:51:19] Production.INFO: count ==5444 [2025-03-20 17:51:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:51:06 - End Time 2025-03-20 17:51:06 [2025-03-20 17:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724488', 'tblTempUsageDetail_20' ) start [2025-03-20 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724488', 'tblTempUsageDetail_20' ) end [2025-03-20 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724488', 'tblTempVendorCDR_20' ) start [2025-03-20 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724488', 'tblTempVendorCDR_20' ) end [2025-03-20 17:51:22] Production.INFO: ProcessCDR(1,14724488,1,1,2) [2025-03-20 17:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724488', 'tblTempUsageDetail_20' ) start [2025-03-20 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724488', 'tblTempUsageDetail_20' ) end [2025-03-20 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:51:28] Production.INFO: ==21006== Releasing lock... [2025-03-20 17:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:51:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-20 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:52:06 [end_date_ymd] => 2025-03-20 17:52:06 [RateCDR] => 1 ) [2025-03-20 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:52:06' and `end` < '2025-03-20 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:52:19] Production.INFO: count ==5426 [2025-03-20 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:52:06 - End Time 2025-03-20 17:52:06 [2025-03-20 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724493', 'tblTempUsageDetail_20' ) start [2025-03-20 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724493', 'tblTempUsageDetail_20' ) end [2025-03-20 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724493', 'tblTempVendorCDR_20' ) start [2025-03-20 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724493', 'tblTempVendorCDR_20' ) end [2025-03-20 17:52:22] Production.INFO: ProcessCDR(1,14724493,1,1,2) [2025-03-20 17:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724493', 'tblTempUsageDetail_20' ) start [2025-03-20 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724493', 'tblTempUsageDetail_20' ) end [2025-03-20 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:52:27] Production.INFO: ==21086== Releasing lock... [2025-03-20 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:52:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-20 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:53:05 [end_date_ymd] => 2025-03-20 17:53:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:53:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:53:18] Production.INFO: count ==5422 [2025-03-20 17:53:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:53:05 - End Time 2025-03-20 17:53:05 [2025-03-20 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724498', 'tblTempUsageDetail_20' ) start [2025-03-20 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724498', 'tblTempUsageDetail_20' ) end [2025-03-20 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724498', 'tblTempVendorCDR_20' ) start [2025-03-20 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724498', 'tblTempVendorCDR_20' ) end [2025-03-20 17:53:21] Production.INFO: ProcessCDR(1,14724498,1,1,2) [2025-03-20 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724498', 'tblTempUsageDetail_20' ) start [2025-03-20 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724498', 'tblTempUsageDetail_20' ) end [2025-03-20 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:53:26] Production.INFO: ==21175== Releasing lock... [2025-03-20 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:53:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-20 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:54:06 [end_date_ymd] => 2025-03-20 17:54:06 [RateCDR] => 1 ) [2025-03-20 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:54:06' and `end` < '2025-03-20 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:54:19] Production.INFO: count ==5409 [2025-03-20 17:54:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:54:06 - End Time 2025-03-20 17:54:06 [2025-03-20 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724503', 'tblTempUsageDetail_20' ) start [2025-03-20 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724503', 'tblTempUsageDetail_20' ) end [2025-03-20 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724503', 'tblTempVendorCDR_20' ) start [2025-03-20 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724503', 'tblTempVendorCDR_20' ) end [2025-03-20 17:54:21] Production.INFO: ProcessCDR(1,14724503,1,1,2) [2025-03-20 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724503', 'tblTempUsageDetail_20' ) start [2025-03-20 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724503', 'tblTempUsageDetail_20' ) end [2025-03-20 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:54:27] Production.INFO: ==21259== Releasing lock... [2025-03-20 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:54:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-20 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:55:06 [end_date_ymd] => 2025-03-20 17:55:06 [RateCDR] => 1 ) [2025-03-20 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:55:06' and `end` < '2025-03-20 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:55:19] Production.INFO: count ==5413 [2025-03-20 17:55:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:55:06 - End Time 2025-03-20 17:55:06 [2025-03-20 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724508', 'tblTempUsageDetail_20' ) start [2025-03-20 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724508', 'tblTempUsageDetail_20' ) end [2025-03-20 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724508', 'tblTempVendorCDR_20' ) start [2025-03-20 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724508', 'tblTempVendorCDR_20' ) end [2025-03-20 17:55:21] Production.INFO: ProcessCDR(1,14724508,1,1,2) [2025-03-20 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724508', 'tblTempUsageDetail_20' ) start [2025-03-20 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724508', 'tblTempUsageDetail_20' ) end [2025-03-20 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:55:27] Production.INFO: ==21341== Releasing lock... [2025-03-20 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:55:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-20 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:56:06 [end_date_ymd] => 2025-03-20 17:56:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:56:06' and `end` < '2025-03-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 ,'') [2025-03-20 17:56:19] Production.INFO: count ==5406 [2025-03-20 17:56:22] Production.ERROR: pbx CDR StartTime 2025-03-20 14:56:06 - End Time 2025-03-20 17:56:06 [2025-03-20 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724513', 'tblTempUsageDetail_20' ) start [2025-03-20 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724513', 'tblTempUsageDetail_20' ) end [2025-03-20 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724513', 'tblTempVendorCDR_20' ) start [2025-03-20 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724513', 'tblTempVendorCDR_20' ) end [2025-03-20 17:56:22] Production.INFO: ProcessCDR(1,14724513,1,1,2) [2025-03-20 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724513', 'tblTempUsageDetail_20' ) start [2025-03-20 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724513', 'tblTempUsageDetail_20' ) end [2025-03-20 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:56:26] Production.INFO: ==21430== Releasing lock... [2025-03-20 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:56:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-20 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:57:05 [end_date_ymd] => 2025-03-20 17:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:57:18] Production.INFO: count ==5394 [2025-03-20 17:57:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:57:05 - End Time 2025-03-20 17:57:05 [2025-03-20 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724518', 'tblTempUsageDetail_20' ) start [2025-03-20 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724518', 'tblTempUsageDetail_20' ) end [2025-03-20 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724518', 'tblTempVendorCDR_20' ) start [2025-03-20 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724518', 'tblTempVendorCDR_20' ) end [2025-03-20 17:57:21] Production.INFO: ProcessCDR(1,14724518,1,1,2) [2025-03-20 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724518', 'tblTempUsageDetail_20' ) start [2025-03-20 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724518', 'tblTempUsageDetail_20' ) end [2025-03-20 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:57:27] Production.INFO: ==21506== Releasing lock... [2025-03-20 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:57:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-20 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:58:06 [end_date_ymd] => 2025-03-20 17:58:06 [RateCDR] => 1 ) [2025-03-20 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 14:58:06' and `end` < '2025-03-20 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 17:58:19] Production.INFO: count ==5390 [2025-03-20 17:58:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:58:06 - End Time 2025-03-20 17:58:06 [2025-03-20 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724523', 'tblTempUsageDetail_20' ) start [2025-03-20 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724523', 'tblTempUsageDetail_20' ) end [2025-03-20 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724523', 'tblTempVendorCDR_20' ) start [2025-03-20 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724523', 'tblTempVendorCDR_20' ) end [2025-03-20 17:58:21] Production.INFO: ProcessCDR(1,14724523,1,1,2) [2025-03-20 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724523', 'tblTempUsageDetail_20' ) start [2025-03-20 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724523', 'tblTempUsageDetail_20' ) end [2025-03-20 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:58:27] Production.INFO: ==21638== Releasing lock... [2025-03-20 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:58:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-20 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 14:59:05 [end_date_ymd] => 2025-03-20 17:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 14:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 17:59:18] Production.INFO: count ==5396 [2025-03-20 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-20 14:59:05 - End Time 2025-03-20 17:59:05 [2025-03-20 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724528', 'tblTempUsageDetail_20' ) start [2025-03-20 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724528', 'tblTempUsageDetail_20' ) end [2025-03-20 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724528', 'tblTempVendorCDR_20' ) start [2025-03-20 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724528', 'tblTempVendorCDR_20' ) end [2025-03-20 17:59:21] Production.INFO: ProcessCDR(1,14724528,1,1,2) [2025-03-20 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724528', 'tblTempUsageDetail_20' ) start [2025-03-20 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724528', 'tblTempUsageDetail_20' ) end [2025-03-20 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 17:59:26] Production.INFO: ==21720== Releasing lock... [2025-03-20 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 17:59:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-20 18:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:00:08 [end_date_ymd] => 2025-03-20 18:00:08 [RateCDR] => 1 ) [2025-03-20 18:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:00:08' and `end` < '2025-03-20 18:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:00:21] Production.INFO: count ==5393 [2025-03-20 18:00:23] Production.ERROR: pbx CDR StartTime 2025-03-20 15:00:08 - End Time 2025-03-20 18:00:08 [2025-03-20 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724534', 'tblTempUsageDetail_20' ) start [2025-03-20 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724534', 'tblTempUsageDetail_20' ) end [2025-03-20 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724534', 'tblTempVendorCDR_20' ) start [2025-03-20 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724534', 'tblTempVendorCDR_20' ) end [2025-03-20 18:00:23] Production.INFO: ProcessCDR(1,14724534,1,1,2) [2025-03-20 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724534', 'tblTempUsageDetail_20' ) start [2025-03-20 18:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724534', 'tblTempUsageDetail_20' ) end [2025-03-20 18:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:00:29] Production.INFO: ==21810== Releasing lock... [2025-03-20 18:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:00:29] Production.INFO: 68.25 MB #Memory Used# [2025-03-20 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:01:05 [end_date_ymd] => 2025-03-20 18:01:05 [RateCDR] => 1 ) [2025-03-20 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:01:05' and `end` < '2025-03-20 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:01:19] Production.INFO: count ==5329 [2025-03-20 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:01:05 - End Time 2025-03-20 18:01:05 [2025-03-20 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724539', 'tblTempUsageDetail_20' ) start [2025-03-20 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724539', 'tblTempUsageDetail_20' ) end [2025-03-20 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724539', 'tblTempVendorCDR_20' ) start [2025-03-20 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724539', 'tblTempVendorCDR_20' ) end [2025-03-20 18:01:21] Production.INFO: ProcessCDR(1,14724539,1,1,2) [2025-03-20 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724539', 'tblTempUsageDetail_20' ) start [2025-03-20 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724539', 'tblTempUsageDetail_20' ) end [2025-03-20 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:01:27] Production.INFO: ==21907== Releasing lock... [2025-03-20 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:01:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-20 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:02:06 [end_date_ymd] => 2025-03-20 18:02:06 [RateCDR] => 1 ) [2025-03-20 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:02:06' and `end` < '2025-03-20 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:02:19] Production.INFO: count ==5310 [2025-03-20 18:02:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:02:06 - End Time 2025-03-20 18:02:06 [2025-03-20 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724544', 'tblTempUsageDetail_20' ) start [2025-03-20 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724544', 'tblTempUsageDetail_20' ) end [2025-03-20 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724544', 'tblTempVendorCDR_20' ) start [2025-03-20 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724544', 'tblTempVendorCDR_20' ) end [2025-03-20 18:02:22] Production.INFO: ProcessCDR(1,14724544,1,1,2) [2025-03-20 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724544', 'tblTempUsageDetail_20' ) start [2025-03-20 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724544', 'tblTempUsageDetail_20' ) end [2025-03-20 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:02:27] Production.INFO: ==21993== Releasing lock... [2025-03-20 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:02:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-20 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:03:06 [end_date_ymd] => 2025-03-20 18:03:06 [RateCDR] => 1 ) [2025-03-20 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:03:06' and `end` < '2025-03-20 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:03:19] Production.INFO: count ==5295 [2025-03-20 18:03:22] Production.ERROR: pbx CDR StartTime 2025-03-20 15:03:06 - End Time 2025-03-20 18:03:06 [2025-03-20 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724549', 'tblTempUsageDetail_20' ) start [2025-03-20 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724549', 'tblTempUsageDetail_20' ) end [2025-03-20 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724549', 'tblTempVendorCDR_20' ) start [2025-03-20 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724549', 'tblTempVendorCDR_20' ) end [2025-03-20 18:03:22] Production.INFO: ProcessCDR(1,14724549,1,1,2) [2025-03-20 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724549', 'tblTempUsageDetail_20' ) start [2025-03-20 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724549', 'tblTempUsageDetail_20' ) end [2025-03-20 18:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:03:28] Production.INFO: ==22079== Releasing lock... [2025-03-20 18:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:03:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-20 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:04:05 [end_date_ymd] => 2025-03-20 18:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:04:18] Production.INFO: count ==5266 [2025-03-20 18:04:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:04:05 - End Time 2025-03-20 18:04:05 [2025-03-20 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724554', 'tblTempUsageDetail_20' ) start [2025-03-20 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724554', 'tblTempUsageDetail_20' ) end [2025-03-20 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724554', 'tblTempVendorCDR_20' ) start [2025-03-20 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724554', 'tblTempVendorCDR_20' ) end [2025-03-20 18:04:21] Production.INFO: ProcessCDR(1,14724554,1,1,2) [2025-03-20 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724554', 'tblTempUsageDetail_20' ) start [2025-03-20 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724554', 'tblTempUsageDetail_20' ) end [2025-03-20 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:04:27] Production.INFO: ==22169== Releasing lock... [2025-03-20 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:04:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-20 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:05:05 [end_date_ymd] => 2025-03-20 18:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:05:18] Production.INFO: count ==5245 [2025-03-20 18:05:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:05:05 - End Time 2025-03-20 18:05:05 [2025-03-20 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724559', 'tblTempUsageDetail_20' ) start [2025-03-20 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724559', 'tblTempUsageDetail_20' ) end [2025-03-20 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724559', 'tblTempVendorCDR_20' ) start [2025-03-20 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724559', 'tblTempVendorCDR_20' ) end [2025-03-20 18:05:21] Production.INFO: ProcessCDR(1,14724559,1,1,2) [2025-03-20 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724559', 'tblTempUsageDetail_20' ) start [2025-03-20 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724559', 'tblTempUsageDetail_20' ) end [2025-03-20 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:05:26] Production.INFO: ==22252== Releasing lock... [2025-03-20 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:05:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-20 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:06:05 [end_date_ymd] => 2025-03-20 18:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:06:18] Production.INFO: count ==5216 [2025-03-20 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:06:05 - End Time 2025-03-20 18:06:05 [2025-03-20 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724564', 'tblTempUsageDetail_20' ) start [2025-03-20 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724564', 'tblTempUsageDetail_20' ) end [2025-03-20 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724564', 'tblTempVendorCDR_20' ) start [2025-03-20 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724564', 'tblTempVendorCDR_20' ) end [2025-03-20 18:06:20] Production.INFO: ProcessCDR(1,14724564,1,1,2) [2025-03-20 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724564', 'tblTempUsageDetail_20' ) start [2025-03-20 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724564', 'tblTempUsageDetail_20' ) end [2025-03-20 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:06:25] Production.INFO: ==22326== Releasing lock... [2025-03-20 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:06:25] Production.INFO: 67 MB #Memory Used# [2025-03-20 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:07:05 [end_date_ymd] => 2025-03-20 18:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:07:18] Production.INFO: count ==5203 [2025-03-20 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:07:05 - End Time 2025-03-20 18:07:05 [2025-03-20 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724569', 'tblTempUsageDetail_20' ) start [2025-03-20 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724569', 'tblTempUsageDetail_20' ) end [2025-03-20 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724569', 'tblTempVendorCDR_20' ) start [2025-03-20 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724569', 'tblTempVendorCDR_20' ) end [2025-03-20 18:07:20] Production.INFO: ProcessCDR(1,14724569,1,1,2) [2025-03-20 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724569', 'tblTempUsageDetail_20' ) start [2025-03-20 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724569', 'tblTempUsageDetail_20' ) end [2025-03-20 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:07:24] Production.INFO: ==22406== Releasing lock... [2025-03-20 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:07:24] Production.INFO: 67 MB #Memory Used# [2025-03-20 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:08:06 [end_date_ymd] => 2025-03-20 18:08:06 [RateCDR] => 1 ) [2025-03-20 18:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:08:06' and `end` < '2025-03-20 18:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:08:19] Production.INFO: count ==5198 [2025-03-20 18:08:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:08:06 - End Time 2025-03-20 18:08:06 [2025-03-20 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724574', 'tblTempUsageDetail_20' ) start [2025-03-20 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724574', 'tblTempUsageDetail_20' ) end [2025-03-20 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724574', 'tblTempVendorCDR_20' ) start [2025-03-20 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724574', 'tblTempVendorCDR_20' ) end [2025-03-20 18:08:22] Production.INFO: ProcessCDR(1,14724574,1,1,2) [2025-03-20 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724574', 'tblTempUsageDetail_20' ) start [2025-03-20 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724574', 'tblTempUsageDetail_20' ) end [2025-03-20 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:08:27] Production.INFO: ==22508== Releasing lock... [2025-03-20 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:08:27] Production.INFO: 67 MB #Memory Used# [2025-03-20 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:09:05 [end_date_ymd] => 2025-03-20 18:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:09:19] Production.INFO: count ==5197 [2025-03-20 18:09:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:09:05 - End Time 2025-03-20 18:09:05 [2025-03-20 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724579', 'tblTempUsageDetail_20' ) start [2025-03-20 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724579', 'tblTempUsageDetail_20' ) end [2025-03-20 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724579', 'tblTempVendorCDR_20' ) start [2025-03-20 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724579', 'tblTempVendorCDR_20' ) end [2025-03-20 18:09:21] Production.INFO: ProcessCDR(1,14724579,1,1,2) [2025-03-20 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724579', 'tblTempUsageDetail_20' ) start [2025-03-20 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724579', 'tblTempUsageDetail_20' ) end [2025-03-20 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:09:26] Production.INFO: ==22593== Releasing lock... [2025-03-20 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:09:26] Production.INFO: 67 MB #Memory Used# [2025-03-20 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:10:07 [end_date_ymd] => 2025-03-20 18:10:07 [RateCDR] => 1 ) [2025-03-20 18:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:10:07' and `end` < '2025-03-20 18:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:10:20] Production.INFO: count ==5180 [2025-03-20 18:10:22] Production.ERROR: pbx CDR StartTime 2025-03-20 15:10:07 - End Time 2025-03-20 18:10:07 [2025-03-20 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724585', 'tblTempUsageDetail_20' ) start [2025-03-20 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724585', 'tblTempUsageDetail_20' ) end [2025-03-20 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724585', 'tblTempVendorCDR_20' ) start [2025-03-20 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724585', 'tblTempVendorCDR_20' ) end [2025-03-20 18:10:22] Production.INFO: ProcessCDR(1,14724585,1,1,2) [2025-03-20 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724585', 'tblTempUsageDetail_20' ) start [2025-03-20 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724585', 'tblTempUsageDetail_20' ) end [2025-03-20 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:10:27] Production.INFO: ==22689== Releasing lock... [2025-03-20 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:10:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-20 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:11:05 [end_date_ymd] => 2025-03-20 18:11:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:11:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:11:19] Production.INFO: count ==5121 [2025-03-20 18:11:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:11:05 - End Time 2025-03-20 18:11:05 [2025-03-20 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724590', 'tblTempUsageDetail_20' ) start [2025-03-20 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724590', 'tblTempUsageDetail_20' ) end [2025-03-20 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724590', 'tblTempVendorCDR_20' ) start [2025-03-20 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724590', 'tblTempVendorCDR_20' ) end [2025-03-20 18:11:21] Production.INFO: ProcessCDR(1,14724590,1,1,2) [2025-03-20 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724590', 'tblTempUsageDetail_20' ) start [2025-03-20 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724590', 'tblTempUsageDetail_20' ) end [2025-03-20 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:11:26] Production.INFO: ==22769== Releasing lock... [2025-03-20 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:11:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-20 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:12:06 [end_date_ymd] => 2025-03-20 18:12:06 [RateCDR] => 1 ) [2025-03-20 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:12:06' and `end` < '2025-03-20 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:12:19] Production.INFO: count ==5098 [2025-03-20 18:12:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:12:06 - End Time 2025-03-20 18:12:06 [2025-03-20 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724595', 'tblTempUsageDetail_20' ) start [2025-03-20 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724595', 'tblTempUsageDetail_20' ) end [2025-03-20 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724595', 'tblTempVendorCDR_20' ) start [2025-03-20 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724595', 'tblTempVendorCDR_20' ) end [2025-03-20 18:12:21] Production.INFO: ProcessCDR(1,14724595,1,1,2) [2025-03-20 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724595', 'tblTempUsageDetail_20' ) start [2025-03-20 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724595', 'tblTempUsageDetail_20' ) end [2025-03-20 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:12:27] Production.INFO: ==22858== Releasing lock... [2025-03-20 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:12:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-20 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:13:05 [end_date_ymd] => 2025-03-20 18:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:13:18] Production.INFO: count ==5087 [2025-03-20 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:13:05 - End Time 2025-03-20 18:13:05 [2025-03-20 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724600', 'tblTempUsageDetail_20' ) start [2025-03-20 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724600', 'tblTempUsageDetail_20' ) end [2025-03-20 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724600', 'tblTempVendorCDR_20' ) start [2025-03-20 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724600', 'tblTempVendorCDR_20' ) end [2025-03-20 18:13:21] Production.INFO: ProcessCDR(1,14724600,1,1,2) [2025-03-20 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724600', 'tblTempUsageDetail_20' ) start [2025-03-20 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724600', 'tblTempUsageDetail_20' ) end [2025-03-20 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:13:26] Production.INFO: ==22936== Releasing lock... [2025-03-20 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:13:26] Production.INFO: 66 MB #Memory Used# [2025-03-20 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:14:06 [end_date_ymd] => 2025-03-20 18:14:06 [RateCDR] => 1 ) [2025-03-20 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:14:06' and `end` < '2025-03-20 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:14:19] Production.INFO: count ==5070 [2025-03-20 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:14:06 - End Time 2025-03-20 18:14:06 [2025-03-20 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724605', 'tblTempUsageDetail_20' ) start [2025-03-20 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724605', 'tblTempUsageDetail_20' ) end [2025-03-20 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724605', 'tblTempVendorCDR_20' ) start [2025-03-20 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724605', 'tblTempVendorCDR_20' ) end [2025-03-20 18:14:21] Production.INFO: ProcessCDR(1,14724605,1,1,2) [2025-03-20 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724605', 'tblTempUsageDetail_20' ) start [2025-03-20 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724605', 'tblTempUsageDetail_20' ) end [2025-03-20 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:14:26] Production.INFO: ==23073== Releasing lock... [2025-03-20 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:14:26] Production.INFO: 66 MB #Memory Used# [2025-03-20 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:15:05 [end_date_ymd] => 2025-03-20 18:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:15:18] Production.INFO: count ==5075 [2025-03-20 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:15:05 - End Time 2025-03-20 18:15:05 [2025-03-20 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724610', 'tblTempUsageDetail_20' ) start [2025-03-20 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724610', 'tblTempUsageDetail_20' ) end [2025-03-20 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724610', 'tblTempVendorCDR_20' ) start [2025-03-20 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724610', 'tblTempVendorCDR_20' ) end [2025-03-20 18:15:20] Production.INFO: ProcessCDR(1,14724610,1,1,2) [2025-03-20 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724610', 'tblTempUsageDetail_20' ) start [2025-03-20 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724610', 'tblTempUsageDetail_20' ) end [2025-03-20 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:15:25] Production.INFO: ==23154== Releasing lock... [2025-03-20 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:15:25] Production.INFO: 66 MB #Memory Used# [2025-03-20 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:16:05 [end_date_ymd] => 2025-03-20 18:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:16:18] Production.INFO: count ==5065 [2025-03-20 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:16:05 - End Time 2025-03-20 18:16:05 [2025-03-20 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724615', 'tblTempUsageDetail_20' ) start [2025-03-20 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724615', 'tblTempUsageDetail_20' ) end [2025-03-20 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724615', 'tblTempVendorCDR_20' ) start [2025-03-20 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724615', 'tblTempVendorCDR_20' ) end [2025-03-20 18:16:21] Production.INFO: ProcessCDR(1,14724615,1,1,2) [2025-03-20 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724615', 'tblTempUsageDetail_20' ) start [2025-03-20 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724615', 'tblTempUsageDetail_20' ) end [2025-03-20 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:16:25] Production.INFO: ==23247== Releasing lock... [2025-03-20 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:16:25] Production.INFO: 66 MB #Memory Used# [2025-03-20 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:17:05 [end_date_ymd] => 2025-03-20 18:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:17:18] Production.INFO: count ==5029 [2025-03-20 18:17:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:17:05 - End Time 2025-03-20 18:17:05 [2025-03-20 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724618', 'tblTempUsageDetail_20' ) start [2025-03-20 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724618', 'tblTempUsageDetail_20' ) end [2025-03-20 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724618', 'tblTempVendorCDR_20' ) start [2025-03-20 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724618', 'tblTempVendorCDR_20' ) end [2025-03-20 18:17:20] Production.INFO: ProcessCDR(1,14724618,1,1,2) [2025-03-20 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724618', 'tblTempUsageDetail_20' ) start [2025-03-20 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724618', 'tblTempUsageDetail_20' ) end [2025-03-20 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:17:26] Production.INFO: ==23332== Releasing lock... [2025-03-20 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:17:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-20 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:18:06 [end_date_ymd] => 2025-03-20 18:18:06 [RateCDR] => 1 ) [2025-03-20 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:18:06' and `end` < '2025-03-20 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:18:19] Production.INFO: count ==4984 [2025-03-20 18:18:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:18:06 - End Time 2025-03-20 18:18:06 [2025-03-20 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724625', 'tblTempUsageDetail_20' ) start [2025-03-20 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724625', 'tblTempUsageDetail_20' ) end [2025-03-20 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724625', 'tblTempVendorCDR_20' ) start [2025-03-20 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724625', 'tblTempVendorCDR_20' ) end [2025-03-20 18:18:21] Production.INFO: ProcessCDR(1,14724625,1,1,2) [2025-03-20 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724625', 'tblTempUsageDetail_20' ) start [2025-03-20 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724625', 'tblTempUsageDetail_20' ) end [2025-03-20 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:18:25] Production.INFO: ==23411== Releasing lock... [2025-03-20 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:18:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-20 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:19:05 [end_date_ymd] => 2025-03-20 18:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:19:18] Production.INFO: count ==4961 [2025-03-20 18:19:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:19:05 - End Time 2025-03-20 18:19:05 [2025-03-20 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724630', 'tblTempUsageDetail_20' ) start [2025-03-20 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724630', 'tblTempUsageDetail_20' ) end [2025-03-20 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724630', 'tblTempVendorCDR_20' ) start [2025-03-20 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724630', 'tblTempVendorCDR_20' ) end [2025-03-20 18:19:21] Production.INFO: ProcessCDR(1,14724630,1,1,2) [2025-03-20 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724630', 'tblTempUsageDetail_20' ) start [2025-03-20 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724630', 'tblTempUsageDetail_20' ) end [2025-03-20 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:19:26] Production.INFO: ==23493== Releasing lock... [2025-03-20 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:19:26] Production.INFO: 65 MB #Memory Used# [2025-03-20 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:20:07 [end_date_ymd] => 2025-03-20 18:20:07 [RateCDR] => 1 ) [2025-03-20 18:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:20:07' and `end` < '2025-03-20 18:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:20:20] Production.INFO: count ==4891 [2025-03-20 18:20:22] Production.ERROR: pbx CDR StartTime 2025-03-20 15:20:07 - End Time 2025-03-20 18:20:07 [2025-03-20 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724636', 'tblTempUsageDetail_20' ) start [2025-03-20 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724636', 'tblTempUsageDetail_20' ) end [2025-03-20 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724636', 'tblTempVendorCDR_20' ) start [2025-03-20 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724636', 'tblTempVendorCDR_20' ) end [2025-03-20 18:20:22] Production.INFO: ProcessCDR(1,14724636,1,1,2) [2025-03-20 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724636', 'tblTempUsageDetail_20' ) start [2025-03-20 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724636', 'tblTempUsageDetail_20' ) end [2025-03-20 18:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:20:27] Production.INFO: ==23581== Releasing lock... [2025-03-20 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:20:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-20 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:21:06 [end_date_ymd] => 2025-03-20 18:21:06 [RateCDR] => 1 ) [2025-03-20 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:21:06' and `end` < '2025-03-20 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:21:19] Production.INFO: count ==4784 [2025-03-20 18:21:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:21:06 - End Time 2025-03-20 18:21:06 [2025-03-20 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724641', 'tblTempUsageDetail_20' ) start [2025-03-20 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724641', 'tblTempUsageDetail_20' ) end [2025-03-20 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724641', 'tblTempVendorCDR_20' ) start [2025-03-20 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724641', 'tblTempVendorCDR_20' ) end [2025-03-20 18:21:21] Production.INFO: ProcessCDR(1,14724641,1,1,2) [2025-03-20 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724641', 'tblTempUsageDetail_20' ) start [2025-03-20 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724641', 'tblTempUsageDetail_20' ) end [2025-03-20 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:21:24] Production.INFO: ==23663== Releasing lock... [2025-03-20 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:21:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-20 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:22:06 [end_date_ymd] => 2025-03-20 18:22:06 [RateCDR] => 1 ) [2025-03-20 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:22:06' and `end` < '2025-03-20 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:22:19] Production.INFO: count ==4734 [2025-03-20 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:22:06 - End Time 2025-03-20 18:22:06 [2025-03-20 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724646', 'tblTempUsageDetail_20' ) start [2025-03-20 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724646', 'tblTempUsageDetail_20' ) end [2025-03-20 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724646', 'tblTempVendorCDR_20' ) start [2025-03-20 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724646', 'tblTempVendorCDR_20' ) end [2025-03-20 18:22:21] Production.INFO: ProcessCDR(1,14724646,1,1,2) [2025-03-20 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724646', 'tblTempUsageDetail_20' ) start [2025-03-20 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724646', 'tblTempUsageDetail_20' ) end [2025-03-20 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:22:26] Production.INFO: ==23753== Releasing lock... [2025-03-20 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:22:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-20 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:23:06 [end_date_ymd] => 2025-03-20 18:23:06 [RateCDR] => 1 ) [2025-03-20 18:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:23:06' and `end` < '2025-03-20 18:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:23:19] Production.INFO: count ==4727 [2025-03-20 18:23:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:23:06 - End Time 2025-03-20 18:23:06 [2025-03-20 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724651', 'tblTempUsageDetail_20' ) start [2025-03-20 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724651', 'tblTempUsageDetail_20' ) end [2025-03-20 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724651', 'tblTempVendorCDR_20' ) start [2025-03-20 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724651', 'tblTempVendorCDR_20' ) end [2025-03-20 18:23:21] Production.INFO: ProcessCDR(1,14724651,1,1,2) [2025-03-20 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724651', 'tblTempUsageDetail_20' ) start [2025-03-20 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724651', 'tblTempUsageDetail_20' ) end [2025-03-20 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:23:26] Production.INFO: ==23849== Releasing lock... [2025-03-20 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:23:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-20 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:24:06 [end_date_ymd] => 2025-03-20 18:24:06 [RateCDR] => 1 ) [2025-03-20 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:24:06' and `end` < '2025-03-20 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:24:19] Production.INFO: count ==4718 [2025-03-20 18:24:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:24:06 - End Time 2025-03-20 18:24:06 [2025-03-20 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724656', 'tblTempUsageDetail_20' ) start [2025-03-20 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724656', 'tblTempUsageDetail_20' ) end [2025-03-20 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724656', 'tblTempVendorCDR_20' ) start [2025-03-20 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724656', 'tblTempVendorCDR_20' ) end [2025-03-20 18:24:21] Production.INFO: ProcessCDR(1,14724656,1,1,2) [2025-03-20 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724656', 'tblTempUsageDetail_20' ) start [2025-03-20 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724656', 'tblTempUsageDetail_20' ) end [2025-03-20 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:24:26] Production.INFO: ==23928== Releasing lock... [2025-03-20 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:24:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-20 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:25:05 [end_date_ymd] => 2025-03-20 18:25:05 [RateCDR] => 1 ) [2025-03-20 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:25:05' and `end` < '2025-03-20 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:25:18] Production.INFO: count ==4702 [2025-03-20 18:25:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:25:05 - End Time 2025-03-20 18:25:05 [2025-03-20 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724661', 'tblTempUsageDetail_20' ) start [2025-03-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724661', 'tblTempUsageDetail_20' ) end [2025-03-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724661', 'tblTempVendorCDR_20' ) start [2025-03-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724661', 'tblTempVendorCDR_20' ) end [2025-03-20 18:25:20] Production.INFO: ProcessCDR(1,14724661,1,1,2) [2025-03-20 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724661', 'tblTempUsageDetail_20' ) start [2025-03-20 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724661', 'tblTempUsageDetail_20' ) end [2025-03-20 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:25:24] Production.INFO: ==24013== Releasing lock... [2025-03-20 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:25:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-20 18:26:17] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:26:17 [end_date_ymd] => 2025-03-20 18:26:17 [RateCDR] => 1 ) [2025-03-20 18:26:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:26:17' and `end` < '2025-03-20 18:26:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:26:30] Production.INFO: count ==4691 [2025-03-20 18:27:30] Production.ERROR: pbx CDR StartTime 2025-03-20 15:26:17 - End Time 2025-03-20 18:26:17 [2025-03-20 18:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724666', 'tblTempUsageDetail_20' ) start [2025-03-20 18:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724666', 'tblTempUsageDetail_20' ) end [2025-03-20 18:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724666', 'tblTempVendorCDR_20' ) start [2025-03-20 18:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724666', 'tblTempVendorCDR_20' ) end [2025-03-20 18:27:38] Production.INFO: ProcessCDR(1,14724666,1,1,2) [2025-03-20 18:27:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:27:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:27:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:28:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:28:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724666', 'tblTempUsageDetail_20' ) start [2025-03-20 18:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724666', 'tblTempUsageDetail_20' ) end [2025-03-20 18:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:28:32] Production.INFO: ==24103== Releasing lock... [2025-03-20 18:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:28:32] Production.INFO: 63 MB #Memory Used# [2025-03-20 18:29:17] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:29:17 [end_date_ymd] => 2025-03-20 18:29:17 [RateCDR] => 1 ) [2025-03-20 18:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:29:17' and `end` < '2025-03-20 18:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:29:30] Production.INFO: count ==4651 [2025-03-20 18:30:15] Production.ERROR: pbx CDR StartTime 2025-03-20 15:29:17 - End Time 2025-03-20 18:29:17 [2025-03-20 18:30:15] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724677', 'tblTempUsageDetail_20' ) start [2025-03-20 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724677', 'tblTempUsageDetail_20' ) end [2025-03-20 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724677', 'tblTempVendorCDR_20' ) start [2025-03-20 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724677', 'tblTempVendorCDR_20' ) end [2025-03-20 18:30:23] Production.INFO: ProcessCDR(1,14724677,1,1,2) [2025-03-20 18:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:30:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:30:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724677', 'tblTempUsageDetail_20' ) start [2025-03-20 18:30:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724677', 'tblTempUsageDetail_20' ) end [2025-03-20 18:30:55] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:30:55] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:30:59] Production.INFO: ==24396== Releasing lock... [2025-03-20 18:30:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:30:59] Production.INFO: 62.75 MB #Memory Used# [2025-03-20 18:31:10] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:31:10 [end_date_ymd] => 2025-03-20 18:31:10 [RateCDR] => 1 ) [2025-03-20 18:31:10] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:31:10' and `end` < '2025-03-20 18:31:10' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:31:23] Production.INFO: count ==4562 [2025-03-20 18:31:45] Production.ERROR: pbx CDR StartTime 2025-03-20 15:31:10 - End Time 2025-03-20 18:31:10 [2025-03-20 18:31:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:31:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724686', 'tblTempUsageDetail_20' ) start [2025-03-20 18:31:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724686', 'tblTempUsageDetail_20' ) end [2025-03-20 18:31:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724686', 'tblTempVendorCDR_20' ) start [2025-03-20 18:31:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724686', 'tblTempVendorCDR_20' ) end [2025-03-20 18:31:46] Production.INFO: ProcessCDR(1,14724686,1,1,2) [2025-03-20 18:31:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:31:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:31:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:31:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:31:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724686', 'tblTempUsageDetail_20' ) start [2025-03-20 18:31:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724686', 'tblTempUsageDetail_20' ) end [2025-03-20 18:31:51] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:31:51] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:31:51] Production.INFO: ==24576== Releasing lock... [2025-03-20 18:31:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:31:51] Production.INFO: 62.25 MB #Memory Used# [2025-03-20 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:32:05 [end_date_ymd] => 2025-03-20 18:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:32:18] Production.INFO: count ==4560 [2025-03-20 18:32:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:32:05 - End Time 2025-03-20 18:32:05 [2025-03-20 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724691', 'tblTempUsageDetail_20' ) start [2025-03-20 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724691', 'tblTempUsageDetail_20' ) end [2025-03-20 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724691', 'tblTempVendorCDR_20' ) start [2025-03-20 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724691', 'tblTempVendorCDR_20' ) end [2025-03-20 18:32:20] Production.INFO: ProcessCDR(1,14724691,1,1,2) [2025-03-20 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724691', 'tblTempUsageDetail_20' ) start [2025-03-20 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724691', 'tblTempUsageDetail_20' ) end [2025-03-20 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:32:25] Production.INFO: ==24672== Releasing lock... [2025-03-20 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:32:25] Production.INFO: 62 MB #Memory Used# [2025-03-20 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:33:06 [end_date_ymd] => 2025-03-20 18:33:06 [RateCDR] => 1 ) [2025-03-20 18:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:33:06' and `end` < '2025-03-20 18:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:33:19] Production.INFO: count ==4535 [2025-03-20 18:33:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:33:06 - End Time 2025-03-20 18:33:06 [2025-03-20 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724696', 'tblTempUsageDetail_20' ) start [2025-03-20 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724696', 'tblTempUsageDetail_20' ) end [2025-03-20 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724696', 'tblTempVendorCDR_20' ) start [2025-03-20 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724696', 'tblTempVendorCDR_20' ) end [2025-03-20 18:33:20] Production.INFO: ProcessCDR(1,14724696,1,1,2) [2025-03-20 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724696', 'tblTempUsageDetail_20' ) start [2025-03-20 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724696', 'tblTempUsageDetail_20' ) end [2025-03-20 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:33:25] Production.INFO: ==24776== Releasing lock... [2025-03-20 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:33:25] Production.INFO: 62 MB #Memory Used# [2025-03-20 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:34:05 [end_date_ymd] => 2025-03-20 18:34:05 [RateCDR] => 1 ) [2025-03-20 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:34:05' and `end` < '2025-03-20 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:34:18] Production.INFO: count ==4523 [2025-03-20 18:34:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:34:05 - End Time 2025-03-20 18:34:05 [2025-03-20 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724701', 'tblTempUsageDetail_20' ) start [2025-03-20 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724701', 'tblTempUsageDetail_20' ) end [2025-03-20 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724701', 'tblTempVendorCDR_20' ) start [2025-03-20 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724701', 'tblTempVendorCDR_20' ) end [2025-03-20 18:34:20] Production.INFO: ProcessCDR(1,14724701,1,1,2) [2025-03-20 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724701', 'tblTempUsageDetail_20' ) start [2025-03-20 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724701', 'tblTempUsageDetail_20' ) end [2025-03-20 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:34:25] Production.INFO: ==24872== Releasing lock... [2025-03-20 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:34:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-20 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:35:05 [end_date_ymd] => 2025-03-20 18:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:35:18] Production.INFO: count ==4508 [2025-03-20 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-20 15:35:05 - End Time 2025-03-20 18:35:05 [2025-03-20 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724706', 'tblTempUsageDetail_20' ) start [2025-03-20 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724706', 'tblTempUsageDetail_20' ) end [2025-03-20 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724706', 'tblTempVendorCDR_20' ) start [2025-03-20 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724706', 'tblTempVendorCDR_20' ) end [2025-03-20 18:35:20] Production.INFO: ProcessCDR(1,14724706,1,1,2) [2025-03-20 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724706', 'tblTempUsageDetail_20' ) start [2025-03-20 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724706', 'tblTempUsageDetail_20' ) end [2025-03-20 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:35:23] Production.INFO: ==24960== Releasing lock... [2025-03-20 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:35:23] Production.INFO: 61.75 MB #Memory Used# [2025-03-20 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:36:05 [end_date_ymd] => 2025-03-20 18:36:05 [RateCDR] => 1 ) [2025-03-20 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:36:05' and `end` < '2025-03-20 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:36:18] Production.INFO: count ==4481 [2025-03-20 18:36:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:36:05 - End Time 2025-03-20 18:36:05 [2025-03-20 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724711', 'tblTempUsageDetail_20' ) start [2025-03-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724711', 'tblTempUsageDetail_20' ) end [2025-03-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724711', 'tblTempVendorCDR_20' ) start [2025-03-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724711', 'tblTempVendorCDR_20' ) end [2025-03-20 18:36:20] Production.INFO: ProcessCDR(1,14724711,1,1,2) [2025-03-20 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724711', 'tblTempUsageDetail_20' ) start [2025-03-20 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724711', 'tblTempUsageDetail_20' ) end [2025-03-20 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:36:24] Production.INFO: ==25051== Releasing lock... [2025-03-20 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:36:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-20 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:37:05 [end_date_ymd] => 2025-03-20 18:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:37:18] Production.INFO: count ==4476 [2025-03-20 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:37:05 - End Time 2025-03-20 18:37:05 [2025-03-20 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724716', 'tblTempUsageDetail_20' ) start [2025-03-20 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724716', 'tblTempUsageDetail_20' ) end [2025-03-20 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724716', 'tblTempVendorCDR_20' ) start [2025-03-20 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724716', 'tblTempVendorCDR_20' ) end [2025-03-20 18:37:20] Production.INFO: ProcessCDR(1,14724716,1,1,2) [2025-03-20 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724716', 'tblTempUsageDetail_20' ) start [2025-03-20 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724716', 'tblTempUsageDetail_20' ) end [2025-03-20 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:37:25] Production.INFO: ==25136== Releasing lock... [2025-03-20 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:37:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-20 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:38:05 [end_date_ymd] => 2025-03-20 18:38:05 [RateCDR] => 1 ) [2025-03-20 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:38:05' and `end` < '2025-03-20 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:38:18] Production.INFO: count ==4466 [2025-03-20 18:38:19] Production.ERROR: pbx CDR StartTime 2025-03-20 15:38:05 - End Time 2025-03-20 18:38:05 [2025-03-20 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724721', 'tblTempUsageDetail_20' ) start [2025-03-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724721', 'tblTempUsageDetail_20' ) end [2025-03-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724721', 'tblTempVendorCDR_20' ) start [2025-03-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724721', 'tblTempVendorCDR_20' ) end [2025-03-20 18:38:19] Production.INFO: ProcessCDR(1,14724721,1,1,2) [2025-03-20 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724721', 'tblTempUsageDetail_20' ) start [2025-03-20 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724721', 'tblTempUsageDetail_20' ) end [2025-03-20 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:38:25] Production.INFO: ==25228== Releasing lock... [2025-03-20 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:38:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-20 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:39:05 [end_date_ymd] => 2025-03-20 18:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:39:18] Production.INFO: count ==4458 [2025-03-20 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:39:05 - End Time 2025-03-20 18:39:05 [2025-03-20 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724726', 'tblTempUsageDetail_20' ) start [2025-03-20 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724726', 'tblTempUsageDetail_20' ) end [2025-03-20 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724726', 'tblTempVendorCDR_20' ) start [2025-03-20 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724726', 'tblTempVendorCDR_20' ) end [2025-03-20 18:39:20] Production.INFO: ProcessCDR(1,14724726,1,1,2) [2025-03-20 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724726', 'tblTempUsageDetail_20' ) start [2025-03-20 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724726', 'tblTempUsageDetail_20' ) end [2025-03-20 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:39:25] Production.INFO: ==25319== Releasing lock... [2025-03-20 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:39:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-20 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:40:06 [end_date_ymd] => 2025-03-20 18:40:06 [RateCDR] => 1 ) [2025-03-20 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:40:06' and `end` < '2025-03-20 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:40:19] Production.INFO: count ==4448 [2025-03-20 18:40:21] Production.ERROR: pbx CDR StartTime 2025-03-20 15:40:06 - End Time 2025-03-20 18:40:06 [2025-03-20 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724731', 'tblTempUsageDetail_20' ) start [2025-03-20 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724731', 'tblTempUsageDetail_20' ) end [2025-03-20 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724731', 'tblTempVendorCDR_20' ) start [2025-03-20 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724731', 'tblTempVendorCDR_20' ) end [2025-03-20 18:40:21] Production.INFO: ProcessCDR(1,14724731,1,1,2) [2025-03-20 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724731', 'tblTempUsageDetail_20' ) start [2025-03-20 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724731', 'tblTempUsageDetail_20' ) end [2025-03-20 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:40:25] Production.INFO: ==25412== Releasing lock... [2025-03-20 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:40:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-20 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:41:05 [end_date_ymd] => 2025-03-20 18:41:05 [RateCDR] => 1 ) [2025-03-20 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:41:05' and `end` < '2025-03-20 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:41:18] Production.INFO: count ==4375 [2025-03-20 18:41:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:41:05 - End Time 2025-03-20 18:41:05 [2025-03-20 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724737', 'tblTempUsageDetail_20' ) start [2025-03-20 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724737', 'tblTempUsageDetail_20' ) end [2025-03-20 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724737', 'tblTempVendorCDR_20' ) start [2025-03-20 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724737', 'tblTempVendorCDR_20' ) end [2025-03-20 18:41:20] Production.INFO: ProcessCDR(1,14724737,1,1,2) [2025-03-20 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724737', 'tblTempUsageDetail_20' ) start [2025-03-20 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724737', 'tblTempUsageDetail_20' ) end [2025-03-20 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:41:23] Production.INFO: ==25509== Releasing lock... [2025-03-20 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:41:23] Production.INFO: 60.75 MB #Memory Used# [2025-03-20 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:42:05 [end_date_ymd] => 2025-03-20 18:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:42:18] Production.INFO: count ==4355 [2025-03-20 18:42:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:42:05 - End Time 2025-03-20 18:42:05 [2025-03-20 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724742', 'tblTempUsageDetail_20' ) start [2025-03-20 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724742', 'tblTempUsageDetail_20' ) end [2025-03-20 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724742', 'tblTempVendorCDR_20' ) start [2025-03-20 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724742', 'tblTempVendorCDR_20' ) end [2025-03-20 18:42:20] Production.INFO: ProcessCDR(1,14724742,1,1,2) [2025-03-20 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724742', 'tblTempUsageDetail_20' ) start [2025-03-20 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724742', 'tblTempUsageDetail_20' ) end [2025-03-20 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:42:23] Production.INFO: ==25603== Releasing lock... [2025-03-20 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:42:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-20 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:43:05 [end_date_ymd] => 2025-03-20 18:43:05 [RateCDR] => 1 ) [2025-03-20 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:43:05' and `end` < '2025-03-20 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:43:18] Production.INFO: count ==4343 [2025-03-20 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:43:05 - End Time 2025-03-20 18:43:05 [2025-03-20 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724747', 'tblTempUsageDetail_20' ) start [2025-03-20 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724747', 'tblTempUsageDetail_20' ) end [2025-03-20 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724747', 'tblTempVendorCDR_20' ) start [2025-03-20 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724747', 'tblTempVendorCDR_20' ) end [2025-03-20 18:43:20] Production.INFO: ProcessCDR(1,14724747,1,1,2) [2025-03-20 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724747', 'tblTempUsageDetail_20' ) start [2025-03-20 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724747', 'tblTempUsageDetail_20' ) end [2025-03-20 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:43:23] Production.INFO: ==25700== Releasing lock... [2025-03-20 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:43:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-20 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:44:06 [end_date_ymd] => 2025-03-20 18:44:06 [RateCDR] => 1 ) [2025-03-20 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:44:06' and `end` < '2025-03-20 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:44:19] Production.INFO: count ==4344 [2025-03-20 18:44:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:44:06 - End Time 2025-03-20 18:44:06 [2025-03-20 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724752', 'tblTempUsageDetail_20' ) start [2025-03-20 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724752', 'tblTempUsageDetail_20' ) end [2025-03-20 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724752', 'tblTempVendorCDR_20' ) start [2025-03-20 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724752', 'tblTempVendorCDR_20' ) end [2025-03-20 18:44:21] Production.INFO: ProcessCDR(1,14724752,1,1,2) [2025-03-20 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724752', 'tblTempUsageDetail_20' ) start [2025-03-20 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724752', 'tblTempUsageDetail_20' ) end [2025-03-20 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:44:26] Production.INFO: ==25836== Releasing lock... [2025-03-20 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:44:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-20 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:45:05 [end_date_ymd] => 2025-03-20 18:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:45:18] Production.INFO: count ==4341 [2025-03-20 18:45:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:45:05 - End Time 2025-03-20 18:45:05 [2025-03-20 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724757', 'tblTempUsageDetail_20' ) start [2025-03-20 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724757', 'tblTempUsageDetail_20' ) end [2025-03-20 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724757', 'tblTempVendorCDR_20' ) start [2025-03-20 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724757', 'tblTempVendorCDR_20' ) end [2025-03-20 18:45:20] Production.INFO: ProcessCDR(1,14724757,1,1,2) [2025-03-20 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724757', 'tblTempUsageDetail_20' ) start [2025-03-20 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724757', 'tblTempUsageDetail_20' ) end [2025-03-20 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:45:25] Production.INFO: ==25926== Releasing lock... [2025-03-20 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:45:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-20 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:46:05 [end_date_ymd] => 2025-03-20 18:46:05 [RateCDR] => 1 ) [2025-03-20 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:46:05' and `end` < '2025-03-20 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:46:18] Production.INFO: count ==4347 [2025-03-20 18:46:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:46:05 - End Time 2025-03-20 18:46:05 [2025-03-20 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724762', 'tblTempUsageDetail_20' ) start [2025-03-20 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724762', 'tblTempUsageDetail_20' ) end [2025-03-20 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724762', 'tblTempVendorCDR_20' ) start [2025-03-20 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724762', 'tblTempVendorCDR_20' ) end [2025-03-20 18:46:20] Production.INFO: ProcessCDR(1,14724762,1,1,2) [2025-03-20 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724762', 'tblTempUsageDetail_20' ) start [2025-03-20 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724762', 'tblTempUsageDetail_20' ) end [2025-03-20 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:46:24] Production.INFO: ==26018== Releasing lock... [2025-03-20 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:46:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-20 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:47:05 [end_date_ymd] => 2025-03-20 18:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:47:18] Production.INFO: count ==4334 [2025-03-20 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-20 15:47:05 - End Time 2025-03-20 18:47:05 [2025-03-20 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724767', 'tblTempUsageDetail_20' ) start [2025-03-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724767', 'tblTempUsageDetail_20' ) end [2025-03-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724767', 'tblTempVendorCDR_20' ) start [2025-03-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724767', 'tblTempVendorCDR_20' ) end [2025-03-20 18:47:19] Production.INFO: ProcessCDR(1,14724767,1,1,2) [2025-03-20 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724767', 'tblTempUsageDetail_20' ) start [2025-03-20 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724767', 'tblTempUsageDetail_20' ) end [2025-03-20 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:47:24] Production.INFO: ==26112== Releasing lock... [2025-03-20 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:47:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-20 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:48:05 [end_date_ymd] => 2025-03-20 18:48:05 [RateCDR] => 1 ) [2025-03-20 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:48:05' and `end` < '2025-03-20 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:48:18] Production.INFO: count ==4326 [2025-03-20 18:48:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:48:05 - End Time 2025-03-20 18:48:05 [2025-03-20 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724772', 'tblTempUsageDetail_20' ) start [2025-03-20 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724772', 'tblTempUsageDetail_20' ) end [2025-03-20 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724772', 'tblTempVendorCDR_20' ) start [2025-03-20 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724772', 'tblTempVendorCDR_20' ) end [2025-03-20 18:48:20] Production.INFO: ProcessCDR(1,14724772,1,1,2) [2025-03-20 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724772', 'tblTempUsageDetail_20' ) start [2025-03-20 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724772', 'tblTempUsageDetail_20' ) end [2025-03-20 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:48:25] Production.INFO: ==26198== Releasing lock... [2025-03-20 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:48:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-20 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:49:04 [end_date_ymd] => 2025-03-20 18:49:04 [RateCDR] => 1 ) [2025-03-20 18:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:49:04' and `end` < '2025-03-20 18:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:49:17] Production.INFO: count ==4306 [2025-03-20 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-20 15:49:04 - End Time 2025-03-20 18:49:04 [2025-03-20 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724777', 'tblTempUsageDetail_20' ) start [2025-03-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724777', 'tblTempUsageDetail_20' ) end [2025-03-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724777', 'tblTempVendorCDR_20' ) start [2025-03-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724777', 'tblTempVendorCDR_20' ) end [2025-03-20 18:49:19] Production.INFO: ProcessCDR(1,14724777,1,1,2) [2025-03-20 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724777', 'tblTempUsageDetail_20' ) start [2025-03-20 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724777', 'tblTempUsageDetail_20' ) end [2025-03-20 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:49:24] Production.INFO: ==26294== Releasing lock... [2025-03-20 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:49:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-20 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:50:06 [end_date_ymd] => 2025-03-20 18:50:06 [RateCDR] => 1 ) [2025-03-20 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:50:06' and `end` < '2025-03-20 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:50:19] Production.INFO: count ==4276 [2025-03-20 18:50:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:50:06 - End Time 2025-03-20 18:50:06 [2025-03-20 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724783', 'tblTempUsageDetail_20' ) start [2025-03-20 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724783', 'tblTempUsageDetail_20' ) end [2025-03-20 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724783', 'tblTempVendorCDR_20' ) start [2025-03-20 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724783', 'tblTempVendorCDR_20' ) end [2025-03-20 18:50:21] Production.INFO: ProcessCDR(1,14724783,1,1,2) [2025-03-20 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724783', 'tblTempUsageDetail_20' ) start [2025-03-20 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724783', 'tblTempUsageDetail_20' ) end [2025-03-20 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:50:26] Production.INFO: ==26387== Releasing lock... [2025-03-20 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:50:26] Production.INFO: 60 MB #Memory Used# [2025-03-20 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:51:05 [end_date_ymd] => 2025-03-20 18:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:51:17] Production.INFO: count ==4164 [2025-03-20 18:51:19] Production.ERROR: pbx CDR StartTime 2025-03-20 15:51:05 - End Time 2025-03-20 18:51:05 [2025-03-20 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724788', 'tblTempUsageDetail_20' ) start [2025-03-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724788', 'tblTempUsageDetail_20' ) end [2025-03-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724788', 'tblTempVendorCDR_20' ) start [2025-03-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724788', 'tblTempVendorCDR_20' ) end [2025-03-20 18:51:19] Production.INFO: ProcessCDR(1,14724788,1,1,2) [2025-03-20 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724788', 'tblTempUsageDetail_20' ) start [2025-03-20 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724788', 'tblTempUsageDetail_20' ) end [2025-03-20 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:51:24] Production.INFO: ==26481== Releasing lock... [2025-03-20 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:51:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-20 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:52:06 [end_date_ymd] => 2025-03-20 18:52:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:52:06' and `end` < '2025-03-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 ,'') [2025-03-20 18:52:19] Production.INFO: count ==4139 [2025-03-20 18:52:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:52:06 - End Time 2025-03-20 18:52:06 [2025-03-20 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724793', 'tblTempUsageDetail_20' ) start [2025-03-20 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724793', 'tblTempUsageDetail_20' ) end [2025-03-20 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724793', 'tblTempVendorCDR_20' ) start [2025-03-20 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724793', 'tblTempVendorCDR_20' ) end [2025-03-20 18:52:21] Production.INFO: ProcessCDR(1,14724793,1,1,2) [2025-03-20 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724793', 'tblTempUsageDetail_20' ) start [2025-03-20 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724793', 'tblTempUsageDetail_20' ) end [2025-03-20 18:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:52:26] Production.INFO: ==26570== Releasing lock... [2025-03-20 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:52:26] Production.INFO: 59 MB #Memory Used# [2025-03-20 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:53:05 [end_date_ymd] => 2025-03-20 18:53:05 [RateCDR] => 1 ) [2025-03-20 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:53:05' and `end` < '2025-03-20 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:53:18] Production.INFO: count ==4109 [2025-03-20 18:53:19] Production.ERROR: pbx CDR StartTime 2025-03-20 15:53:05 - End Time 2025-03-20 18:53:05 [2025-03-20 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724798', 'tblTempUsageDetail_20' ) start [2025-03-20 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724798', 'tblTempUsageDetail_20' ) end [2025-03-20 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724798', 'tblTempVendorCDR_20' ) start [2025-03-20 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724798', 'tblTempVendorCDR_20' ) end [2025-03-20 18:53:20] Production.INFO: ProcessCDR(1,14724798,1,1,2) [2025-03-20 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724798', 'tblTempUsageDetail_20' ) start [2025-03-20 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724798', 'tblTempUsageDetail_20' ) end [2025-03-20 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:53:25] Production.INFO: ==26658== Releasing lock... [2025-03-20 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:53:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-20 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:54:05 [end_date_ymd] => 2025-03-20 18:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:54:18] Production.INFO: count ==4093 [2025-03-20 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:54:05 - End Time 2025-03-20 18:54:05 [2025-03-20 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724803', 'tblTempUsageDetail_20' ) start [2025-03-20 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724803', 'tblTempUsageDetail_20' ) end [2025-03-20 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724803', 'tblTempVendorCDR_20' ) start [2025-03-20 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724803', 'tblTempVendorCDR_20' ) end [2025-03-20 18:54:20] Production.INFO: ProcessCDR(1,14724803,1,1,2) [2025-03-20 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724803', 'tblTempUsageDetail_20' ) start [2025-03-20 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724803', 'tblTempUsageDetail_20' ) end [2025-03-20 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:54:23] Production.INFO: ==26742== Releasing lock... [2025-03-20 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:54:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-20 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:55:05 [end_date_ymd] => 2025-03-20 18:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:55:18] Production.INFO: count ==4091 [2025-03-20 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:55:05 - End Time 2025-03-20 18:55:05 [2025-03-20 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724808', 'tblTempUsageDetail_20' ) start [2025-03-20 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724808', 'tblTempUsageDetail_20' ) end [2025-03-20 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724808', 'tblTempVendorCDR_20' ) start [2025-03-20 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724808', 'tblTempVendorCDR_20' ) end [2025-03-20 18:55:20] Production.INFO: ProcessCDR(1,14724808,1,1,2) [2025-03-20 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724808', 'tblTempUsageDetail_20' ) start [2025-03-20 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724808', 'tblTempUsageDetail_20' ) end [2025-03-20 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:55:24] Production.INFO: ==26840== Releasing lock... [2025-03-20 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:55:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-20 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:56:05 [end_date_ymd] => 2025-03-20 18:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:56:18] Production.INFO: count ==4076 [2025-03-20 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-20 15:56:05 - End Time 2025-03-20 18:56:05 [2025-03-20 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724813', 'tblTempUsageDetail_20' ) start [2025-03-20 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724813', 'tblTempUsageDetail_20' ) end [2025-03-20 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724813', 'tblTempVendorCDR_20' ) start [2025-03-20 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724813', 'tblTempVendorCDR_20' ) end [2025-03-20 18:56:20] Production.INFO: ProcessCDR(1,14724813,1,1,2) [2025-03-20 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724813', 'tblTempUsageDetail_20' ) start [2025-03-20 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724813', 'tblTempUsageDetail_20' ) end [2025-03-20 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:56:24] Production.INFO: ==26927== Releasing lock... [2025-03-20 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:56:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-20 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:57:05 [end_date_ymd] => 2025-03-20 18:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:57:18] Production.INFO: count ==4023 [2025-03-20 18:57:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:57:05 - End Time 2025-03-20 18:57:05 [2025-03-20 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724818', 'tblTempUsageDetail_20' ) start [2025-03-20 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724818', 'tblTempUsageDetail_20' ) end [2025-03-20 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724818', 'tblTempVendorCDR_20' ) start [2025-03-20 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724818', 'tblTempVendorCDR_20' ) end [2025-03-20 18:57:20] Production.INFO: ProcessCDR(1,14724818,1,1,2) [2025-03-20 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724818', 'tblTempUsageDetail_20' ) start [2025-03-20 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724818', 'tblTempUsageDetail_20' ) end [2025-03-20 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:57:23] Production.INFO: ==27017== Releasing lock... [2025-03-20 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:57:23] Production.INFO: 58 MB #Memory Used# [2025-03-20 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:58:05 [end_date_ymd] => 2025-03-20 18:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 15:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 18:58:18] Production.INFO: count ==4002 [2025-03-20 18:58:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:58:05 - End Time 2025-03-20 18:58:05 [2025-03-20 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724823', 'tblTempUsageDetail_20' ) start [2025-03-20 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724823', 'tblTempUsageDetail_20' ) end [2025-03-20 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724823', 'tblTempVendorCDR_20' ) start [2025-03-20 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724823', 'tblTempVendorCDR_20' ) end [2025-03-20 18:58:20] Production.INFO: ProcessCDR(1,14724823,1,1,2) [2025-03-20 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724823', 'tblTempUsageDetail_20' ) start [2025-03-20 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724823', 'tblTempUsageDetail_20' ) end [2025-03-20 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:58:25] Production.INFO: ==27103== Releasing lock... [2025-03-20 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:58:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-20 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 15:59:05 [end_date_ymd] => 2025-03-20 18:59:05 [RateCDR] => 1 ) [2025-03-20 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 15:59:05' and `end` < '2025-03-20 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 18:59:18] Production.INFO: count ==3998 [2025-03-20 18:59:20] Production.ERROR: pbx CDR StartTime 2025-03-20 15:59:05 - End Time 2025-03-20 18:59:05 [2025-03-20 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724828', 'tblTempUsageDetail_20' ) start [2025-03-20 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724828', 'tblTempUsageDetail_20' ) end [2025-03-20 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724828', 'tblTempVendorCDR_20' ) start [2025-03-20 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724828', 'tblTempVendorCDR_20' ) end [2025-03-20 18:59:20] Production.INFO: ProcessCDR(1,14724828,1,1,2) [2025-03-20 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724828', 'tblTempUsageDetail_20' ) start [2025-03-20 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724828', 'tblTempUsageDetail_20' ) end [2025-03-20 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 18:59:25] Production.INFO: ==27193== Releasing lock... [2025-03-20 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 18:59:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-20 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:00:06 [end_date_ymd] => 2025-03-20 19:00:06 [RateCDR] => 1 ) [2025-03-20 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:00:06' and `end` < '2025-03-20 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:00:18] Production.INFO: count ==3991 [2025-03-20 19:00:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:00:06 - End Time 2025-03-20 19:00:06 [2025-03-20 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724834', 'tblTempUsageDetail_20' ) start [2025-03-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724834', 'tblTempUsageDetail_20' ) end [2025-03-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724834', 'tblTempVendorCDR_20' ) start [2025-03-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724834', 'tblTempVendorCDR_20' ) end [2025-03-20 19:00:20] Production.INFO: ProcessCDR(1,14724834,1,1,2) [2025-03-20 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724834', 'tblTempUsageDetail_20' ) start [2025-03-20 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724834', 'tblTempUsageDetail_20' ) end [2025-03-20 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:00:25] Production.INFO: ==27325== Releasing lock... [2025-03-20 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:00:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-20 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:01:06 [end_date_ymd] => 2025-03-20 19:01:06 [RateCDR] => 1 ) [2025-03-20 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:01:06' and `end` < '2025-03-20 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:01:18] Production.INFO: count ==3910 [2025-03-20 19:01:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:01:06 - End Time 2025-03-20 19:01:06 [2025-03-20 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724839', 'tblTempUsageDetail_20' ) start [2025-03-20 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724839', 'tblTempUsageDetail_20' ) end [2025-03-20 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724839', 'tblTempVendorCDR_20' ) start [2025-03-20 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724839', 'tblTempVendorCDR_20' ) end [2025-03-20 19:01:20] Production.INFO: ProcessCDR(1,14724839,1,1,2) [2025-03-20 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724839', 'tblTempUsageDetail_20' ) start [2025-03-20 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724839', 'tblTempUsageDetail_20' ) end [2025-03-20 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:01:25] Production.INFO: ==27446== Releasing lock... [2025-03-20 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:01:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-20 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:02:05 [end_date_ymd] => 2025-03-20 19:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:02:18] Production.INFO: count ==3900 [2025-03-20 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:02:05 - End Time 2025-03-20 19:02:05 [2025-03-20 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724844', 'tblTempUsageDetail_20' ) start [2025-03-20 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724844', 'tblTempUsageDetail_20' ) end [2025-03-20 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724844', 'tblTempVendorCDR_20' ) start [2025-03-20 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724844', 'tblTempVendorCDR_20' ) end [2025-03-20 19:02:20] Production.INFO: ProcessCDR(1,14724844,1,1,2) [2025-03-20 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724844', 'tblTempUsageDetail_20' ) start [2025-03-20 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724844', 'tblTempUsageDetail_20' ) end [2025-03-20 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:02:23] Production.INFO: ==27587== Releasing lock... [2025-03-20 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:02:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-20 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:03:05 [end_date_ymd] => 2025-03-20 19:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:03:18] Production.INFO: count ==3877 [2025-03-20 19:03:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:03:05 - End Time 2025-03-20 19:03:05 [2025-03-20 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724849', 'tblTempUsageDetail_20' ) start [2025-03-20 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724849', 'tblTempUsageDetail_20' ) end [2025-03-20 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724849', 'tblTempVendorCDR_20' ) start [2025-03-20 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724849', 'tblTempVendorCDR_20' ) end [2025-03-20 19:03:20] Production.INFO: ProcessCDR(1,14724849,1,1,2) [2025-03-20 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724849', 'tblTempUsageDetail_20' ) start [2025-03-20 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724849', 'tblTempUsageDetail_20' ) end [2025-03-20 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:03:23] Production.INFO: ==27668== Releasing lock... [2025-03-20 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:03:23] Production.INFO: 57 MB #Memory Used# [2025-03-20 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:04:05 [end_date_ymd] => 2025-03-20 19:04:05 [RateCDR] => 1 ) [2025-03-20 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:04:05' and `end` < '2025-03-20 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:04:18] Production.INFO: count ==3862 [2025-03-20 19:04:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:04:05 - End Time 2025-03-20 19:04:05 [2025-03-20 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724854', 'tblTempUsageDetail_20' ) start [2025-03-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724854', 'tblTempUsageDetail_20' ) end [2025-03-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724854', 'tblTempVendorCDR_20' ) start [2025-03-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724854', 'tblTempVendorCDR_20' ) end [2025-03-20 19:04:19] Production.INFO: ProcessCDR(1,14724854,1,1,2) [2025-03-20 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724854', 'tblTempUsageDetail_20' ) start [2025-03-20 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724854', 'tblTempUsageDetail_20' ) end [2025-03-20 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:04:22] Production.INFO: ==27751== Releasing lock... [2025-03-20 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:04:22] Production.INFO: 56.75 MB #Memory Used# [2025-03-20 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:05:05 [end_date_ymd] => 2025-03-20 19:05:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:05:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:05:18] Production.INFO: count ==3847 [2025-03-20 19:05:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:05:05 - End Time 2025-03-20 19:05:05 [2025-03-20 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724859', 'tblTempUsageDetail_20' ) start [2025-03-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724859', 'tblTempUsageDetail_20' ) end [2025-03-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724859', 'tblTempVendorCDR_20' ) start [2025-03-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724859', 'tblTempVendorCDR_20' ) end [2025-03-20 19:05:19] Production.INFO: ProcessCDR(1,14724859,1,1,2) [2025-03-20 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724859', 'tblTempUsageDetail_20' ) start [2025-03-20 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724859', 'tblTempUsageDetail_20' ) end [2025-03-20 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:05:24] Production.INFO: ==27919== Releasing lock... [2025-03-20 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:05:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-20 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:06:05 [end_date_ymd] => 2025-03-20 19:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:06:05' and `end` < '2025-03-20 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:06:18] Production.INFO: count ==3811 [2025-03-20 19:06:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:06:05 - End Time 2025-03-20 19:06:05 [2025-03-20 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724864', 'tblTempUsageDetail_20' ) start [2025-03-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724864', 'tblTempUsageDetail_20' ) end [2025-03-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724864', 'tblTempVendorCDR_20' ) start [2025-03-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724864', 'tblTempVendorCDR_20' ) end [2025-03-20 19:06:19] Production.INFO: ProcessCDR(1,14724864,1,1,2) [2025-03-20 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724864', 'tblTempUsageDetail_20' ) start [2025-03-20 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724864', 'tblTempUsageDetail_20' ) end [2025-03-20 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:06:24] Production.INFO: ==27996== Releasing lock... [2025-03-20 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:06:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-20 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:07:05 [end_date_ymd] => 2025-03-20 19:07:05 [RateCDR] => 1 ) [2025-03-20 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:07:05' and `end` < '2025-03-20 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:07:18] Production.INFO: count ==3799 [2025-03-20 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:07:05 - End Time 2025-03-20 19:07:05 [2025-03-20 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724869', 'tblTempUsageDetail_20' ) start [2025-03-20 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724869', 'tblTempUsageDetail_20' ) end [2025-03-20 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724869', 'tblTempVendorCDR_20' ) start [2025-03-20 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724869', 'tblTempVendorCDR_20' ) end [2025-03-20 19:07:20] Production.INFO: ProcessCDR(1,14724869,1,1,2) [2025-03-20 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724869', 'tblTempUsageDetail_20' ) start [2025-03-20 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724869', 'tblTempUsageDetail_20' ) end [2025-03-20 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:07:23] Production.INFO: ==28087== Releasing lock... [2025-03-20 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:07:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-20 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:08:05 [end_date_ymd] => 2025-03-20 19:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:08:17] Production.INFO: count ==3788 [2025-03-20 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:08:05 - End Time 2025-03-20 19:08:05 [2025-03-20 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724874', 'tblTempUsageDetail_20' ) start [2025-03-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724874', 'tblTempUsageDetail_20' ) end [2025-03-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724874', 'tblTempVendorCDR_20' ) start [2025-03-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724874', 'tblTempVendorCDR_20' ) end [2025-03-20 19:08:19] Production.INFO: ProcessCDR(1,14724874,1,1,2) [2025-03-20 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724874', 'tblTempUsageDetail_20' ) start [2025-03-20 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724874', 'tblTempUsageDetail_20' ) end [2025-03-20 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:08:24] Production.INFO: ==28249== Releasing lock... [2025-03-20 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:08:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-20 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:09:05 [end_date_ymd] => 2025-03-20 19:09:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:09:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:09:18] Production.INFO: count ==3763 [2025-03-20 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:09:05 - End Time 2025-03-20 19:09:05 [2025-03-20 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724879', 'tblTempUsageDetail_20' ) start [2025-03-20 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724879', 'tblTempUsageDetail_20' ) end [2025-03-20 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724879', 'tblTempVendorCDR_20' ) start [2025-03-20 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724879', 'tblTempVendorCDR_20' ) end [2025-03-20 19:09:20] Production.INFO: ProcessCDR(1,14724879,1,1,2) [2025-03-20 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724879', 'tblTempUsageDetail_20' ) start [2025-03-20 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724879', 'tblTempUsageDetail_20' ) end [2025-03-20 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:09:23] Production.INFO: ==28342== Releasing lock... [2025-03-20 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:09:23] Production.INFO: 56 MB #Memory Used# [2025-03-20 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:10:06 [end_date_ymd] => 2025-03-20 19:10:06 [RateCDR] => 1 ) [2025-03-20 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:10:06' and `end` < '2025-03-20 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:10:19] Production.INFO: count ==3734 [2025-03-20 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:10:06 - End Time 2025-03-20 19:10:06 [2025-03-20 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724885', 'tblTempUsageDetail_20' ) start [2025-03-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724885', 'tblTempUsageDetail_20' ) end [2025-03-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724885', 'tblTempVendorCDR_20' ) start [2025-03-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724885', 'tblTempVendorCDR_20' ) end [2025-03-20 19:10:20] Production.INFO: ProcessCDR(1,14724885,1,1,2) [2025-03-20 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724885', 'tblTempUsageDetail_20' ) start [2025-03-20 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724885', 'tblTempUsageDetail_20' ) end [2025-03-20 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:10:25] Production.INFO: ==28427== Releasing lock... [2025-03-20 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:10:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-20 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:11:05 [end_date_ymd] => 2025-03-20 19:11:05 [RateCDR] => 1 ) [2025-03-20 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:11:05' and `end` < '2025-03-20 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:11:18] Production.INFO: count ==3647 [2025-03-20 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:11:05 - End Time 2025-03-20 19:11:05 [2025-03-20 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724890', 'tblTempUsageDetail_20' ) start [2025-03-20 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724890', 'tblTempUsageDetail_20' ) end [2025-03-20 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724890', 'tblTempVendorCDR_20' ) start [2025-03-20 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724890', 'tblTempVendorCDR_20' ) end [2025-03-20 19:11:19] Production.INFO: ProcessCDR(1,14724890,1,1,2) [2025-03-20 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724890', 'tblTempUsageDetail_20' ) start [2025-03-20 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724890', 'tblTempUsageDetail_20' ) end [2025-03-20 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:11:25] Production.INFO: ==28514== Releasing lock... [2025-03-20 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:11:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-20 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:12:06 [end_date_ymd] => 2025-03-20 19:12:06 [RateCDR] => 1 ) [2025-03-20 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:12:06' and `end` < '2025-03-20 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:12:18] Production.INFO: count ==3625 [2025-03-20 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:12:06 - End Time 2025-03-20 19:12:06 [2025-03-20 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724895', 'tblTempUsageDetail_20' ) start [2025-03-20 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724895', 'tblTempUsageDetail_20' ) end [2025-03-20 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724895', 'tblTempVendorCDR_20' ) start [2025-03-20 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724895', 'tblTempVendorCDR_20' ) end [2025-03-20 19:12:20] Production.INFO: ProcessCDR(1,14724895,1,1,2) [2025-03-20 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724895', 'tblTempUsageDetail_20' ) start [2025-03-20 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724895', 'tblTempUsageDetail_20' ) end [2025-03-20 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:12:25] Production.INFO: ==28676== Releasing lock... [2025-03-20 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:12:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-20 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:13:05 [end_date_ymd] => 2025-03-20 19:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:13:18] Production.INFO: count ==3595 [2025-03-20 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:13:05 - End Time 2025-03-20 19:13:05 [2025-03-20 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724900', 'tblTempUsageDetail_20' ) start [2025-03-20 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724900', 'tblTempUsageDetail_20' ) end [2025-03-20 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724900', 'tblTempVendorCDR_20' ) start [2025-03-20 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724900', 'tblTempVendorCDR_20' ) end [2025-03-20 19:13:19] Production.INFO: ProcessCDR(1,14724900,1,1,2) [2025-03-20 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724900', 'tblTempUsageDetail_20' ) start [2025-03-20 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724900', 'tblTempUsageDetail_20' ) end [2025-03-20 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:13:22] Production.INFO: ==28753== Releasing lock... [2025-03-20 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:13:22] Production.INFO: 56.25 MB #Memory Used# [2025-03-20 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:14:06 [end_date_ymd] => 2025-03-20 19:14:06 [RateCDR] => 1 ) [2025-03-20 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:14:06' and `end` < '2025-03-20 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:14:18] Production.INFO: count ==3574 [2025-03-20 19:14:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:14:06 - End Time 2025-03-20 19:14:06 [2025-03-20 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724905', 'tblTempUsageDetail_20' ) start [2025-03-20 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724905', 'tblTempUsageDetail_20' ) end [2025-03-20 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724905', 'tblTempVendorCDR_20' ) start [2025-03-20 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724905', 'tblTempVendorCDR_20' ) end [2025-03-20 19:14:20] Production.INFO: ProcessCDR(1,14724905,1,1,2) [2025-03-20 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724905', 'tblTempUsageDetail_20' ) start [2025-03-20 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724905', 'tblTempUsageDetail_20' ) end [2025-03-20 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:14:25] Production.INFO: ==28831== Releasing lock... [2025-03-20 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:14:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-20 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:15:04 [end_date_ymd] => 2025-03-20 19:15:04 [RateCDR] => 1 ) [2025-03-20 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:15:04' and `end` < '2025-03-20 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:15:17] Production.INFO: count ==3556 [2025-03-20 19:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:15:04 - End Time 2025-03-20 19:15:04 [2025-03-20 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724910', 'tblTempUsageDetail_20' ) start [2025-03-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724910', 'tblTempUsageDetail_20' ) end [2025-03-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724910', 'tblTempVendorCDR_20' ) start [2025-03-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724910', 'tblTempVendorCDR_20' ) end [2025-03-20 19:15:18] Production.INFO: ProcessCDR(1,14724910,1,1,2) [2025-03-20 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724910', 'tblTempUsageDetail_20' ) start [2025-03-20 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724910', 'tblTempUsageDetail_20' ) end [2025-03-20 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:15:22] Production.INFO: ==29040== Releasing lock... [2025-03-20 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:15:22] Production.INFO: 56 MB #Memory Used# [2025-03-20 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:16:05 [end_date_ymd] => 2025-03-20 19:16:05 [RateCDR] => 1 ) [2025-03-20 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:16:05' and `end` < '2025-03-20 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:16:18] Production.INFO: count ==3532 [2025-03-20 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:16:05 - End Time 2025-03-20 19:16:05 [2025-03-20 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724915', 'tblTempUsageDetail_20' ) start [2025-03-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724915', 'tblTempUsageDetail_20' ) end [2025-03-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724915', 'tblTempVendorCDR_20' ) start [2025-03-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724915', 'tblTempVendorCDR_20' ) end [2025-03-20 19:16:19] Production.INFO: ProcessCDR(1,14724915,1,1,2) [2025-03-20 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724915', 'tblTempUsageDetail_20' ) start [2025-03-20 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724915', 'tblTempUsageDetail_20' ) end [2025-03-20 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:16:23] Production.INFO: ==29124== Releasing lock... [2025-03-20 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:16:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-20 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:17:05 [end_date_ymd] => 2025-03-20 19:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:17:18] Production.INFO: count ==3508 [2025-03-20 19:17:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:17:05 - End Time 2025-03-20 19:17:05 [2025-03-20 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724920', 'tblTempUsageDetail_20' ) start [2025-03-20 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724920', 'tblTempUsageDetail_20' ) end [2025-03-20 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724920', 'tblTempVendorCDR_20' ) start [2025-03-20 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724920', 'tblTempVendorCDR_20' ) end [2025-03-20 19:17:19] Production.INFO: ProcessCDR(1,14724920,1,1,2) [2025-03-20 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724920', 'tblTempUsageDetail_20' ) start [2025-03-20 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724920', 'tblTempUsageDetail_20' ) end [2025-03-20 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:17:23] Production.INFO: ==29207== Releasing lock... [2025-03-20 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:17:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-20 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:18:06 [end_date_ymd] => 2025-03-20 19:18:06 [RateCDR] => 1 ) [2025-03-20 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:18:06' and `end` < '2025-03-20 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:18:18] Production.INFO: count ==3489 [2025-03-20 19:18:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:18:06 - End Time 2025-03-20 19:18:06 [2025-03-20 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724925', 'tblTempUsageDetail_20' ) start [2025-03-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724925', 'tblTempUsageDetail_20' ) end [2025-03-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724925', 'tblTempVendorCDR_20' ) start [2025-03-20 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724925', 'tblTempVendorCDR_20' ) end [2025-03-20 19:18:20] Production.INFO: ProcessCDR(1,14724925,1,1,2) [2025-03-20 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724925', 'tblTempUsageDetail_20' ) start [2025-03-20 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724925', 'tblTempUsageDetail_20' ) end [2025-03-20 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:18:25] Production.INFO: ==29286== Releasing lock... [2025-03-20 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:18:25] Production.INFO: 54 MB #Memory Used# [2025-03-20 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:19:05 [end_date_ymd] => 2025-03-20 19:19:05 [RateCDR] => 1 ) [2025-03-20 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:19:05' and `end` < '2025-03-20 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:19:18] Production.INFO: count ==3479 [2025-03-20 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:19:05 - End Time 2025-03-20 19:19:05 [2025-03-20 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724930', 'tblTempUsageDetail_20' ) start [2025-03-20 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724930', 'tblTempUsageDetail_20' ) end [2025-03-20 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724930', 'tblTempVendorCDR_20' ) start [2025-03-20 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724930', 'tblTempVendorCDR_20' ) end [2025-03-20 19:19:19] Production.INFO: ProcessCDR(1,14724930,1,1,2) [2025-03-20 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724930', 'tblTempUsageDetail_20' ) start [2025-03-20 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724930', 'tblTempUsageDetail_20' ) end [2025-03-20 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:19:22] Production.INFO: ==29372== Releasing lock... [2025-03-20 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:19:22] Production.INFO: 54.25 MB #Memory Used# [2025-03-20 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:20:06 [end_date_ymd] => 2025-03-20 19:20:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:20:06' and `end` < '2025-03-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 ,'') [2025-03-20 19:20:19] Production.INFO: count ==3459 [2025-03-20 19:20:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:20:06 - End Time 2025-03-20 19:20:06 [2025-03-20 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724936', 'tblTempUsageDetail_20' ) start [2025-03-20 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724936', 'tblTempUsageDetail_20' ) end [2025-03-20 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724936', 'tblTempVendorCDR_20' ) start [2025-03-20 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724936', 'tblTempVendorCDR_20' ) end [2025-03-20 19:20:20] Production.INFO: ProcessCDR(1,14724936,1,1,2) [2025-03-20 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724936', 'tblTempUsageDetail_20' ) start [2025-03-20 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724936', 'tblTempUsageDetail_20' ) end [2025-03-20 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:20:24] Production.INFO: ==29454== Releasing lock... [2025-03-20 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:20:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-20 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:21:05 [end_date_ymd] => 2025-03-20 19:21:05 [RateCDR] => 1 ) [2025-03-20 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:21:05' and `end` < '2025-03-20 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:21:18] Production.INFO: count ==3356 [2025-03-20 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:21:05 - End Time 2025-03-20 19:21:05 [2025-03-20 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724941', 'tblTempUsageDetail_20' ) start [2025-03-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724941', 'tblTempUsageDetail_20' ) end [2025-03-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724941', 'tblTempVendorCDR_20' ) start [2025-03-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724941', 'tblTempVendorCDR_20' ) end [2025-03-20 19:21:19] Production.INFO: ProcessCDR(1,14724941,1,1,2) [2025-03-20 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724941', 'tblTempUsageDetail_20' ) start [2025-03-20 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724941', 'tblTempUsageDetail_20' ) end [2025-03-20 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:21:22] Production.INFO: ==29542== Releasing lock... [2025-03-20 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:21:22] Production.INFO: 53 MB #Memory Used# [2025-03-20 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:22:06 [end_date_ymd] => 2025-03-20 19:22:06 [RateCDR] => 1 ) [2025-03-20 19:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:22:06' and `end` < '2025-03-20 19:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:22:19] Production.INFO: count ==3339 [2025-03-20 19:22:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:22:06 - End Time 2025-03-20 19:22:06 [2025-03-20 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724946', 'tblTempUsageDetail_20' ) start [2025-03-20 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724946', 'tblTempUsageDetail_20' ) end [2025-03-20 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724946', 'tblTempVendorCDR_20' ) start [2025-03-20 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724946', 'tblTempVendorCDR_20' ) end [2025-03-20 19:22:20] Production.INFO: ProcessCDR(1,14724946,1,1,2) [2025-03-20 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724946', 'tblTempUsageDetail_20' ) start [2025-03-20 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724946', 'tblTempUsageDetail_20' ) end [2025-03-20 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:22:25] Production.INFO: ==29642== Releasing lock... [2025-03-20 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:22:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-20 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:23:05 [end_date_ymd] => 2025-03-20 19:23:05 [RateCDR] => 1 ) [2025-03-20 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:23:05' and `end` < '2025-03-20 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:23:17] Production.INFO: count ==3315 [2025-03-20 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:23:05 - End Time 2025-03-20 19:23:05 [2025-03-20 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724951', 'tblTempUsageDetail_20' ) start [2025-03-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724951', 'tblTempUsageDetail_20' ) end [2025-03-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724951', 'tblTempVendorCDR_20' ) start [2025-03-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724951', 'tblTempVendorCDR_20' ) end [2025-03-20 19:23:19] Production.INFO: ProcessCDR(1,14724951,1,1,2) [2025-03-20 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724951', 'tblTempUsageDetail_20' ) start [2025-03-20 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724951', 'tblTempUsageDetail_20' ) end [2025-03-20 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:23:24] Production.INFO: ==29723== Releasing lock... [2025-03-20 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:23:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-20 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:24:05 [end_date_ymd] => 2025-03-20 19:24:05 [RateCDR] => 1 ) [2025-03-20 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:24:05' and `end` < '2025-03-20 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:24:18] Production.INFO: count ==3302 [2025-03-20 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:24:05 - End Time 2025-03-20 19:24:05 [2025-03-20 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724956', 'tblTempUsageDetail_20' ) start [2025-03-20 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724956', 'tblTempUsageDetail_20' ) end [2025-03-20 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724956', 'tblTempVendorCDR_20' ) start [2025-03-20 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724956', 'tblTempVendorCDR_20' ) end [2025-03-20 19:24:19] Production.INFO: ProcessCDR(1,14724956,1,1,2) [2025-03-20 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724956', 'tblTempUsageDetail_20' ) start [2025-03-20 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724956', 'tblTempUsageDetail_20' ) end [2025-03-20 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:24:24] Production.INFO: ==29806== Releasing lock... [2025-03-20 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:24:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-20 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:25:05 [end_date_ymd] => 2025-03-20 19:25:05 [RateCDR] => 1 ) [2025-03-20 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:25:05' and `end` < '2025-03-20 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:25:18] Production.INFO: count ==3289 [2025-03-20 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:25:05 - End Time 2025-03-20 19:25:05 [2025-03-20 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724961', 'tblTempUsageDetail_20' ) start [2025-03-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724961', 'tblTempUsageDetail_20' ) end [2025-03-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724961', 'tblTempVendorCDR_20' ) start [2025-03-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724961', 'tblTempVendorCDR_20' ) end [2025-03-20 19:25:19] Production.INFO: ProcessCDR(1,14724961,1,1,2) [2025-03-20 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724961', 'tblTempUsageDetail_20' ) start [2025-03-20 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724961', 'tblTempUsageDetail_20' ) end [2025-03-20 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:25:24] Production.INFO: ==29887== Releasing lock... [2025-03-20 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:25:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-20 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:26:05 [end_date_ymd] => 2025-03-20 19:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:26:05' and `end` < '2025-03-20 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:26:18] Production.INFO: count ==3283 [2025-03-20 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:26:05 - End Time 2025-03-20 19:26:05 [2025-03-20 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724966', 'tblTempUsageDetail_20' ) start [2025-03-20 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724966', 'tblTempUsageDetail_20' ) end [2025-03-20 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724966', 'tblTempVendorCDR_20' ) start [2025-03-20 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724966', 'tblTempVendorCDR_20' ) end [2025-03-20 19:26:19] Production.INFO: ProcessCDR(1,14724966,1,1,2) [2025-03-20 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724966', 'tblTempUsageDetail_20' ) start [2025-03-20 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724966', 'tblTempUsageDetail_20' ) end [2025-03-20 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:26:23] Production.INFO: ==29972== Releasing lock... [2025-03-20 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:26:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-20 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:27:06 [end_date_ymd] => 2025-03-20 19:27:06 [RateCDR] => 1 ) [2025-03-20 19:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:27:06' and `end` < '2025-03-20 19:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:27:18] Production.INFO: count ==3278 [2025-03-20 19:27:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:27:06 - End Time 2025-03-20 19:27:06 [2025-03-20 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724971', 'tblTempUsageDetail_20' ) start [2025-03-20 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724971', 'tblTempUsageDetail_20' ) end [2025-03-20 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724971', 'tblTempVendorCDR_20' ) start [2025-03-20 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724971', 'tblTempVendorCDR_20' ) end [2025-03-20 19:27:20] Production.INFO: ProcessCDR(1,14724971,1,1,2) [2025-03-20 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724971', 'tblTempUsageDetail_20' ) start [2025-03-20 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724971', 'tblTempUsageDetail_20' ) end [2025-03-20 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:27:25] Production.INFO: ==30062== Releasing lock... [2025-03-20 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:27:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-20 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:28:06 [end_date_ymd] => 2025-03-20 19:28:06 [RateCDR] => 1 ) [2025-03-20 19:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:28:06' and `end` < '2025-03-20 19:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:28:18] Production.INFO: count ==3276 [2025-03-20 19:28:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:28:06 - End Time 2025-03-20 19:28:06 [2025-03-20 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724976', 'tblTempUsageDetail_20' ) start [2025-03-20 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724976', 'tblTempUsageDetail_20' ) end [2025-03-20 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724976', 'tblTempVendorCDR_20' ) start [2025-03-20 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724976', 'tblTempVendorCDR_20' ) end [2025-03-20 19:28:19] Production.INFO: ProcessCDR(1,14724976,1,1,2) [2025-03-20 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724976', 'tblTempUsageDetail_20' ) start [2025-03-20 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724976', 'tblTempUsageDetail_20' ) end [2025-03-20 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:28:25] Production.INFO: ==30154== Releasing lock... [2025-03-20 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:28:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-20 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:29:06 [end_date_ymd] => 2025-03-20 19:29:06 [RateCDR] => 1 ) [2025-03-20 19:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:29:06' and `end` < '2025-03-20 19:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:29:19] Production.INFO: count ==3272 [2025-03-20 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:29:06 - End Time 2025-03-20 19:29:06 [2025-03-20 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724981', 'tblTempUsageDetail_20' ) start [2025-03-20 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724981', 'tblTempUsageDetail_20' ) end [2025-03-20 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724981', 'tblTempVendorCDR_20' ) start [2025-03-20 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724981', 'tblTempVendorCDR_20' ) end [2025-03-20 19:29:20] Production.INFO: ProcessCDR(1,14724981,1,1,2) [2025-03-20 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724981', 'tblTempUsageDetail_20' ) start [2025-03-20 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724981', 'tblTempUsageDetail_20' ) end [2025-03-20 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:29:25] Production.INFO: ==30231== Releasing lock... [2025-03-20 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:29:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-20 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:30:06 [end_date_ymd] => 2025-03-20 19:30:06 [RateCDR] => 1 ) [2025-03-20 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:30:06' and `end` < '2025-03-20 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:30:19] Production.INFO: count ==3249 [2025-03-20 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:30:06 - End Time 2025-03-20 19:30:06 [2025-03-20 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724987', 'tblTempUsageDetail_20' ) start [2025-03-20 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724987', 'tblTempUsageDetail_20' ) end [2025-03-20 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724987', 'tblTempVendorCDR_20' ) start [2025-03-20 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724987', 'tblTempVendorCDR_20' ) end [2025-03-20 19:30:20] Production.INFO: ProcessCDR(1,14724987,1,1,2) [2025-03-20 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724987', 'tblTempUsageDetail_20' ) start [2025-03-20 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724987', 'tblTempUsageDetail_20' ) end [2025-03-20 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:30:25] Production.INFO: ==30313== Releasing lock... [2025-03-20 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:30:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-20 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:31:06 [end_date_ymd] => 2025-03-20 19:31:06 [RateCDR] => 1 ) [2025-03-20 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:31:06' and `end` < '2025-03-20 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:31:19] Production.INFO: count ==3212 [2025-03-20 19:31:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:31:06 - End Time 2025-03-20 19:31:06 [2025-03-20 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724992', 'tblTempUsageDetail_20' ) start [2025-03-20 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724992', 'tblTempUsageDetail_20' ) end [2025-03-20 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724992', 'tblTempVendorCDR_20' ) start [2025-03-20 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724992', 'tblTempVendorCDR_20' ) end [2025-03-20 19:31:20] Production.INFO: ProcessCDR(1,14724992,1,1,2) [2025-03-20 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724992', 'tblTempUsageDetail_20' ) start [2025-03-20 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724992', 'tblTempUsageDetail_20' ) end [2025-03-20 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:31:25] Production.INFO: ==30441== Releasing lock... [2025-03-20 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:31:25] Production.INFO: 53 MB #Memory Used# [2025-03-20 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:32:05 [end_date_ymd] => 2025-03-20 19:32:05 [RateCDR] => 1 ) [2025-03-20 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:32:05' and `end` < '2025-03-20 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:32:18] Production.INFO: count ==3194 [2025-03-20 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:32:05 - End Time 2025-03-20 19:32:05 [2025-03-20 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724997', 'tblTempUsageDetail_20' ) start [2025-03-20 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14724997', 'tblTempUsageDetail_20' ) end [2025-03-20 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724997', 'tblTempVendorCDR_20' ) start [2025-03-20 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14724997', 'tblTempVendorCDR_20' ) end [2025-03-20 19:32:19] Production.INFO: ProcessCDR(1,14724997,1,1,2) [2025-03-20 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14724997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14724997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14724997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14724997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724997', 'tblTempUsageDetail_20' ) start [2025-03-20 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14724997', 'tblTempUsageDetail_20' ) end [2025-03-20 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:32:23] Production.INFO: ==30522== Releasing lock... [2025-03-20 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:32:23] Production.INFO: 52 MB #Memory Used# [2025-03-20 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:33:05 [end_date_ymd] => 2025-03-20 19:33:05 [RateCDR] => 1 ) [2025-03-20 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:33:05' and `end` < '2025-03-20 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:33:18] Production.INFO: count ==3191 [2025-03-20 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:33:05 - End Time 2025-03-20 19:33:05 [2025-03-20 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725002', 'tblTempUsageDetail_20' ) start [2025-03-20 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725002', 'tblTempUsageDetail_20' ) end [2025-03-20 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725002', 'tblTempVendorCDR_20' ) start [2025-03-20 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725002', 'tblTempVendorCDR_20' ) end [2025-03-20 19:33:19] Production.INFO: ProcessCDR(1,14725002,1,1,2) [2025-03-20 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725002', 'tblTempUsageDetail_20' ) start [2025-03-20 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725002', 'tblTempUsageDetail_20' ) end [2025-03-20 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:33:23] Production.INFO: ==30603== Releasing lock... [2025-03-20 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:33:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-20 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:34:05 [end_date_ymd] => 2025-03-20 19:34:05 [RateCDR] => 1 ) [2025-03-20 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:34:05' and `end` < '2025-03-20 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:34:18] Production.INFO: count ==3174 [2025-03-20 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:34:05 - End Time 2025-03-20 19:34:05 [2025-03-20 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725007', 'tblTempUsageDetail_20' ) start [2025-03-20 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725007', 'tblTempUsageDetail_20' ) end [2025-03-20 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725007', 'tblTempVendorCDR_20' ) start [2025-03-20 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725007', 'tblTempVendorCDR_20' ) end [2025-03-20 19:34:19] Production.INFO: ProcessCDR(1,14725007,1,1,2) [2025-03-20 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725007', 'tblTempUsageDetail_20' ) start [2025-03-20 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725007', 'tblTempUsageDetail_20' ) end [2025-03-20 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:34:24] Production.INFO: ==30693== Releasing lock... [2025-03-20 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:34:24] Production.INFO: 52 MB #Memory Used# [2025-03-20 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:35:05 [end_date_ymd] => 2025-03-20 19:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:35:18] Production.INFO: count ==3164 [2025-03-20 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:35:05 - End Time 2025-03-20 19:35:05 [2025-03-20 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725012', 'tblTempUsageDetail_20' ) start [2025-03-20 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725012', 'tblTempUsageDetail_20' ) end [2025-03-20 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725012', 'tblTempVendorCDR_20' ) start [2025-03-20 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725012', 'tblTempVendorCDR_20' ) end [2025-03-20 19:35:19] Production.INFO: ProcessCDR(1,14725012,1,1,2) [2025-03-20 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725012', 'tblTempUsageDetail_20' ) start [2025-03-20 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725012', 'tblTempUsageDetail_20' ) end [2025-03-20 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:35:24] Production.INFO: ==30781== Releasing lock... [2025-03-20 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:35:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-20 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:36:05 [end_date_ymd] => 2025-03-20 19:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:36:18] Production.INFO: count ==3152 [2025-03-20 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:36:05 - End Time 2025-03-20 19:36:05 [2025-03-20 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725017', 'tblTempUsageDetail_20' ) start [2025-03-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725017', 'tblTempUsageDetail_20' ) end [2025-03-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725017', 'tblTempVendorCDR_20' ) start [2025-03-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725017', 'tblTempVendorCDR_20' ) end [2025-03-20 19:36:19] Production.INFO: ProcessCDR(1,14725017,1,1,2) [2025-03-20 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725017', 'tblTempUsageDetail_20' ) start [2025-03-20 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725017', 'tblTempUsageDetail_20' ) end [2025-03-20 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:36:24] Production.INFO: ==30871== Releasing lock... [2025-03-20 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:36:24] Production.INFO: 52 MB #Memory Used# [2025-03-20 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:37:05 [end_date_ymd] => 2025-03-20 19:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:37:18] Production.INFO: count ==3132 [2025-03-20 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:37:05 - End Time 2025-03-20 19:37:05 [2025-03-20 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725022', 'tblTempUsageDetail_20' ) start [2025-03-20 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725022', 'tblTempUsageDetail_20' ) end [2025-03-20 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725022', 'tblTempVendorCDR_20' ) start [2025-03-20 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725022', 'tblTempVendorCDR_20' ) end [2025-03-20 19:37:19] Production.INFO: ProcessCDR(1,14725022,1,1,2) [2025-03-20 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725022', 'tblTempUsageDetail_20' ) start [2025-03-20 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725022', 'tblTempUsageDetail_20' ) end [2025-03-20 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:37:24] Production.INFO: ==30962== Releasing lock... [2025-03-20 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:37:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-20 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:38:05 [end_date_ymd] => 2025-03-20 19:38:05 [RateCDR] => 1 ) [2025-03-20 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:38:05' and `end` < '2025-03-20 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:38:17] Production.INFO: count ==3122 [2025-03-20 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:38:05 - End Time 2025-03-20 19:38:05 [2025-03-20 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725027', 'tblTempUsageDetail_20' ) start [2025-03-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725027', 'tblTempUsageDetail_20' ) end [2025-03-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725027', 'tblTempVendorCDR_20' ) start [2025-03-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725027', 'tblTempVendorCDR_20' ) end [2025-03-20 19:38:19] Production.INFO: ProcessCDR(1,14725027,1,1,2) [2025-03-20 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725027', 'tblTempUsageDetail_20' ) start [2025-03-20 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725027', 'tblTempUsageDetail_20' ) end [2025-03-20 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:38:23] Production.INFO: ==31051== Releasing lock... [2025-03-20 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:38:23] Production.INFO: 51.25 MB #Memory Used# [2025-03-20 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:39:05 [end_date_ymd] => 2025-03-20 19:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:39:18] Production.INFO: count ==3119 [2025-03-20 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:39:05 - End Time 2025-03-20 19:39:05 [2025-03-20 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725032', 'tblTempUsageDetail_20' ) start [2025-03-20 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725032', 'tblTempUsageDetail_20' ) end [2025-03-20 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725032', 'tblTempVendorCDR_20' ) start [2025-03-20 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725032', 'tblTempVendorCDR_20' ) end [2025-03-20 19:39:19] Production.INFO: ProcessCDR(1,14725032,1,1,2) [2025-03-20 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725032', 'tblTempUsageDetail_20' ) start [2025-03-20 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725032', 'tblTempUsageDetail_20' ) end [2025-03-20 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:39:22] Production.INFO: ==31137== Releasing lock... [2025-03-20 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:39:22] Production.INFO: 51.5 MB #Memory Used# [2025-03-20 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:40:05 [end_date_ymd] => 2025-03-20 19:40:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:40:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:40:18] Production.INFO: count ==3105 [2025-03-20 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:40:05 - End Time 2025-03-20 19:40:05 [2025-03-20 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725037', 'tblTempUsageDetail_20' ) start [2025-03-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725037', 'tblTempUsageDetail_20' ) end [2025-03-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725037', 'tblTempVendorCDR_20' ) start [2025-03-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725037', 'tblTempVendorCDR_20' ) end [2025-03-20 19:40:19] Production.INFO: ProcessCDR(1,14725037,1,1,2) [2025-03-20 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725037', 'tblTempUsageDetail_20' ) start [2025-03-20 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725037', 'tblTempUsageDetail_20' ) end [2025-03-20 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:40:22] Production.INFO: ==31239== Releasing lock... [2025-03-20 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:40:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-20 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:41:05 [end_date_ymd] => 2025-03-20 19:41:05 [RateCDR] => 1 ) [2025-03-20 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:41:05' and `end` < '2025-03-20 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:41:17] Production.INFO: count ==3031 [2025-03-20 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:41:05 - End Time 2025-03-20 19:41:05 [2025-03-20 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725043', 'tblTempUsageDetail_20' ) start [2025-03-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725043', 'tblTempUsageDetail_20' ) end [2025-03-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725043', 'tblTempVendorCDR_20' ) start [2025-03-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725043', 'tblTempVendorCDR_20' ) end [2025-03-20 19:41:18] Production.INFO: ProcessCDR(1,14725043,1,1,2) [2025-03-20 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725043', 'tblTempUsageDetail_20' ) start [2025-03-20 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725043', 'tblTempUsageDetail_20' ) end [2025-03-20 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:41:23] Production.INFO: ==31344== Releasing lock... [2025-03-20 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:41:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-20 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:42:05 [end_date_ymd] => 2025-03-20 19:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:42:17] Production.INFO: count ==3015 [2025-03-20 19:42:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:42:05 - End Time 2025-03-20 19:42:05 [2025-03-20 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725048', 'tblTempUsageDetail_20' ) start [2025-03-20 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725048', 'tblTempUsageDetail_20' ) end [2025-03-20 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725048', 'tblTempVendorCDR_20' ) start [2025-03-20 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725048', 'tblTempVendorCDR_20' ) end [2025-03-20 19:42:19] Production.INFO: ProcessCDR(1,14725048,1,1,2) [2025-03-20 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725048', 'tblTempUsageDetail_20' ) start [2025-03-20 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725048', 'tblTempUsageDetail_20' ) end [2025-03-20 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:42:22] Production.INFO: ==31448== Releasing lock... [2025-03-20 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:42:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-20 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:43:05 [end_date_ymd] => 2025-03-20 19:43:05 [RateCDR] => 1 ) [2025-03-20 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:43:05' and `end` < '2025-03-20 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:43:18] Production.INFO: count ==3014 [2025-03-20 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:43:05 - End Time 2025-03-20 19:43:05 [2025-03-20 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725053', 'tblTempUsageDetail_20' ) start [2025-03-20 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725053', 'tblTempUsageDetail_20' ) end [2025-03-20 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725053', 'tblTempVendorCDR_20' ) start [2025-03-20 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725053', 'tblTempVendorCDR_20' ) end [2025-03-20 19:43:19] Production.INFO: ProcessCDR(1,14725053,1,1,2) [2025-03-20 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725053', 'tblTempUsageDetail_20' ) start [2025-03-20 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725053', 'tblTempUsageDetail_20' ) end [2025-03-20 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:43:23] Production.INFO: ==31551== Releasing lock... [2025-03-20 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:43:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-20 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:44:06 [end_date_ymd] => 2025-03-20 19:44:06 [RateCDR] => 1 ) [2025-03-20 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:44:06' and `end` < '2025-03-20 19:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:44:19] Production.INFO: count ==2991 [2025-03-20 19:44:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:44:06 - End Time 2025-03-20 19:44:06 [2025-03-20 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725058', 'tblTempUsageDetail_20' ) start [2025-03-20 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725058', 'tblTempUsageDetail_20' ) end [2025-03-20 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725058', 'tblTempVendorCDR_20' ) start [2025-03-20 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725058', 'tblTempVendorCDR_20' ) end [2025-03-20 19:44:20] Production.INFO: ProcessCDR(1,14725058,1,1,2) [2025-03-20 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725058', 'tblTempUsageDetail_20' ) start [2025-03-20 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725058', 'tblTempUsageDetail_20' ) end [2025-03-20 19:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:44:25] Production.INFO: ==31660== Releasing lock... [2025-03-20 19:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:44:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-20 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:45:05 [end_date_ymd] => 2025-03-20 19:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:45:18] Production.INFO: count ==2980 [2025-03-20 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:45:05 - End Time 2025-03-20 19:45:05 [2025-03-20 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725063', 'tblTempUsageDetail_20' ) start [2025-03-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725063', 'tblTempUsageDetail_20' ) end [2025-03-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725063', 'tblTempVendorCDR_20' ) start [2025-03-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725063', 'tblTempVendorCDR_20' ) end [2025-03-20 19:45:19] Production.INFO: ProcessCDR(1,14725063,1,1,2) [2025-03-20 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725063', 'tblTempUsageDetail_20' ) start [2025-03-20 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725063', 'tblTempUsageDetail_20' ) end [2025-03-20 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:45:22] Production.INFO: ==31749== Releasing lock... [2025-03-20 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:45:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-20 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:46:06 [end_date_ymd] => 2025-03-20 19:46:06 [RateCDR] => 1 ) [2025-03-20 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:46:06' and `end` < '2025-03-20 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:46:18] Production.INFO: count ==2984 [2025-03-20 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:46:06 - End Time 2025-03-20 19:46:06 [2025-03-20 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725068', 'tblTempUsageDetail_20' ) start [2025-03-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725068', 'tblTempUsageDetail_20' ) end [2025-03-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725068', 'tblTempVendorCDR_20' ) start [2025-03-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725068', 'tblTempVendorCDR_20' ) end [2025-03-20 19:46:19] Production.INFO: ProcessCDR(1,14725068,1,1,2) [2025-03-20 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725068', 'tblTempUsageDetail_20' ) start [2025-03-20 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725068', 'tblTempUsageDetail_20' ) end [2025-03-20 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:46:24] Production.INFO: ==31882== Releasing lock... [2025-03-20 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:46:24] Production.INFO: 50.25 MB #Memory Used# [2025-03-20 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:47:05 [end_date_ymd] => 2025-03-20 19:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:47:18] Production.INFO: count ==2960 [2025-03-20 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:47:05 - End Time 2025-03-20 19:47:05 [2025-03-20 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725073', 'tblTempUsageDetail_20' ) start [2025-03-20 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725073', 'tblTempUsageDetail_20' ) end [2025-03-20 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725073', 'tblTempVendorCDR_20' ) start [2025-03-20 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725073', 'tblTempVendorCDR_20' ) end [2025-03-20 19:47:19] Production.INFO: ProcessCDR(1,14725073,1,1,2) [2025-03-20 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725073', 'tblTempUsageDetail_20' ) start [2025-03-20 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725073', 'tblTempUsageDetail_20' ) end [2025-03-20 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:47:22] Production.INFO: ==31989== Releasing lock... [2025-03-20 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:47:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-20 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:48:05 [end_date_ymd] => 2025-03-20 19:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:48:18] Production.INFO: count ==2932 [2025-03-20 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:48:05 - End Time 2025-03-20 19:48:05 [2025-03-20 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725078', 'tblTempUsageDetail_20' ) start [2025-03-20 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725078', 'tblTempUsageDetail_20' ) end [2025-03-20 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725078', 'tblTempVendorCDR_20' ) start [2025-03-20 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725078', 'tblTempVendorCDR_20' ) end [2025-03-20 19:48:19] Production.INFO: ProcessCDR(1,14725078,1,1,2) [2025-03-20 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725078', 'tblTempUsageDetail_20' ) start [2025-03-20 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725078', 'tblTempUsageDetail_20' ) end [2025-03-20 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:48:24] Production.INFO: ==32091== Releasing lock... [2025-03-20 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:48:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:49:05 [end_date_ymd] => 2025-03-20 19:49:05 [RateCDR] => 1 ) [2025-03-20 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:49:05' and `end` < '2025-03-20 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:49:17] Production.INFO: count ==2931 [2025-03-20 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:49:05 - End Time 2025-03-20 19:49:05 [2025-03-20 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725083', 'tblTempUsageDetail_20' ) start [2025-03-20 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725083', 'tblTempUsageDetail_20' ) end [2025-03-20 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725083', 'tblTempVendorCDR_20' ) start [2025-03-20 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725083', 'tblTempVendorCDR_20' ) end [2025-03-20 19:49:18] Production.INFO: ProcessCDR(1,14725083,1,1,2) [2025-03-20 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725083', 'tblTempUsageDetail_20' ) start [2025-03-20 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725083', 'tblTempUsageDetail_20' ) end [2025-03-20 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:49:22] Production.INFO: ==32193== Releasing lock... [2025-03-20 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:49:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:50:07 [end_date_ymd] => 2025-03-20 19:50:07 [RateCDR] => 1 ) [2025-03-20 19:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:50:07' and `end` < '2025-03-20 19:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:50:20] Production.INFO: count ==2924 [2025-03-20 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-20 16:50:07 - End Time 2025-03-20 19:50:07 [2025-03-20 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725089', 'tblTempUsageDetail_20' ) start [2025-03-20 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725089', 'tblTempUsageDetail_20' ) end [2025-03-20 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725089', 'tblTempVendorCDR_20' ) start [2025-03-20 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725089', 'tblTempVendorCDR_20' ) end [2025-03-20 19:50:21] Production.INFO: ProcessCDR(1,14725089,1,1,2) [2025-03-20 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725089', 'tblTempUsageDetail_20' ) start [2025-03-20 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725089', 'tblTempUsageDetail_20' ) end [2025-03-20 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:50:24] Production.INFO: ==32297== Releasing lock... [2025-03-20 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:50:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:51:05 [end_date_ymd] => 2025-03-20 19:51:05 [RateCDR] => 1 ) [2025-03-20 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:51:05' and `end` < '2025-03-20 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:51:18] Production.INFO: count ==2883 [2025-03-20 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:51:05 - End Time 2025-03-20 19:51:05 [2025-03-20 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725094', 'tblTempUsageDetail_20' ) start [2025-03-20 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725094', 'tblTempUsageDetail_20' ) end [2025-03-20 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725094', 'tblTempVendorCDR_20' ) start [2025-03-20 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725094', 'tblTempVendorCDR_20' ) end [2025-03-20 19:51:19] Production.INFO: ProcessCDR(1,14725094,1,1,2) [2025-03-20 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725094', 'tblTempUsageDetail_20' ) start [2025-03-20 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725094', 'tblTempUsageDetail_20' ) end [2025-03-20 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:51:22] Production.INFO: ==32404== Releasing lock... [2025-03-20 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:51:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:52:05 [end_date_ymd] => 2025-03-20 19:52:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:52:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:52:18] Production.INFO: count ==2879 [2025-03-20 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:52:05 - End Time 2025-03-20 19:52:05 [2025-03-20 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725099', 'tblTempUsageDetail_20' ) start [2025-03-20 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725099', 'tblTempUsageDetail_20' ) end [2025-03-20 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725099', 'tblTempVendorCDR_20' ) start [2025-03-20 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725099', 'tblTempVendorCDR_20' ) end [2025-03-20 19:52:19] Production.INFO: ProcessCDR(1,14725099,1,1,2) [2025-03-20 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725099', 'tblTempUsageDetail_20' ) start [2025-03-20 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725099', 'tblTempUsageDetail_20' ) end [2025-03-20 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:52:24] Production.INFO: ==32499== Releasing lock... [2025-03-20 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:52:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-20 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:53:05 [end_date_ymd] => 2025-03-20 19:53:05 [RateCDR] => 1 ) [2025-03-20 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:53:05' and `end` < '2025-03-20 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:53:17] Production.INFO: count ==2867 [2025-03-20 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:53:05 - End Time 2025-03-20 19:53:05 [2025-03-20 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725104', 'tblTempUsageDetail_20' ) start [2025-03-20 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725104', 'tblTempUsageDetail_20' ) end [2025-03-20 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725104', 'tblTempVendorCDR_20' ) start [2025-03-20 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725104', 'tblTempVendorCDR_20' ) end [2025-03-20 19:53:18] Production.INFO: ProcessCDR(1,14725104,1,1,2) [2025-03-20 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725104', 'tblTempUsageDetail_20' ) start [2025-03-20 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725104', 'tblTempUsageDetail_20' ) end [2025-03-20 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:53:23] Production.INFO: ==32604== Releasing lock... [2025-03-20 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:53:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-20 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:54:05 [end_date_ymd] => 2025-03-20 19:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:54:18] Production.INFO: count ==2862 [2025-03-20 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:54:05 - End Time 2025-03-20 19:54:05 [2025-03-20 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725109', 'tblTempUsageDetail_20' ) start [2025-03-20 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725109', 'tblTempUsageDetail_20' ) end [2025-03-20 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725109', 'tblTempVendorCDR_20' ) start [2025-03-20 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725109', 'tblTempVendorCDR_20' ) end [2025-03-20 19:54:19] Production.INFO: ProcessCDR(1,14725109,1,1,2) [2025-03-20 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725109', 'tblTempUsageDetail_20' ) start [2025-03-20 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725109', 'tblTempUsageDetail_20' ) end [2025-03-20 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:54:22] Production.INFO: ==32709== Releasing lock... [2025-03-20 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:54:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-20 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:55:05 [end_date_ymd] => 2025-03-20 19:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:55:18] Production.INFO: count ==2837 [2025-03-20 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:55:05 - End Time 2025-03-20 19:55:05 [2025-03-20 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725114', 'tblTempUsageDetail_20' ) start [2025-03-20 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725114', 'tblTempUsageDetail_20' ) end [2025-03-20 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725114', 'tblTempVendorCDR_20' ) start [2025-03-20 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725114', 'tblTempVendorCDR_20' ) end [2025-03-20 19:55:19] Production.INFO: ProcessCDR(1,14725114,1,1,2) [2025-03-20 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725114', 'tblTempUsageDetail_20' ) start [2025-03-20 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725114', 'tblTempUsageDetail_20' ) end [2025-03-20 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:55:22] Production.INFO: ==368== Releasing lock... [2025-03-20 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:55:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-20 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:56:05 [end_date_ymd] => 2025-03-20 19:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:56:17] Production.INFO: count ==2827 [2025-03-20 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:56:05 - End Time 2025-03-20 19:56:05 [2025-03-20 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725119', 'tblTempUsageDetail_20' ) start [2025-03-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725119', 'tblTempUsageDetail_20' ) end [2025-03-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725119', 'tblTempVendorCDR_20' ) start [2025-03-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725119', 'tblTempVendorCDR_20' ) end [2025-03-20 19:56:18] Production.INFO: ProcessCDR(1,14725119,1,1,2) [2025-03-20 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725119', 'tblTempUsageDetail_20' ) start [2025-03-20 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725119', 'tblTempUsageDetail_20' ) end [2025-03-20 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:56:21] Production.INFO: ==465== Releasing lock... [2025-03-20 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:56:21] Production.INFO: 49.25 MB #Memory Used# [2025-03-20 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:57:05 [end_date_ymd] => 2025-03-20 19:57:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:57:05' and `end` < '2025-03-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 ,'') [2025-03-20 19:57:18] Production.INFO: count ==2805 [2025-03-20 19:57:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:57:05 - End Time 2025-03-20 19:57:05 [2025-03-20 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725124', 'tblTempUsageDetail_20' ) start [2025-03-20 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725124', 'tblTempUsageDetail_20' ) end [2025-03-20 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725124', 'tblTempVendorCDR_20' ) start [2025-03-20 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725124', 'tblTempVendorCDR_20' ) end [2025-03-20 19:57:19] Production.INFO: ProcessCDR(1,14725124,1,1,2) [2025-03-20 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725124', 'tblTempUsageDetail_20' ) start [2025-03-20 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725124', 'tblTempUsageDetail_20' ) end [2025-03-20 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:57:22] Production.INFO: ==585== Releasing lock... [2025-03-20 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:57:22] Production.INFO: 49 MB #Memory Used# [2025-03-20 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:58:04 [end_date_ymd] => 2025-03-20 19:58:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 16:58:04' and `end` < '2025-03-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 ,'') [2025-03-20 19:58:17] Production.INFO: count ==2803 [2025-03-20 19:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 16:58:04 - End Time 2025-03-20 19:58:04 [2025-03-20 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725129', 'tblTempUsageDetail_20' ) start [2025-03-20 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725129', 'tblTempUsageDetail_20' ) end [2025-03-20 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725129', 'tblTempVendorCDR_20' ) start [2025-03-20 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725129', 'tblTempVendorCDR_20' ) end [2025-03-20 19:58:18] Production.INFO: ProcessCDR(1,14725129,1,1,2) [2025-03-20 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725129', 'tblTempUsageDetail_20' ) start [2025-03-20 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725129', 'tblTempUsageDetail_20' ) end [2025-03-20 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:58:21] Production.INFO: ==720== Releasing lock... [2025-03-20 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:58:21] Production.INFO: 49 MB #Memory Used# [2025-03-20 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 16:59:06 [end_date_ymd] => 2025-03-20 19:59:06 [RateCDR] => 1 ) [2025-03-20 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 16:59:06' and `end` < '2025-03-20 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 19:59:18] Production.INFO: count ==2801 [2025-03-20 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-20 16:59:06 - End Time 2025-03-20 19:59:06 [2025-03-20 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725134', 'tblTempUsageDetail_20' ) start [2025-03-20 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725134', 'tblTempUsageDetail_20' ) end [2025-03-20 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725134', 'tblTempVendorCDR_20' ) start [2025-03-20 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725134', 'tblTempVendorCDR_20' ) end [2025-03-20 19:59:19] Production.INFO: ProcessCDR(1,14725134,1,1,2) [2025-03-20 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725134', 'tblTempUsageDetail_20' ) start [2025-03-20 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725134', 'tblTempUsageDetail_20' ) end [2025-03-20 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 19:59:24] Production.INFO: ==826== Releasing lock... [2025-03-20 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 19:59:24] Production.INFO: 49 MB #Memory Used# [2025-03-20 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:00:06 [end_date_ymd] => 2025-03-20 20:00:06 [RateCDR] => 1 ) [2025-03-20 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:00:06' and `end` < '2025-03-20 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:00:18] Production.INFO: count ==2786 [2025-03-20 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:00:06 - End Time 2025-03-20 20:00:06 [2025-03-20 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725140', 'tblTempUsageDetail_20' ) start [2025-03-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725140', 'tblTempUsageDetail_20' ) end [2025-03-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725140', 'tblTempVendorCDR_20' ) start [2025-03-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725140', 'tblTempVendorCDR_20' ) end [2025-03-20 20:00:20] Production.INFO: ProcessCDR(1,14725140,1,1,2) [2025-03-20 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725140', 'tblTempUsageDetail_20' ) start [2025-03-20 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725140', 'tblTempUsageDetail_20' ) end [2025-03-20 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:00:25] Production.INFO: ==922== Releasing lock... [2025-03-20 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:00:25] Production.INFO: 49 MB #Memory Used# [2025-03-20 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:01:05 [end_date_ymd] => 2025-03-20 20:01:05 [RateCDR] => 1 ) [2025-03-20 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:01:05' and `end` < '2025-03-20 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:01:18] Production.INFO: count ==2716 [2025-03-20 20:01:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:01:05 - End Time 2025-03-20 20:01:05 [2025-03-20 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725145', 'tblTempUsageDetail_20' ) start [2025-03-20 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725145', 'tblTempUsageDetail_20' ) end [2025-03-20 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725145', 'tblTempVendorCDR_20' ) start [2025-03-20 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725145', 'tblTempVendorCDR_20' ) end [2025-03-20 20:01:19] Production.INFO: ProcessCDR(1,14725145,1,1,2) [2025-03-20 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725145', 'tblTempUsageDetail_20' ) start [2025-03-20 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725145', 'tblTempUsageDetail_20' ) end [2025-03-20 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:01:24] Production.INFO: ==1082== Releasing lock... [2025-03-20 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:01:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-20 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:02:05 [end_date_ymd] => 2025-03-20 20:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:02:18] Production.INFO: count ==2704 [2025-03-20 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:02:05 - End Time 2025-03-20 20:02:05 [2025-03-20 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725150', 'tblTempUsageDetail_20' ) start [2025-03-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725150', 'tblTempUsageDetail_20' ) end [2025-03-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725150', 'tblTempVendorCDR_20' ) start [2025-03-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725150', 'tblTempVendorCDR_20' ) end [2025-03-20 20:02:19] Production.INFO: ProcessCDR(1,14725150,1,1,2) [2025-03-20 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725150', 'tblTempUsageDetail_20' ) start [2025-03-20 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725150', 'tblTempUsageDetail_20' ) end [2025-03-20 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:02:24] Production.INFO: ==1227== Releasing lock... [2025-03-20 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:02:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-20 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:03:06 [end_date_ymd] => 2025-03-20 20:03:06 [RateCDR] => 1 ) [2025-03-20 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:03:06' and `end` < '2025-03-20 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:03:18] Production.INFO: count ==2686 [2025-03-20 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:03:06 - End Time 2025-03-20 20:03:06 [2025-03-20 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725155', 'tblTempUsageDetail_20' ) start [2025-03-20 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725155', 'tblTempUsageDetail_20' ) end [2025-03-20 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725155', 'tblTempVendorCDR_20' ) start [2025-03-20 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725155', 'tblTempVendorCDR_20' ) end [2025-03-20 20:03:19] Production.INFO: ProcessCDR(1,14725155,1,1,2) [2025-03-20 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725155', 'tblTempUsageDetail_20' ) start [2025-03-20 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725155', 'tblTempUsageDetail_20' ) end [2025-03-20 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:03:23] Production.INFO: ==1343== Releasing lock... [2025-03-20 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:03:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-20 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:04:05 [end_date_ymd] => 2025-03-20 20:04:05 [RateCDR] => 1 ) [2025-03-20 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:04:05' and `end` < '2025-03-20 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:04:18] Production.INFO: count ==2647 [2025-03-20 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:04:05 - End Time 2025-03-20 20:04:05 [2025-03-20 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725160', 'tblTempUsageDetail_20' ) start [2025-03-20 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725160', 'tblTempUsageDetail_20' ) end [2025-03-20 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725160', 'tblTempVendorCDR_20' ) start [2025-03-20 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725160', 'tblTempVendorCDR_20' ) end [2025-03-20 20:04:19] Production.INFO: ProcessCDR(1,14725160,1,1,2) [2025-03-20 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725160', 'tblTempUsageDetail_20' ) start [2025-03-20 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725160', 'tblTempUsageDetail_20' ) end [2025-03-20 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:04:23] Production.INFO: ==1445== Releasing lock... [2025-03-20 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:04:23] Production.INFO: 48 MB #Memory Used# [2025-03-20 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:05:06 [end_date_ymd] => 2025-03-20 20:05:06 [RateCDR] => 1 ) [2025-03-20 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:05:06' and `end` < '2025-03-20 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:05:19] Production.INFO: count ==2630 [2025-03-20 20:05:20] Production.ERROR: pbx CDR StartTime 2025-03-20 17:05:06 - End Time 2025-03-20 20:05:06 [2025-03-20 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725165', 'tblTempUsageDetail_20' ) start [2025-03-20 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725165', 'tblTempUsageDetail_20' ) end [2025-03-20 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725165', 'tblTempVendorCDR_20' ) start [2025-03-20 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725165', 'tblTempVendorCDR_20' ) end [2025-03-20 20:05:20] Production.INFO: ProcessCDR(1,14725165,1,1,2) [2025-03-20 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725165', 'tblTempUsageDetail_20' ) start [2025-03-20 20:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725165', 'tblTempUsageDetail_20' ) end [2025-03-20 20:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:05:26] Production.INFO: ==1581== Releasing lock... [2025-03-20 20:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:05:26] Production.INFO: 47.75 MB #Memory Used# [2025-03-20 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:06:05 [end_date_ymd] => 2025-03-20 20:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:06:18] Production.INFO: count ==2629 [2025-03-20 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:06:05 - End Time 2025-03-20 20:06:05 [2025-03-20 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725170', 'tblTempUsageDetail_20' ) start [2025-03-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725170', 'tblTempUsageDetail_20' ) end [2025-03-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725170', 'tblTempVendorCDR_20' ) start [2025-03-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725170', 'tblTempVendorCDR_20' ) end [2025-03-20 20:06:19] Production.INFO: ProcessCDR(1,14725170,1,1,2) [2025-03-20 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725170', 'tblTempUsageDetail_20' ) start [2025-03-20 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725170', 'tblTempUsageDetail_20' ) end [2025-03-20 20:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:06:25] Production.INFO: ==1681== Releasing lock... [2025-03-20 20:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:06:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-20 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:07:06 [end_date_ymd] => 2025-03-20 20:07:06 [RateCDR] => 1 ) [2025-03-20 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:07:06' and `end` < '2025-03-20 20:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:07:19] Production.INFO: count ==2618 [2025-03-20 20:07:20] Production.ERROR: pbx CDR StartTime 2025-03-20 17:07:06 - End Time 2025-03-20 20:07:06 [2025-03-20 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725174', 'tblTempUsageDetail_20' ) start [2025-03-20 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725174', 'tblTempUsageDetail_20' ) end [2025-03-20 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725174', 'tblTempVendorCDR_20' ) start [2025-03-20 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725174', 'tblTempVendorCDR_20' ) end [2025-03-20 20:07:20] Production.INFO: ProcessCDR(1,14725174,1,1,2) [2025-03-20 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725174', 'tblTempUsageDetail_20' ) start [2025-03-20 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725174', 'tblTempUsageDetail_20' ) end [2025-03-20 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:07:24] Production.INFO: ==1792== Releasing lock... [2025-03-20 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:07:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-20 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:08:06 [end_date_ymd] => 2025-03-20 20:08:06 [RateCDR] => 1 ) [2025-03-20 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:08:06' and `end` < '2025-03-20 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:08:18] Production.INFO: count ==2593 [2025-03-20 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:08:06 - End Time 2025-03-20 20:08:06 [2025-03-20 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725180', 'tblTempUsageDetail_20' ) start [2025-03-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725180', 'tblTempUsageDetail_20' ) end [2025-03-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725180', 'tblTempVendorCDR_20' ) start [2025-03-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725180', 'tblTempVendorCDR_20' ) end [2025-03-20 20:08:19] Production.INFO: ProcessCDR(1,14725180,1,1,2) [2025-03-20 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725180', 'tblTempUsageDetail_20' ) start [2025-03-20 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725180', 'tblTempUsageDetail_20' ) end [2025-03-20 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:08:23] Production.INFO: ==1893== Releasing lock... [2025-03-20 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:08:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-20 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:09:06 [end_date_ymd] => 2025-03-20 20:09:06 [RateCDR] => 1 ) [2025-03-20 20:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:09:06' and `end` < '2025-03-20 20:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:09:19] Production.INFO: count ==2555 [2025-03-20 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:09:06 - End Time 2025-03-20 20:09:06 [2025-03-20 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725185', 'tblTempUsageDetail_20' ) start [2025-03-20 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725185', 'tblTempUsageDetail_20' ) end [2025-03-20 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725185', 'tblTempVendorCDR_20' ) start [2025-03-20 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725185', 'tblTempVendorCDR_20' ) end [2025-03-20 20:09:20] Production.INFO: ProcessCDR(1,14725185,1,1,2) [2025-03-20 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725185', 'tblTempUsageDetail_20' ) start [2025-03-20 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725185', 'tblTempUsageDetail_20' ) end [2025-03-20 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:09:24] Production.INFO: ==2000== Releasing lock... [2025-03-20 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:09:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-20 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:10:06 [end_date_ymd] => 2025-03-20 20:10:06 [RateCDR] => 1 ) [2025-03-20 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:10:06' and `end` < '2025-03-20 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:10:18] Production.INFO: count ==2537 [2025-03-20 20:10:20] Production.ERROR: pbx CDR StartTime 2025-03-20 17:10:06 - End Time 2025-03-20 20:10:06 [2025-03-20 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725191', 'tblTempUsageDetail_20' ) start [2025-03-20 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725191', 'tblTempUsageDetail_20' ) end [2025-03-20 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725191', 'tblTempVendorCDR_20' ) start [2025-03-20 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725191', 'tblTempVendorCDR_20' ) end [2025-03-20 20:10:20] Production.INFO: ProcessCDR(1,14725191,1,1,2) [2025-03-20 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725191', 'tblTempUsageDetail_20' ) start [2025-03-20 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725191', 'tblTempUsageDetail_20' ) end [2025-03-20 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:10:24] Production.INFO: ==2095== Releasing lock... [2025-03-20 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:10:24] Production.INFO: 47 MB #Memory Used# [2025-03-20 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:11:06 [end_date_ymd] => 2025-03-20 20:11:06 [RateCDR] => 1 ) [2025-03-20 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:11:06' and `end` < '2025-03-20 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:11:18] Production.INFO: count ==2483 [2025-03-20 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:11:06 - End Time 2025-03-20 20:11:06 [2025-03-20 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725196', 'tblTempUsageDetail_20' ) start [2025-03-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725196', 'tblTempUsageDetail_20' ) end [2025-03-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725196', 'tblTempVendorCDR_20' ) start [2025-03-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725196', 'tblTempVendorCDR_20' ) end [2025-03-20 20:11:19] Production.INFO: ProcessCDR(1,14725196,1,1,2) [2025-03-20 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725196', 'tblTempUsageDetail_20' ) start [2025-03-20 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725196', 'tblTempUsageDetail_20' ) end [2025-03-20 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:11:23] Production.INFO: ==2191== Releasing lock... [2025-03-20 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:11:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-20 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:12:06 [end_date_ymd] => 2025-03-20 20:12:06 [RateCDR] => 1 ) [2025-03-20 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:12:06' and `end` < '2025-03-20 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:12:18] Production.INFO: count ==2468 [2025-03-20 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:12:06 - End Time 2025-03-20 20:12:06 [2025-03-20 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725201', 'tblTempUsageDetail_20' ) start [2025-03-20 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725201', 'tblTempUsageDetail_20' ) end [2025-03-20 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725201', 'tblTempVendorCDR_20' ) start [2025-03-20 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725201', 'tblTempVendorCDR_20' ) end [2025-03-20 20:12:19] Production.INFO: ProcessCDR(1,14725201,1,1,2) [2025-03-20 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725201', 'tblTempUsageDetail_20' ) start [2025-03-20 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725201', 'tblTempUsageDetail_20' ) end [2025-03-20 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:12:23] Production.INFO: ==2300== Releasing lock... [2025-03-20 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:12:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-20 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:13:06 [end_date_ymd] => 2025-03-20 20:13:06 [RateCDR] => 1 ) [2025-03-20 20:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:13:06' and `end` < '2025-03-20 20:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:13:19] Production.INFO: count ==2396 [2025-03-20 20:13:20] Production.ERROR: pbx CDR StartTime 2025-03-20 17:13:06 - End Time 2025-03-20 20:13:06 [2025-03-20 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725206', 'tblTempUsageDetail_20' ) start [2025-03-20 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725206', 'tblTempUsageDetail_20' ) end [2025-03-20 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725206', 'tblTempVendorCDR_20' ) start [2025-03-20 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725206', 'tblTempVendorCDR_20' ) end [2025-03-20 20:13:20] Production.INFO: ProcessCDR(1,14725206,1,1,2) [2025-03-20 20:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725206', 'tblTempUsageDetail_20' ) start [2025-03-20 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725206', 'tblTempUsageDetail_20' ) end [2025-03-20 20:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:13:25] Production.INFO: ==2398== Releasing lock... [2025-03-20 20:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:13:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-20 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:14:05 [end_date_ymd] => 2025-03-20 20:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:14:17] Production.INFO: count ==2311 [2025-03-20 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:14:05 - End Time 2025-03-20 20:14:05 [2025-03-20 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725211', 'tblTempUsageDetail_20' ) start [2025-03-20 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725211', 'tblTempUsageDetail_20' ) end [2025-03-20 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725211', 'tblTempVendorCDR_20' ) start [2025-03-20 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725211', 'tblTempVendorCDR_20' ) end [2025-03-20 20:14:18] Production.INFO: ProcessCDR(1,14725211,1,1,2) [2025-03-20 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725211', 'tblTempUsageDetail_20' ) start [2025-03-20 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725211', 'tblTempUsageDetail_20' ) end [2025-03-20 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:14:24] Production.INFO: ==2486== Releasing lock... [2025-03-20 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:14:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-20 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:15:06 [end_date_ymd] => 2025-03-20 20:15:06 [RateCDR] => 1 ) [2025-03-20 20:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:15:06' and `end` < '2025-03-20 20:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:15:19] Production.INFO: count ==2264 [2025-03-20 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:15:06 - End Time 2025-03-20 20:15:06 [2025-03-20 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725216', 'tblTempUsageDetail_20' ) start [2025-03-20 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725216', 'tblTempUsageDetail_20' ) end [2025-03-20 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725216', 'tblTempVendorCDR_20' ) start [2025-03-20 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725216', 'tblTempVendorCDR_20' ) end [2025-03-20 20:15:19] Production.INFO: ProcessCDR(1,14725216,1,1,2) [2025-03-20 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725216', 'tblTempUsageDetail_20' ) start [2025-03-20 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725216', 'tblTempUsageDetail_20' ) end [2025-03-20 20:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:15:25] Production.INFO: ==2577== Releasing lock... [2025-03-20 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:15:25] Production.INFO: 45 MB #Memory Used# [2025-03-20 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:16:05 [end_date_ymd] => 2025-03-20 20:16:05 [RateCDR] => 1 ) [2025-03-20 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:16:05' and `end` < '2025-03-20 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:16:18] Production.INFO: count ==2256 [2025-03-20 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:16:05 - End Time 2025-03-20 20:16:05 [2025-03-20 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725221', 'tblTempUsageDetail_20' ) start [2025-03-20 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725221', 'tblTempUsageDetail_20' ) end [2025-03-20 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725221', 'tblTempVendorCDR_20' ) start [2025-03-20 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725221', 'tblTempVendorCDR_20' ) end [2025-03-20 20:16:19] Production.INFO: ProcessCDR(1,14725221,1,1,2) [2025-03-20 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725221', 'tblTempUsageDetail_20' ) start [2025-03-20 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725221', 'tblTempUsageDetail_20' ) end [2025-03-20 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:16:24] Production.INFO: ==2664== Releasing lock... [2025-03-20 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:16:24] Production.INFO: 45 MB #Memory Used# [2025-03-20 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:17:05 [end_date_ymd] => 2025-03-20 20:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:17:18] Production.INFO: count ==2254 [2025-03-20 20:17:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:17:05 - End Time 2025-03-20 20:17:05 [2025-03-20 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725226', 'tblTempUsageDetail_20' ) start [2025-03-20 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725226', 'tblTempUsageDetail_20' ) end [2025-03-20 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725226', 'tblTempVendorCDR_20' ) start [2025-03-20 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725226', 'tblTempVendorCDR_20' ) end [2025-03-20 20:17:19] Production.INFO: ProcessCDR(1,14725226,1,1,2) [2025-03-20 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725226', 'tblTempUsageDetail_20' ) start [2025-03-20 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725226', 'tblTempUsageDetail_20' ) end [2025-03-20 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:17:23] Production.INFO: ==2788== Releasing lock... [2025-03-20 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:17:23] Production.INFO: 45 MB #Memory Used# [2025-03-20 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:18:06 [end_date_ymd] => 2025-03-20 20:18:06 [RateCDR] => 1 ) [2025-03-20 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:18:06' and `end` < '2025-03-20 20:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:18:18] Production.INFO: count ==2257 [2025-03-20 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:18:06 - End Time 2025-03-20 20:18:06 [2025-03-20 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725231', 'tblTempUsageDetail_20' ) start [2025-03-20 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725231', 'tblTempUsageDetail_20' ) end [2025-03-20 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725231', 'tblTempVendorCDR_20' ) start [2025-03-20 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725231', 'tblTempVendorCDR_20' ) end [2025-03-20 20:18:19] Production.INFO: ProcessCDR(1,14725231,1,1,2) [2025-03-20 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725231', 'tblTempUsageDetail_20' ) start [2025-03-20 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725231', 'tblTempUsageDetail_20' ) end [2025-03-20 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:18:23] Production.INFO: ==2873== Releasing lock... [2025-03-20 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:18:23] Production.INFO: 45 MB #Memory Used# [2025-03-20 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:19:05 [end_date_ymd] => 2025-03-20 20:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:19:18] Production.INFO: count ==2258 [2025-03-20 20:19:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:19:05 - End Time 2025-03-20 20:19:05 [2025-03-20 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725236', 'tblTempUsageDetail_20' ) start [2025-03-20 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725236', 'tblTempUsageDetail_20' ) end [2025-03-20 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725236', 'tblTempVendorCDR_20' ) start [2025-03-20 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725236', 'tblTempVendorCDR_20' ) end [2025-03-20 20:19:19] Production.INFO: ProcessCDR(1,14725236,1,1,2) [2025-03-20 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725236', 'tblTempUsageDetail_20' ) start [2025-03-20 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725236', 'tblTempUsageDetail_20' ) end [2025-03-20 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:19:24] Production.INFO: ==2963== Releasing lock... [2025-03-20 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:19:24] Production.INFO: 45 MB #Memory Used# [2025-03-20 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:20:06 [end_date_ymd] => 2025-03-20 20:20:06 [RateCDR] => 1 ) [2025-03-20 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:20:06' and `end` < '2025-03-20 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:20:19] Production.INFO: count ==2257 [2025-03-20 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-20 17:20:06 - End Time 2025-03-20 20:20:06 [2025-03-20 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725242', 'tblTempUsageDetail_20' ) start [2025-03-20 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725242', 'tblTempUsageDetail_20' ) end [2025-03-20 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725242', 'tblTempVendorCDR_20' ) start [2025-03-20 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725242', 'tblTempVendorCDR_20' ) end [2025-03-20 20:20:20] Production.INFO: ProcessCDR(1,14725242,1,1,2) [2025-03-20 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725242', 'tblTempUsageDetail_20' ) start [2025-03-20 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725242', 'tblTempUsageDetail_20' ) end [2025-03-20 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:20:24] Production.INFO: ==3055== Releasing lock... [2025-03-20 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:20:24] Production.INFO: 45 MB #Memory Used# [2025-03-20 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:21:06 [end_date_ymd] => 2025-03-20 20:21:06 [RateCDR] => 1 ) [2025-03-20 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:21:06' and `end` < '2025-03-20 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:21:18] Production.INFO: count ==2232 [2025-03-20 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:21:06 - End Time 2025-03-20 20:21:06 [2025-03-20 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725247', 'tblTempUsageDetail_20' ) start [2025-03-20 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725247', 'tblTempUsageDetail_20' ) end [2025-03-20 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725247', 'tblTempVendorCDR_20' ) start [2025-03-20 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725247', 'tblTempVendorCDR_20' ) end [2025-03-20 20:21:19] Production.INFO: ProcessCDR(1,14725247,1,1,2) [2025-03-20 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725247', 'tblTempUsageDetail_20' ) start [2025-03-20 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725247', 'tblTempUsageDetail_20' ) end [2025-03-20 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:21:23] Production.INFO: ==3145== Releasing lock... [2025-03-20 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:21:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:22:05 [end_date_ymd] => 2025-03-20 20:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:22:18] Production.INFO: count ==2226 [2025-03-20 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:22:05 - End Time 2025-03-20 20:22:05 [2025-03-20 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725252', 'tblTempUsageDetail_20' ) start [2025-03-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725252', 'tblTempUsageDetail_20' ) end [2025-03-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725252', 'tblTempVendorCDR_20' ) start [2025-03-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725252', 'tblTempVendorCDR_20' ) end [2025-03-20 20:22:19] Production.INFO: ProcessCDR(1,14725252,1,1,2) [2025-03-20 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725252', 'tblTempUsageDetail_20' ) start [2025-03-20 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725252', 'tblTempUsageDetail_20' ) end [2025-03-20 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:22:22] Production.INFO: ==3234== Releasing lock... [2025-03-20 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:22:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:23:05 [end_date_ymd] => 2025-03-20 20:23:05 [RateCDR] => 1 ) [2025-03-20 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:23:05' and `end` < '2025-03-20 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:23:18] Production.INFO: count ==2218 [2025-03-20 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:23:05 - End Time 2025-03-20 20:23:05 [2025-03-20 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725257', 'tblTempUsageDetail_20' ) start [2025-03-20 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725257', 'tblTempUsageDetail_20' ) end [2025-03-20 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725257', 'tblTempVendorCDR_20' ) start [2025-03-20 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725257', 'tblTempVendorCDR_20' ) end [2025-03-20 20:23:19] Production.INFO: ProcessCDR(1,14725257,1,1,2) [2025-03-20 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725257', 'tblTempUsageDetail_20' ) start [2025-03-20 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725257', 'tblTempUsageDetail_20' ) end [2025-03-20 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:23:23] Production.INFO: ==3314== Releasing lock... [2025-03-20 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:23:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:24:06 [end_date_ymd] => 2025-03-20 20:24:06 [RateCDR] => 1 ) [2025-03-20 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:24:06' and `end` < '2025-03-20 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:24:18] Production.INFO: count ==2212 [2025-03-20 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:24:06 - End Time 2025-03-20 20:24:06 [2025-03-20 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725262', 'tblTempUsageDetail_20' ) start [2025-03-20 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725262', 'tblTempUsageDetail_20' ) end [2025-03-20 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725262', 'tblTempVendorCDR_20' ) start [2025-03-20 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725262', 'tblTempVendorCDR_20' ) end [2025-03-20 20:24:19] Production.INFO: ProcessCDR(1,14725262,1,1,2) [2025-03-20 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725262', 'tblTempUsageDetail_20' ) start [2025-03-20 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725262', 'tblTempUsageDetail_20' ) end [2025-03-20 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:24:23] Production.INFO: ==3403== Releasing lock... [2025-03-20 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:24:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:25:05 [end_date_ymd] => 2025-03-20 20:25:05 [RateCDR] => 1 ) [2025-03-20 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:25:05' and `end` < '2025-03-20 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:25:18] Production.INFO: count ==2217 [2025-03-20 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:25:05 - End Time 2025-03-20 20:25:05 [2025-03-20 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725267', 'tblTempUsageDetail_20' ) start [2025-03-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725267', 'tblTempUsageDetail_20' ) end [2025-03-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725267', 'tblTempVendorCDR_20' ) start [2025-03-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725267', 'tblTempVendorCDR_20' ) end [2025-03-20 20:25:19] Production.INFO: ProcessCDR(1,14725267,1,1,2) [2025-03-20 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725267', 'tblTempUsageDetail_20' ) start [2025-03-20 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725267', 'tblTempUsageDetail_20' ) end [2025-03-20 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:25:23] Production.INFO: ==3481== Releasing lock... [2025-03-20 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:25:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:26:06 [end_date_ymd] => 2025-03-20 20:26:06 [RateCDR] => 1 ) [2025-03-20 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:26:06' and `end` < '2025-03-20 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:26:18] Production.INFO: count ==2223 [2025-03-20 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:26:06 - End Time 2025-03-20 20:26:06 [2025-03-20 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725272', 'tblTempUsageDetail_20' ) start [2025-03-20 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725272', 'tblTempUsageDetail_20' ) end [2025-03-20 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725272', 'tblTempVendorCDR_20' ) start [2025-03-20 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725272', 'tblTempVendorCDR_20' ) end [2025-03-20 20:26:19] Production.INFO: ProcessCDR(1,14725272,1,1,2) [2025-03-20 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725272', 'tblTempUsageDetail_20' ) start [2025-03-20 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725272', 'tblTempUsageDetail_20' ) end [2025-03-20 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:26:24] Production.INFO: ==3573== Releasing lock... [2025-03-20 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:26:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:27:05 [end_date_ymd] => 2025-03-20 20:27:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:27:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:27:18] Production.INFO: count ==2228 [2025-03-20 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:27:05 - End Time 2025-03-20 20:27:05 [2025-03-20 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725277', 'tblTempUsageDetail_20' ) start [2025-03-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725277', 'tblTempUsageDetail_20' ) end [2025-03-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725277', 'tblTempVendorCDR_20' ) start [2025-03-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725277', 'tblTempVendorCDR_20' ) end [2025-03-20 20:27:18] Production.INFO: ProcessCDR(1,14725277,1,1,2) [2025-03-20 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725277', 'tblTempUsageDetail_20' ) start [2025-03-20 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725277', 'tblTempUsageDetail_20' ) end [2025-03-20 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:27:22] Production.INFO: ==3659== Releasing lock... [2025-03-20 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:27:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:28:06 [end_date_ymd] => 2025-03-20 20:28:06 [RateCDR] => 1 ) [2025-03-20 20:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:28:06' and `end` < '2025-03-20 20:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:28:18] Production.INFO: count ==2224 [2025-03-20 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:28:06 - End Time 2025-03-20 20:28:06 [2025-03-20 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725282', 'tblTempUsageDetail_20' ) start [2025-03-20 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725282', 'tblTempUsageDetail_20' ) end [2025-03-20 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725282', 'tblTempVendorCDR_20' ) start [2025-03-20 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725282', 'tblTempVendorCDR_20' ) end [2025-03-20 20:28:19] Production.INFO: ProcessCDR(1,14725282,1,1,2) [2025-03-20 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725282', 'tblTempUsageDetail_20' ) start [2025-03-20 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725282', 'tblTempUsageDetail_20' ) end [2025-03-20 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:28:23] Production.INFO: ==3744== Releasing lock... [2025-03-20 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:28:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:29:06 [end_date_ymd] => 2025-03-20 20:29:06 [RateCDR] => 1 ) [2025-03-20 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:29:06' and `end` < '2025-03-20 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:29:18] Production.INFO: count ==2224 [2025-03-20 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:29:06 - End Time 2025-03-20 20:29:06 [2025-03-20 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725287', 'tblTempUsageDetail_20' ) start [2025-03-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725287', 'tblTempUsageDetail_20' ) end [2025-03-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725287', 'tblTempVendorCDR_20' ) start [2025-03-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725287', 'tblTempVendorCDR_20' ) end [2025-03-20 20:29:19] Production.INFO: ProcessCDR(1,14725287,1,1,2) [2025-03-20 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725287', 'tblTempUsageDetail_20' ) start [2025-03-20 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725287', 'tblTempUsageDetail_20' ) end [2025-03-20 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:29:23] Production.INFO: ==3827== Releasing lock... [2025-03-20 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:29:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:30:07 [end_date_ymd] => 2025-03-20 20:30:07 [RateCDR] => 1 ) [2025-03-20 20:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:30:07' and `end` < '2025-03-20 20:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:30:19] Production.INFO: count ==2212 [2025-03-20 20:30:20] Production.ERROR: pbx CDR StartTime 2025-03-20 17:30:07 - End Time 2025-03-20 20:30:07 [2025-03-20 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725293', 'tblTempUsageDetail_20' ) start [2025-03-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725293', 'tblTempUsageDetail_20' ) end [2025-03-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725293', 'tblTempVendorCDR_20' ) start [2025-03-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725293', 'tblTempVendorCDR_20' ) end [2025-03-20 20:30:20] Production.INFO: ProcessCDR(1,14725293,1,1,2) [2025-03-20 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725293', 'tblTempUsageDetail_20' ) start [2025-03-20 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725293', 'tblTempUsageDetail_20' ) end [2025-03-20 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:30:24] Production.INFO: ==3918== Releasing lock... [2025-03-20 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:30:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-20 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:31:06 [end_date_ymd] => 2025-03-20 20:31:06 [RateCDR] => 1 ) [2025-03-20 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:31:06' and `end` < '2025-03-20 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:31:18] Production.INFO: count ==2124 [2025-03-20 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:31:06 - End Time 2025-03-20 20:31:06 [2025-03-20 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725298', 'tblTempUsageDetail_20' ) start [2025-03-20 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725298', 'tblTempUsageDetail_20' ) end [2025-03-20 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725298', 'tblTempVendorCDR_20' ) start [2025-03-20 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725298', 'tblTempVendorCDR_20' ) end [2025-03-20 20:31:19] Production.INFO: ProcessCDR(1,14725298,1,1,2) [2025-03-20 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725298', 'tblTempUsageDetail_20' ) start [2025-03-20 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725298', 'tblTempUsageDetail_20' ) end [2025-03-20 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:31:23] Production.INFO: ==4000== Releasing lock... [2025-03-20 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:31:23] Production.INFO: 44 MB #Memory Used# [2025-03-20 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:32:06 [end_date_ymd] => 2025-03-20 20:32:06 [RateCDR] => 1 ) [2025-03-20 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:32:06' and `end` < '2025-03-20 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:32:19] Production.INFO: count ==2118 [2025-03-20 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:32:06 - End Time 2025-03-20 20:32:06 [2025-03-20 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725303', 'tblTempUsageDetail_20' ) start [2025-03-20 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725303', 'tblTempUsageDetail_20' ) end [2025-03-20 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725303', 'tblTempVendorCDR_20' ) start [2025-03-20 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725303', 'tblTempVendorCDR_20' ) end [2025-03-20 20:32:20] Production.INFO: ProcessCDR(1,14725303,1,1,2) [2025-03-20 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725303', 'tblTempUsageDetail_20' ) start [2025-03-20 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725303', 'tblTempUsageDetail_20' ) end [2025-03-20 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:32:23] Production.INFO: ==4158== Releasing lock... [2025-03-20 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:32:23] Production.INFO: 44 MB #Memory Used# [2025-03-20 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:33:05 [end_date_ymd] => 2025-03-20 20:33:05 [RateCDR] => 1 ) [2025-03-20 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:33:05' and `end` < '2025-03-20 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:33:18] Production.INFO: count ==2110 [2025-03-20 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:33:05 - End Time 2025-03-20 20:33:05 [2025-03-20 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725308', 'tblTempUsageDetail_20' ) start [2025-03-20 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725308', 'tblTempUsageDetail_20' ) end [2025-03-20 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725308', 'tblTempVendorCDR_20' ) start [2025-03-20 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725308', 'tblTempVendorCDR_20' ) end [2025-03-20 20:33:19] Production.INFO: ProcessCDR(1,14725308,1,1,2) [2025-03-20 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725308', 'tblTempUsageDetail_20' ) start [2025-03-20 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725308', 'tblTempUsageDetail_20' ) end [2025-03-20 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:33:23] Production.INFO: ==4274== Releasing lock... [2025-03-20 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:33:23] Production.INFO: 44 MB #Memory Used# [2025-03-20 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:34:06 [end_date_ymd] => 2025-03-20 20:34:06 [RateCDR] => 1 ) [2025-03-20 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:34:06' and `end` < '2025-03-20 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:34:18] Production.INFO: count ==2084 [2025-03-20 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:34:06 - End Time 2025-03-20 20:34:06 [2025-03-20 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725313', 'tblTempUsageDetail_20' ) start [2025-03-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725313', 'tblTempUsageDetail_20' ) end [2025-03-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725313', 'tblTempVendorCDR_20' ) start [2025-03-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725313', 'tblTempVendorCDR_20' ) end [2025-03-20 20:34:19] Production.INFO: ProcessCDR(1,14725313,1,1,2) [2025-03-20 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725313', 'tblTempUsageDetail_20' ) start [2025-03-20 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725313', 'tblTempUsageDetail_20' ) end [2025-03-20 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:34:23] Production.INFO: ==4397== Releasing lock... [2025-03-20 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:34:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-20 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:35:06 [end_date_ymd] => 2025-03-20 20:35:06 [RateCDR] => 1 ) [2025-03-20 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:35:06' and `end` < '2025-03-20 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:35:19] Production.INFO: count ==2060 [2025-03-20 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:35:06 - End Time 2025-03-20 20:35:06 [2025-03-20 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725318', 'tblTempUsageDetail_20' ) start [2025-03-20 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725318', 'tblTempUsageDetail_20' ) end [2025-03-20 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725318', 'tblTempVendorCDR_20' ) start [2025-03-20 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725318', 'tblTempVendorCDR_20' ) end [2025-03-20 20:35:19] Production.INFO: ProcessCDR(1,14725318,1,1,2) [2025-03-20 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725318', 'tblTempUsageDetail_20' ) start [2025-03-20 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725318', 'tblTempUsageDetail_20' ) end [2025-03-20 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:35:23] Production.INFO: ==4514== Releasing lock... [2025-03-20 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:35:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-20 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:36:06 [end_date_ymd] => 2025-03-20 20:36:06 [RateCDR] => 1 ) [2025-03-20 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:36:06' and `end` < '2025-03-20 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:36:18] Production.INFO: count ==2056 [2025-03-20 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:36:06 - End Time 2025-03-20 20:36:06 [2025-03-20 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725323', 'tblTempUsageDetail_20' ) start [2025-03-20 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725323', 'tblTempUsageDetail_20' ) end [2025-03-20 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725323', 'tblTempVendorCDR_20' ) start [2025-03-20 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725323', 'tblTempVendorCDR_20' ) end [2025-03-20 20:36:19] Production.INFO: ProcessCDR(1,14725323,1,1,2) [2025-03-20 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725323', 'tblTempUsageDetail_20' ) start [2025-03-20 20:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725323', 'tblTempUsageDetail_20' ) end [2025-03-20 20:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:36:25] Production.INFO: ==4635== Releasing lock... [2025-03-20 20:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:36:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-20 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:37:05 [end_date_ymd] => 2025-03-20 20:37:05 [RateCDR] => 1 ) [2025-03-20 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:37:05' and `end` < '2025-03-20 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:37:18] Production.INFO: count ==2052 [2025-03-20 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:37:05 - End Time 2025-03-20 20:37:05 [2025-03-20 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725328', 'tblTempUsageDetail_20' ) start [2025-03-20 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725328', 'tblTempUsageDetail_20' ) end [2025-03-20 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725328', 'tblTempVendorCDR_20' ) start [2025-03-20 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725328', 'tblTempVendorCDR_20' ) end [2025-03-20 20:37:19] Production.INFO: ProcessCDR(1,14725328,1,1,2) [2025-03-20 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725328', 'tblTempUsageDetail_20' ) start [2025-03-20 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725328', 'tblTempUsageDetail_20' ) end [2025-03-20 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:37:22] Production.INFO: ==4745== Releasing lock... [2025-03-20 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:37:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-20 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:38:06 [end_date_ymd] => 2025-03-20 20:38:06 [RateCDR] => 1 ) [2025-03-20 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:38:06' and `end` < '2025-03-20 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:38:19] Production.INFO: count ==2048 [2025-03-20 20:38:20] Production.ERROR: pbx CDR StartTime 2025-03-20 17:38:06 - End Time 2025-03-20 20:38:06 [2025-03-20 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725333', 'tblTempUsageDetail_20' ) start [2025-03-20 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725333', 'tblTempUsageDetail_20' ) end [2025-03-20 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725333', 'tblTempVendorCDR_20' ) start [2025-03-20 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725333', 'tblTempVendorCDR_20' ) end [2025-03-20 20:38:20] Production.INFO: ProcessCDR(1,14725333,1,1,2) [2025-03-20 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725333', 'tblTempUsageDetail_20' ) start [2025-03-20 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725333', 'tblTempUsageDetail_20' ) end [2025-03-20 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:38:24] Production.INFO: ==4865== Releasing lock... [2025-03-20 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:38:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-20 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:39:05 [end_date_ymd] => 2025-03-20 20:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:39:18] Production.INFO: count ==2039 [2025-03-20 20:39:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:39:05 - End Time 2025-03-20 20:39:05 [2025-03-20 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725338', 'tblTempUsageDetail_20' ) start [2025-03-20 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725338', 'tblTempUsageDetail_20' ) end [2025-03-20 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725338', 'tblTempVendorCDR_20' ) start [2025-03-20 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725338', 'tblTempVendorCDR_20' ) end [2025-03-20 20:39:19] Production.INFO: ProcessCDR(1,14725338,1,1,2) [2025-03-20 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725338', 'tblTempUsageDetail_20' ) start [2025-03-20 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725338', 'tblTempUsageDetail_20' ) end [2025-03-20 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:39:23] Production.INFO: ==4975== Releasing lock... [2025-03-20 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:39:23] Production.INFO: 43 MB #Memory Used# [2025-03-20 20:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:40:07 [end_date_ymd] => 2025-03-20 20:40:07 [RateCDR] => 1 ) [2025-03-20 20:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:40:07' and `end` < '2025-03-20 20:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:40:20] Production.INFO: count ==2044 [2025-03-20 20:40:21] Production.ERROR: pbx CDR StartTime 2025-03-20 17:40:07 - End Time 2025-03-20 20:40:07 [2025-03-20 20:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725344', 'tblTempUsageDetail_20' ) start [2025-03-20 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725344', 'tblTempUsageDetail_20' ) end [2025-03-20 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725344', 'tblTempVendorCDR_20' ) start [2025-03-20 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725344', 'tblTempVendorCDR_20' ) end [2025-03-20 20:40:21] Production.INFO: ProcessCDR(1,14725344,1,1,2) [2025-03-20 20:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725344', 'tblTempUsageDetail_20' ) start [2025-03-20 20:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725344', 'tblTempUsageDetail_20' ) end [2025-03-20 20:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:40:27] Production.INFO: ==5098== Releasing lock... [2025-03-20 20:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:40:27] Production.INFO: 43 MB #Memory Used# [2025-03-20 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:41:05 [end_date_ymd] => 2025-03-20 20:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:41:18] Production.INFO: count ==2022 [2025-03-20 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:41:05 - End Time 2025-03-20 20:41:05 [2025-03-20 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725349', 'tblTempUsageDetail_20' ) start [2025-03-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725349', 'tblTempUsageDetail_20' ) end [2025-03-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725349', 'tblTempVendorCDR_20' ) start [2025-03-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725349', 'tblTempVendorCDR_20' ) end [2025-03-20 20:41:18] Production.INFO: ProcessCDR(1,14725349,1,1,2) [2025-03-20 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725349', 'tblTempUsageDetail_20' ) start [2025-03-20 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725349', 'tblTempUsageDetail_20' ) end [2025-03-20 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:41:22] Production.INFO: ==5223== Releasing lock... [2025-03-20 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:41:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-20 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:42:06 [end_date_ymd] => 2025-03-20 20:42:06 [RateCDR] => 1 ) [2025-03-20 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:42:06' and `end` < '2025-03-20 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:42:19] Production.INFO: count ==2011 [2025-03-20 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:42:06 - End Time 2025-03-20 20:42:06 [2025-03-20 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725354', 'tblTempUsageDetail_20' ) start [2025-03-20 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725354', 'tblTempUsageDetail_20' ) end [2025-03-20 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725354', 'tblTempVendorCDR_20' ) start [2025-03-20 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725354', 'tblTempVendorCDR_20' ) end [2025-03-20 20:42:19] Production.INFO: ProcessCDR(1,14725354,1,1,2) [2025-03-20 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725354', 'tblTempUsageDetail_20' ) start [2025-03-20 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725354', 'tblTempUsageDetail_20' ) end [2025-03-20 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:42:24] Production.INFO: ==5343== Releasing lock... [2025-03-20 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:42:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-20 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:43:06 [end_date_ymd] => 2025-03-20 20:43:06 [RateCDR] => 1 ) [2025-03-20 20:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:43:06' and `end` < '2025-03-20 20:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:43:18] Production.INFO: count ==2010 [2025-03-20 20:43:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:43:06 - End Time 2025-03-20 20:43:06 [2025-03-20 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725359', 'tblTempUsageDetail_20' ) start [2025-03-20 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725359', 'tblTempUsageDetail_20' ) end [2025-03-20 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725359', 'tblTempVendorCDR_20' ) start [2025-03-20 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725359', 'tblTempVendorCDR_20' ) end [2025-03-20 20:43:19] Production.INFO: ProcessCDR(1,14725359,1,1,2) [2025-03-20 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725359', 'tblTempUsageDetail_20' ) start [2025-03-20 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725359', 'tblTempUsageDetail_20' ) end [2025-03-20 20:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:43:25] Production.INFO: ==5458== Releasing lock... [2025-03-20 20:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:43:25] Production.INFO: 42.75 MB #Memory Used# [2025-03-20 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:44:06 [end_date_ymd] => 2025-03-20 20:44:06 [RateCDR] => 1 ) [2025-03-20 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:44:06' and `end` < '2025-03-20 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:44:19] Production.INFO: count ==2002 [2025-03-20 20:44:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:44:06 - End Time 2025-03-20 20:44:06 [2025-03-20 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725364', 'tblTempUsageDetail_20' ) start [2025-03-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725364', 'tblTempUsageDetail_20' ) end [2025-03-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725364', 'tblTempVendorCDR_20' ) start [2025-03-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725364', 'tblTempVendorCDR_20' ) end [2025-03-20 20:44:19] Production.INFO: ProcessCDR(1,14725364,1,1,2) [2025-03-20 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725364', 'tblTempUsageDetail_20' ) start [2025-03-20 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725364', 'tblTempUsageDetail_20' ) end [2025-03-20 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:44:23] Production.INFO: ==5578== Releasing lock... [2025-03-20 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:44:23] Production.INFO: 43 MB #Memory Used# [2025-03-20 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:45:05 [end_date_ymd] => 2025-03-20 20:45:05 [RateCDR] => 1 ) [2025-03-20 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:45:05' and `end` < '2025-03-20 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:45:18] Production.INFO: count ==1993 [2025-03-20 20:45:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:45:05 - End Time 2025-03-20 20:45:05 [2025-03-20 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725369', 'tblTempUsageDetail_20' ) start [2025-03-20 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725369', 'tblTempUsageDetail_20' ) end [2025-03-20 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725369', 'tblTempVendorCDR_20' ) start [2025-03-20 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725369', 'tblTempVendorCDR_20' ) end [2025-03-20 20:45:19] Production.INFO: ProcessCDR(1,14725369,1,1,2) [2025-03-20 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725369', 'tblTempUsageDetail_20' ) start [2025-03-20 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725369', 'tblTempUsageDetail_20' ) end [2025-03-20 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:45:23] Production.INFO: ==5698== Releasing lock... [2025-03-20 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:45:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-20 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:46:06 [end_date_ymd] => 2025-03-20 20:46:06 [RateCDR] => 1 ) [2025-03-20 20:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:46:06' and `end` < '2025-03-20 20:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:46:18] Production.INFO: count ==1996 [2025-03-20 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:46:06 - End Time 2025-03-20 20:46:06 [2025-03-20 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725374', 'tblTempUsageDetail_20' ) start [2025-03-20 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725374', 'tblTempUsageDetail_20' ) end [2025-03-20 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725374', 'tblTempVendorCDR_20' ) start [2025-03-20 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725374', 'tblTempVendorCDR_20' ) end [2025-03-20 20:46:19] Production.INFO: ProcessCDR(1,14725374,1,1,2) [2025-03-20 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725374', 'tblTempUsageDetail_20' ) start [2025-03-20 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725374', 'tblTempUsageDetail_20' ) end [2025-03-20 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:46:23] Production.INFO: ==5820== Releasing lock... [2025-03-20 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:46:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-20 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:47:05 [end_date_ymd] => 2025-03-20 20:47:05 [RateCDR] => 1 ) [2025-03-20 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:47:05' and `end` < '2025-03-20 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:47:18] Production.INFO: count ==1994 [2025-03-20 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:47:05 - End Time 2025-03-20 20:47:05 [2025-03-20 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725379', 'tblTempUsageDetail_20' ) start [2025-03-20 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725379', 'tblTempUsageDetail_20' ) end [2025-03-20 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725379', 'tblTempVendorCDR_20' ) start [2025-03-20 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725379', 'tblTempVendorCDR_20' ) end [2025-03-20 20:47:19] Production.INFO: ProcessCDR(1,14725379,1,1,2) [2025-03-20 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725379', 'tblTempUsageDetail_20' ) start [2025-03-20 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725379', 'tblTempUsageDetail_20' ) end [2025-03-20 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:47:24] Production.INFO: ==5932== Releasing lock... [2025-03-20 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:47:24] Production.INFO: 43 MB #Memory Used# [2025-03-20 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:48:05 [end_date_ymd] => 2025-03-20 20:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:48:18] Production.INFO: count ==1985 [2025-03-20 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:48:05 - End Time 2025-03-20 20:48:05 [2025-03-20 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725384', 'tblTempUsageDetail_20' ) start [2025-03-20 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725384', 'tblTempUsageDetail_20' ) end [2025-03-20 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725384', 'tblTempVendorCDR_20' ) start [2025-03-20 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725384', 'tblTempVendorCDR_20' ) end [2025-03-20 20:48:19] Production.INFO: ProcessCDR(1,14725384,1,1,2) [2025-03-20 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725384', 'tblTempUsageDetail_20' ) start [2025-03-20 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725384', 'tblTempUsageDetail_20' ) end [2025-03-20 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:48:23] Production.INFO: ==6054== Releasing lock... [2025-03-20 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:48:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-20 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:49:05 [end_date_ymd] => 2025-03-20 20:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:49:18] Production.INFO: count ==1984 [2025-03-20 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:49:05 - End Time 2025-03-20 20:49:05 [2025-03-20 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725389', 'tblTempUsageDetail_20' ) start [2025-03-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725389', 'tblTempUsageDetail_20' ) end [2025-03-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725389', 'tblTempVendorCDR_20' ) start [2025-03-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725389', 'tblTempVendorCDR_20' ) end [2025-03-20 20:49:18] Production.INFO: ProcessCDR(1,14725389,1,1,2) [2025-03-20 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725389', 'tblTempUsageDetail_20' ) start [2025-03-20 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725389', 'tblTempUsageDetail_20' ) end [2025-03-20 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:49:24] Production.INFO: ==6139== Releasing lock... [2025-03-20 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:49:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-20 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:50:06 [end_date_ymd] => 2025-03-20 20:50:06 [RateCDR] => 1 ) [2025-03-20 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:50:06' and `end` < '2025-03-20 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:50:19] Production.INFO: count ==1972 [2025-03-20 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:50:06 - End Time 2025-03-20 20:50:06 [2025-03-20 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725395', 'tblTempUsageDetail_20' ) start [2025-03-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725395', 'tblTempUsageDetail_20' ) end [2025-03-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725395', 'tblTempVendorCDR_20' ) start [2025-03-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725395', 'tblTempVendorCDR_20' ) end [2025-03-20 20:50:19] Production.INFO: ProcessCDR(1,14725395,1,1,2) [2025-03-20 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725395', 'tblTempUsageDetail_20' ) start [2025-03-20 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725395', 'tblTempUsageDetail_20' ) end [2025-03-20 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:50:24] Production.INFO: ==6227== Releasing lock... [2025-03-20 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:50:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-20 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:51:05 [end_date_ymd] => 2025-03-20 20:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:51:18] Production.INFO: count ==1909 [2025-03-20 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:51:05 - End Time 2025-03-20 20:51:05 [2025-03-20 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725400', 'tblTempUsageDetail_20' ) start [2025-03-20 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725400', 'tblTempUsageDetail_20' ) end [2025-03-20 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725400', 'tblTempVendorCDR_20' ) start [2025-03-20 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725400', 'tblTempVendorCDR_20' ) end [2025-03-20 20:51:18] Production.INFO: ProcessCDR(1,14725400,1,1,2) [2025-03-20 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725400', 'tblTempUsageDetail_20' ) start [2025-03-20 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725400', 'tblTempUsageDetail_20' ) end [2025-03-20 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:51:24] Production.INFO: ==6321== Releasing lock... [2025-03-20 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:51:24] Production.INFO: 42 MB #Memory Used# [2025-03-20 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:52:05 [end_date_ymd] => 2025-03-20 20:52:05 [RateCDR] => 1 ) [2025-03-20 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:52:05' and `end` < '2025-03-20 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:52:18] Production.INFO: count ==1897 [2025-03-20 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:52:05 - End Time 2025-03-20 20:52:05 [2025-03-20 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725405', 'tblTempUsageDetail_20' ) start [2025-03-20 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725405', 'tblTempUsageDetail_20' ) end [2025-03-20 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725405', 'tblTempVendorCDR_20' ) start [2025-03-20 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725405', 'tblTempVendorCDR_20' ) end [2025-03-20 20:52:18] Production.INFO: ProcessCDR(1,14725405,1,1,2) [2025-03-20 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725405', 'tblTempUsageDetail_20' ) start [2025-03-20 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725405', 'tblTempUsageDetail_20' ) end [2025-03-20 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:52:22] Production.INFO: ==6406== Releasing lock... [2025-03-20 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:52:22] Production.INFO: 42 MB #Memory Used# [2025-03-20 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:53:06 [end_date_ymd] => 2025-03-20 20:53:06 [RateCDR] => 1 ) [2025-03-20 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:53:06' and `end` < '2025-03-20 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:53:18] Production.INFO: count ==1896 [2025-03-20 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:53:06 - End Time 2025-03-20 20:53:06 [2025-03-20 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725410', 'tblTempUsageDetail_20' ) start [2025-03-20 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725410', 'tblTempUsageDetail_20' ) end [2025-03-20 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725410', 'tblTempVendorCDR_20' ) start [2025-03-20 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725410', 'tblTempVendorCDR_20' ) end [2025-03-20 20:53:19] Production.INFO: ProcessCDR(1,14725410,1,1,2) [2025-03-20 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725410', 'tblTempUsageDetail_20' ) start [2025-03-20 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725410', 'tblTempUsageDetail_20' ) end [2025-03-20 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:53:23] Production.INFO: ==6494== Releasing lock... [2025-03-20 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:53:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:54:06 [end_date_ymd] => 2025-03-20 20:54:06 [RateCDR] => 1 ) [2025-03-20 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:54:06' and `end` < '2025-03-20 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:54:18] Production.INFO: count ==1889 [2025-03-20 20:54:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:54:06 - End Time 2025-03-20 20:54:06 [2025-03-20 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725415', 'tblTempUsageDetail_20' ) start [2025-03-20 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725415', 'tblTempUsageDetail_20' ) end [2025-03-20 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725415', 'tblTempVendorCDR_20' ) start [2025-03-20 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725415', 'tblTempVendorCDR_20' ) end [2025-03-20 20:54:19] Production.INFO: ProcessCDR(1,14725415,1,1,2) [2025-03-20 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725415', 'tblTempUsageDetail_20' ) start [2025-03-20 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725415', 'tblTempUsageDetail_20' ) end [2025-03-20 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:54:23] Production.INFO: ==6584== Releasing lock... [2025-03-20 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:54:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:55:06 [end_date_ymd] => 2025-03-20 20:55:06 [RateCDR] => 1 ) [2025-03-20 20:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:55:06' and `end` < '2025-03-20 20:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:55:18] Production.INFO: count ==1885 [2025-03-20 20:55:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:55:06 - End Time 2025-03-20 20:55:06 [2025-03-20 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725420', 'tblTempUsageDetail_20' ) start [2025-03-20 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725420', 'tblTempUsageDetail_20' ) end [2025-03-20 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725420', 'tblTempVendorCDR_20' ) start [2025-03-20 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725420', 'tblTempVendorCDR_20' ) end [2025-03-20 20:55:19] Production.INFO: ProcessCDR(1,14725420,1,1,2) [2025-03-20 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725420', 'tblTempUsageDetail_20' ) start [2025-03-20 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725420', 'tblTempUsageDetail_20' ) end [2025-03-20 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:55:23] Production.INFO: ==6667== Releasing lock... [2025-03-20 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:55:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:56:06 [end_date_ymd] => 2025-03-20 20:56:06 [RateCDR] => 1 ) [2025-03-20 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:56:06' and `end` < '2025-03-20 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:56:18] Production.INFO: count ==1884 [2025-03-20 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:56:06 - End Time 2025-03-20 20:56:06 [2025-03-20 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725425', 'tblTempUsageDetail_20' ) start [2025-03-20 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725425', 'tblTempUsageDetail_20' ) end [2025-03-20 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725425', 'tblTempVendorCDR_20' ) start [2025-03-20 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725425', 'tblTempVendorCDR_20' ) end [2025-03-20 20:56:19] Production.INFO: ProcessCDR(1,14725425,1,1,2) [2025-03-20 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725425', 'tblTempUsageDetail_20' ) start [2025-03-20 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725425', 'tblTempUsageDetail_20' ) end [2025-03-20 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:56:23] Production.INFO: ==6755== Releasing lock... [2025-03-20 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:56:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:57:06 [end_date_ymd] => 2025-03-20 20:57:06 [RateCDR] => 1 ) [2025-03-20 20:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 17:57:06' and `end` < '2025-03-20 20:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 20:57:19] Production.INFO: count ==1875 [2025-03-20 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-20 17:57:06 - End Time 2025-03-20 20:57:06 [2025-03-20 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725430', 'tblTempUsageDetail_20' ) start [2025-03-20 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725430', 'tblTempUsageDetail_20' ) end [2025-03-20 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725430', 'tblTempVendorCDR_20' ) start [2025-03-20 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725430', 'tblTempVendorCDR_20' ) end [2025-03-20 20:57:19] Production.INFO: ProcessCDR(1,14725430,1,1,2) [2025-03-20 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725430', 'tblTempUsageDetail_20' ) start [2025-03-20 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725430', 'tblTempUsageDetail_20' ) end [2025-03-20 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:57:23] Production.INFO: ==6846== Releasing lock... [2025-03-20 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:57:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-20 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:58:05 [end_date_ymd] => 2025-03-20 20:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:58:18] Production.INFO: count ==1859 [2025-03-20 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:58:05 - End Time 2025-03-20 20:58:05 [2025-03-20 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725435', 'tblTempUsageDetail_20' ) start [2025-03-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725435', 'tblTempUsageDetail_20' ) end [2025-03-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725435', 'tblTempVendorCDR_20' ) start [2025-03-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725435', 'tblTempVendorCDR_20' ) end [2025-03-20 20:58:19] Production.INFO: ProcessCDR(1,14725435,1,1,2) [2025-03-20 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725435', 'tblTempUsageDetail_20' ) start [2025-03-20 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725435', 'tblTempUsageDetail_20' ) end [2025-03-20 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:58:22] Production.INFO: ==6933== Releasing lock... [2025-03-20 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:58:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-20 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 17:59:05 [end_date_ymd] => 2025-03-20 20:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 17:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 20:59:18] Production.INFO: count ==1858 [2025-03-20 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-20 17:59:05 - End Time 2025-03-20 20:59:05 [2025-03-20 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725440', 'tblTempUsageDetail_20' ) start [2025-03-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725440', 'tblTempUsageDetail_20' ) end [2025-03-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725440', 'tblTempVendorCDR_20' ) start [2025-03-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725440', 'tblTempVendorCDR_20' ) end [2025-03-20 20:59:18] Production.INFO: ProcessCDR(1,14725440,1,1,2) [2025-03-20 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725440', 'tblTempUsageDetail_20' ) start [2025-03-20 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725440', 'tblTempUsageDetail_20' ) end [2025-03-20 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 20:59:22] Production.INFO: ==7008== Releasing lock... [2025-03-20 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 20:59:22] Production.INFO: 42 MB #Memory Used# [2025-03-20 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:00:06 [end_date_ymd] => 2025-03-20 21:00:06 [RateCDR] => 1 ) [2025-03-20 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:00:06' and `end` < '2025-03-20 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:00:18] Production.INFO: count ==1846 [2025-03-20 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:00:06 - End Time 2025-03-20 21:00:06 [2025-03-20 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725445', 'tblTempUsageDetail_20' ) start [2025-03-20 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725445', 'tblTempUsageDetail_20' ) end [2025-03-20 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725445', 'tblTempVendorCDR_20' ) start [2025-03-20 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725445', 'tblTempVendorCDR_20' ) end [2025-03-20 21:00:19] Production.INFO: ProcessCDR(1,14725445,1,1,2) [2025-03-20 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725445', 'tblTempUsageDetail_20' ) start [2025-03-20 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725445', 'tblTempUsageDetail_20' ) end [2025-03-20 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:00:22] Production.INFO: ==7100== Releasing lock... [2025-03-20 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:00:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-20 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:01:05 [end_date_ymd] => 2025-03-20 21:01:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:01:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:01:17] Production.INFO: count ==1803 [2025-03-20 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:01:05 - End Time 2025-03-20 21:01:05 [2025-03-20 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725451', 'tblTempUsageDetail_20' ) start [2025-03-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725451', 'tblTempUsageDetail_20' ) end [2025-03-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725451', 'tblTempVendorCDR_20' ) start [2025-03-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725451', 'tblTempVendorCDR_20' ) end [2025-03-20 21:01:18] Production.INFO: ProcessCDR(1,14725451,1,1,2) [2025-03-20 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725451', 'tblTempUsageDetail_20' ) start [2025-03-20 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725451', 'tblTempUsageDetail_20' ) end [2025-03-20 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:01:22] Production.INFO: ==7202== Releasing lock... [2025-03-20 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:01:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-20 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:02:05 [end_date_ymd] => 2025-03-20 21:02:05 [RateCDR] => 1 ) [2025-03-20 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:02:05' and `end` < '2025-03-20 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:02:18] Production.INFO: count ==1802 [2025-03-20 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:02:05 - End Time 2025-03-20 21:02:05 [2025-03-20 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725456', 'tblTempUsageDetail_20' ) start [2025-03-20 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725456', 'tblTempUsageDetail_20' ) end [2025-03-20 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725456', 'tblTempVendorCDR_20' ) start [2025-03-20 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725456', 'tblTempVendorCDR_20' ) end [2025-03-20 21:02:18] Production.INFO: ProcessCDR(1,14725456,1,1,2) [2025-03-20 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725456', 'tblTempUsageDetail_20' ) start [2025-03-20 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725456', 'tblTempUsageDetail_20' ) end [2025-03-20 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:02:22] Production.INFO: ==7282== Releasing lock... [2025-03-20 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:02:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-20 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:03:05 [end_date_ymd] => 2025-03-20 21:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:03:18] Production.INFO: count ==1797 [2025-03-20 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:03:05 - End Time 2025-03-20 21:03:05 [2025-03-20 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725461', 'tblTempUsageDetail_20' ) start [2025-03-20 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725461', 'tblTempUsageDetail_20' ) end [2025-03-20 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725461', 'tblTempVendorCDR_20' ) start [2025-03-20 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725461', 'tblTempVendorCDR_20' ) end [2025-03-20 21:03:19] Production.INFO: ProcessCDR(1,14725461,1,1,2) [2025-03-20 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725461', 'tblTempUsageDetail_20' ) start [2025-03-20 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725461', 'tblTempUsageDetail_20' ) end [2025-03-20 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:03:22] Production.INFO: ==7405== Releasing lock... [2025-03-20 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:03:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-20 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:04:05 [end_date_ymd] => 2025-03-20 21:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:04:17] Production.INFO: count ==1804 [2025-03-20 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:04:05 - End Time 2025-03-20 21:04:05 [2025-03-20 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725466', 'tblTempUsageDetail_20' ) start [2025-03-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725466', 'tblTempUsageDetail_20' ) end [2025-03-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725466', 'tblTempVendorCDR_20' ) start [2025-03-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725466', 'tblTempVendorCDR_20' ) end [2025-03-20 21:04:18] Production.INFO: ProcessCDR(1,14725466,1,1,2) [2025-03-20 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725466', 'tblTempUsageDetail_20' ) start [2025-03-20 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725466', 'tblTempUsageDetail_20' ) end [2025-03-20 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:04:22] Production.INFO: ==7491== Releasing lock... [2025-03-20 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:04:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-20 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:05:05 [end_date_ymd] => 2025-03-20 21:05:05 [RateCDR] => 1 ) [2025-03-20 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:05:05' and `end` < '2025-03-20 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:05:17] Production.INFO: count ==1803 [2025-03-20 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:05:05 - End Time 2025-03-20 21:05:05 [2025-03-20 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725471', 'tblTempUsageDetail_20' ) start [2025-03-20 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725471', 'tblTempUsageDetail_20' ) end [2025-03-20 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725471', 'tblTempVendorCDR_20' ) start [2025-03-20 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725471', 'tblTempVendorCDR_20' ) end [2025-03-20 21:05:18] Production.INFO: ProcessCDR(1,14725471,1,1,2) [2025-03-20 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725471', 'tblTempUsageDetail_20' ) start [2025-03-20 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725471', 'tblTempUsageDetail_20' ) end [2025-03-20 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:05:21] Production.INFO: ==7574== Releasing lock... [2025-03-20 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:05:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-20 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:06:05 [end_date_ymd] => 2025-03-20 21:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:06:17] Production.INFO: count ==1795 [2025-03-20 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:06:05 - End Time 2025-03-20 21:06:05 [2025-03-20 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725476', 'tblTempUsageDetail_20' ) start [2025-03-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725476', 'tblTempUsageDetail_20' ) end [2025-03-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725476', 'tblTempVendorCDR_20' ) start [2025-03-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725476', 'tblTempVendorCDR_20' ) end [2025-03-20 21:06:18] Production.INFO: ProcessCDR(1,14725476,1,1,2) [2025-03-20 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725476', 'tblTempUsageDetail_20' ) start [2025-03-20 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725476', 'tblTempUsageDetail_20' ) end [2025-03-20 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:06:21] Production.INFO: ==7662== Releasing lock... [2025-03-20 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:06:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-20 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:07:05 [end_date_ymd] => 2025-03-20 21:07:05 [RateCDR] => 1 ) [2025-03-20 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:07:05' and `end` < '2025-03-20 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:07:17] Production.INFO: count ==1798 [2025-03-20 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:07:05 - End Time 2025-03-20 21:07:05 [2025-03-20 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725481', 'tblTempUsageDetail_20' ) start [2025-03-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725481', 'tblTempUsageDetail_20' ) end [2025-03-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725481', 'tblTempVendorCDR_20' ) start [2025-03-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725481', 'tblTempVendorCDR_20' ) end [2025-03-20 21:07:18] Production.INFO: ProcessCDR(1,14725481,1,1,2) [2025-03-20 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725481', 'tblTempUsageDetail_20' ) start [2025-03-20 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725481', 'tblTempUsageDetail_20' ) end [2025-03-20 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:07:22] Production.INFO: ==7749== Releasing lock... [2025-03-20 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:07:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-20 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:08:05 [end_date_ymd] => 2025-03-20 21:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:08:17] Production.INFO: count ==1780 [2025-03-20 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:08:05 - End Time 2025-03-20 21:08:05 [2025-03-20 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725486', 'tblTempUsageDetail_20' ) start [2025-03-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725486', 'tblTempUsageDetail_20' ) end [2025-03-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725486', 'tblTempVendorCDR_20' ) start [2025-03-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725486', 'tblTempVendorCDR_20' ) end [2025-03-20 21:08:18] Production.INFO: ProcessCDR(1,14725486,1,1,2) [2025-03-20 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725486', 'tblTempUsageDetail_20' ) start [2025-03-20 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725486', 'tblTempUsageDetail_20' ) end [2025-03-20 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:08:21] Production.INFO: ==7841== Releasing lock... [2025-03-20 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:08:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-20 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:09:06 [end_date_ymd] => 2025-03-20 21:09:06 [RateCDR] => 1 ) [2025-03-20 21:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:09:06' and `end` < '2025-03-20 21:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:09:18] Production.INFO: count ==1778 [2025-03-20 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:09:06 - End Time 2025-03-20 21:09:06 [2025-03-20 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725491', 'tblTempUsageDetail_20' ) start [2025-03-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725491', 'tblTempUsageDetail_20' ) end [2025-03-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725491', 'tblTempVendorCDR_20' ) start [2025-03-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725491', 'tblTempVendorCDR_20' ) end [2025-03-20 21:09:18] Production.INFO: ProcessCDR(1,14725491,1,1,2) [2025-03-20 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725491', 'tblTempUsageDetail_20' ) start [2025-03-20 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725491', 'tblTempUsageDetail_20' ) end [2025-03-20 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:09:22] Production.INFO: ==7924== Releasing lock... [2025-03-20 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-20 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:10:05 [end_date_ymd] => 2025-03-20 21:10:05 [RateCDR] => 1 ) [2025-03-20 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:10:05' and `end` < '2025-03-20 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:10:18] Production.INFO: count ==1775 [2025-03-20 21:10:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:10:05 - End Time 2025-03-20 21:10:05 [2025-03-20 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725496', 'tblTempUsageDetail_20' ) start [2025-03-20 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725496', 'tblTempUsageDetail_20' ) end [2025-03-20 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725496', 'tblTempVendorCDR_20' ) start [2025-03-20 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725496', 'tblTempVendorCDR_20' ) end [2025-03-20 21:10:18] Production.INFO: ProcessCDR(1,14725496,1,1,2) [2025-03-20 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725496', 'tblTempUsageDetail_20' ) start [2025-03-20 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725496', 'tblTempUsageDetail_20' ) end [2025-03-20 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:10:23] Production.INFO: ==8010== Releasing lock... [2025-03-20 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:10:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-20 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:11:05 [end_date_ymd] => 2025-03-20 21:11:05 [RateCDR] => 1 ) [2025-03-20 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:11:05' and `end` < '2025-03-20 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:11:18] Production.INFO: count ==1733 [2025-03-20 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:11:05 - End Time 2025-03-20 21:11:05 [2025-03-20 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725502', 'tblTempUsageDetail_20' ) start [2025-03-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725502', 'tblTempUsageDetail_20' ) end [2025-03-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725502', 'tblTempVendorCDR_20' ) start [2025-03-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725502', 'tblTempVendorCDR_20' ) end [2025-03-20 21:11:18] Production.INFO: ProcessCDR(1,14725502,1,1,2) [2025-03-20 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725502', 'tblTempUsageDetail_20' ) start [2025-03-20 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725502', 'tblTempUsageDetail_20' ) end [2025-03-20 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:11:23] Production.INFO: ==8096== Releasing lock... [2025-03-20 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:11:23] Production.INFO: 41 MB #Memory Used# [2025-03-20 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:12:06 [end_date_ymd] => 2025-03-20 21:12:06 [RateCDR] => 1 ) [2025-03-20 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:12:06' and `end` < '2025-03-20 21:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:12:18] Production.INFO: count ==1729 [2025-03-20 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:12:06 - End Time 2025-03-20 21:12:06 [2025-03-20 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725507', 'tblTempUsageDetail_20' ) start [2025-03-20 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725507', 'tblTempUsageDetail_20' ) end [2025-03-20 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725507', 'tblTempVendorCDR_20' ) start [2025-03-20 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725507', 'tblTempVendorCDR_20' ) end [2025-03-20 21:12:18] Production.INFO: ProcessCDR(1,14725507,1,1,2) [2025-03-20 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725507', 'tblTempUsageDetail_20' ) start [2025-03-20 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725507', 'tblTempUsageDetail_20' ) end [2025-03-20 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:12:24] Production.INFO: ==8181== Releasing lock... [2025-03-20 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:12:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-20 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:13:05 [end_date_ymd] => 2025-03-20 21:13:05 [RateCDR] => 1 ) [2025-03-20 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:13:05' and `end` < '2025-03-20 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:13:18] Production.INFO: count ==1730 [2025-03-20 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:13:05 - End Time 2025-03-20 21:13:05 [2025-03-20 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725512', 'tblTempUsageDetail_20' ) start [2025-03-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725512', 'tblTempUsageDetail_20' ) end [2025-03-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725512', 'tblTempVendorCDR_20' ) start [2025-03-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725512', 'tblTempVendorCDR_20' ) end [2025-03-20 21:13:18] Production.INFO: ProcessCDR(1,14725512,1,1,2) [2025-03-20 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725512', 'tblTempUsageDetail_20' ) start [2025-03-20 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725512', 'tblTempUsageDetail_20' ) end [2025-03-20 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:13:23] Production.INFO: ==8270== Releasing lock... [2025-03-20 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:13:23] Production.INFO: 41 MB #Memory Used# [2025-03-20 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:14:06 [end_date_ymd] => 2025-03-20 21:14:06 [RateCDR] => 1 ) [2025-03-20 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:14:06' and `end` < '2025-03-20 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:14:18] Production.INFO: count ==1714 [2025-03-20 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:14:06 - End Time 2025-03-20 21:14:06 [2025-03-20 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725517', 'tblTempUsageDetail_20' ) start [2025-03-20 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725517', 'tblTempUsageDetail_20' ) end [2025-03-20 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725517', 'tblTempVendorCDR_20' ) start [2025-03-20 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725517', 'tblTempVendorCDR_20' ) end [2025-03-20 21:14:19] Production.INFO: ProcessCDR(1,14725517,1,1,2) [2025-03-20 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725517', 'tblTempUsageDetail_20' ) start [2025-03-20 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725517', 'tblTempUsageDetail_20' ) end [2025-03-20 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:14:22] Production.INFO: ==8355== Releasing lock... [2025-03-20 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:14:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-20 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:15:05 [end_date_ymd] => 2025-03-20 21:15:05 [RateCDR] => 1 ) [2025-03-20 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:15:05' and `end` < '2025-03-20 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:15:18] Production.INFO: count ==1707 [2025-03-20 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:15:05 - End Time 2025-03-20 21:15:05 [2025-03-20 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725522', 'tblTempUsageDetail_20' ) start [2025-03-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725522', 'tblTempUsageDetail_20' ) end [2025-03-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725522', 'tblTempVendorCDR_20' ) start [2025-03-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725522', 'tblTempVendorCDR_20' ) end [2025-03-20 21:15:18] Production.INFO: ProcessCDR(1,14725522,1,1,2) [2025-03-20 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725522', 'tblTempUsageDetail_20' ) start [2025-03-20 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725522', 'tblTempUsageDetail_20' ) end [2025-03-20 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:15:23] Production.INFO: ==8436== Releasing lock... [2025-03-20 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:15:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-20 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:16:05 [end_date_ymd] => 2025-03-20 21:16:05 [RateCDR] => 1 ) [2025-03-20 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:16:05' and `end` < '2025-03-20 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:16:18] Production.INFO: count ==1711 [2025-03-20 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:16:05 - End Time 2025-03-20 21:16:05 [2025-03-20 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725527', 'tblTempUsageDetail_20' ) start [2025-03-20 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725527', 'tblTempUsageDetail_20' ) end [2025-03-20 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725527', 'tblTempVendorCDR_20' ) start [2025-03-20 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725527', 'tblTempVendorCDR_20' ) end [2025-03-20 21:16:18] Production.INFO: ProcessCDR(1,14725527,1,1,2) [2025-03-20 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725527', 'tblTempUsageDetail_20' ) start [2025-03-20 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725527', 'tblTempUsageDetail_20' ) end [2025-03-20 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:16:24] Production.INFO: ==8516== Releasing lock... [2025-03-20 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:16:24] Production.INFO: 41 MB #Memory Used# [2025-03-20 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:17:04 [end_date_ymd] => 2025-03-20 21:17:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:17:04' and `end` < '2025-03-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 ,'') [2025-03-20 21:17:16] Production.INFO: count ==1710 [2025-03-20 21:17:17] Production.ERROR: pbx CDR StartTime 2025-03-20 18:17:04 - End Time 2025-03-20 21:17:04 [2025-03-20 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725532', 'tblTempUsageDetail_20' ) start [2025-03-20 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725532', 'tblTempUsageDetail_20' ) end [2025-03-20 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725532', 'tblTempVendorCDR_20' ) start [2025-03-20 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725532', 'tblTempVendorCDR_20' ) end [2025-03-20 21:17:17] Production.INFO: ProcessCDR(1,14725532,1,1,2) [2025-03-20 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725532', 'tblTempUsageDetail_20' ) start [2025-03-20 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725532', 'tblTempUsageDetail_20' ) end [2025-03-20 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:17:22] Production.INFO: ==8599== Releasing lock... [2025-03-20 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:17:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-20 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:18:05 [end_date_ymd] => 2025-03-20 21:18:05 [RateCDR] => 1 ) [2025-03-20 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:18:05' and `end` < '2025-03-20 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:18:18] Production.INFO: count ==1713 [2025-03-20 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:18:05 - End Time 2025-03-20 21:18:05 [2025-03-20 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725537', 'tblTempUsageDetail_20' ) start [2025-03-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725537', 'tblTempUsageDetail_20' ) end [2025-03-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725537', 'tblTempVendorCDR_20' ) start [2025-03-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725537', 'tblTempVendorCDR_20' ) end [2025-03-20 21:18:18] Production.INFO: ProcessCDR(1,14725537,1,1,2) [2025-03-20 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725537', 'tblTempUsageDetail_20' ) start [2025-03-20 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725537', 'tblTempUsageDetail_20' ) end [2025-03-20 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:18:23] Production.INFO: ==8695== Releasing lock... [2025-03-20 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:18:23] Production.INFO: 41 MB #Memory Used# [2025-03-20 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:19:05 [end_date_ymd] => 2025-03-20 21:19:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:19:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:19:17] Production.INFO: count ==1711 [2025-03-20 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:19:05 - End Time 2025-03-20 21:19:05 [2025-03-20 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725542', 'tblTempUsageDetail_20' ) start [2025-03-20 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725542', 'tblTempUsageDetail_20' ) end [2025-03-20 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725542', 'tblTempVendorCDR_20' ) start [2025-03-20 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725542', 'tblTempVendorCDR_20' ) end [2025-03-20 21:19:18] Production.INFO: ProcessCDR(1,14725542,1,1,2) [2025-03-20 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725542', 'tblTempUsageDetail_20' ) start [2025-03-20 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725542', 'tblTempUsageDetail_20' ) end [2025-03-20 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:19:21] Production.INFO: ==8816== Releasing lock... [2025-03-20 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:19:21] Production.INFO: 41 MB #Memory Used# [2025-03-20 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:20:06 [end_date_ymd] => 2025-03-20 21:20:06 [RateCDR] => 1 ) [2025-03-20 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:20:06' and `end` < '2025-03-20 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:20:18] Production.INFO: count ==1714 [2025-03-20 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:20:06 - End Time 2025-03-20 21:20:06 [2025-03-20 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725547', 'tblTempUsageDetail_20' ) start [2025-03-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725547', 'tblTempUsageDetail_20' ) end [2025-03-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725547', 'tblTempVendorCDR_20' ) start [2025-03-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725547', 'tblTempVendorCDR_20' ) end [2025-03-20 21:20:19] Production.INFO: ProcessCDR(1,14725547,1,1,2) [2025-03-20 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725547', 'tblTempUsageDetail_20' ) start [2025-03-20 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725547', 'tblTempUsageDetail_20' ) end [2025-03-20 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:20:22] Production.INFO: ==8900== Releasing lock... [2025-03-20 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:20:22] Production.INFO: 41 MB #Memory Used# [2025-03-20 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:21:04 [end_date_ymd] => 2025-03-20 21:21:04 [RateCDR] => 1 ) [2025-03-20 21:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:21:04' and `end` < '2025-03-20 21:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:21:17] Production.INFO: count ==1670 [2025-03-20 21:21:17] Production.ERROR: pbx CDR StartTime 2025-03-20 18:21:04 - End Time 2025-03-20 21:21:04 [2025-03-20 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725553', 'tblTempUsageDetail_20' ) start [2025-03-20 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725553', 'tblTempUsageDetail_20' ) end [2025-03-20 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725553', 'tblTempVendorCDR_20' ) start [2025-03-20 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725553', 'tblTempVendorCDR_20' ) end [2025-03-20 21:21:17] Production.INFO: ProcessCDR(1,14725553,1,1,2) [2025-03-20 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725553', 'tblTempUsageDetail_20' ) start [2025-03-20 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725553', 'tblTempUsageDetail_20' ) end [2025-03-20 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:21:21] Production.INFO: ==8988== Releasing lock... [2025-03-20 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:21:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-20 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:22:05 [end_date_ymd] => 2025-03-20 21:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:22:17] Production.INFO: count ==1664 [2025-03-20 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:22:05 - End Time 2025-03-20 21:22:05 [2025-03-20 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725558', 'tblTempUsageDetail_20' ) start [2025-03-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725558', 'tblTempUsageDetail_20' ) end [2025-03-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725558', 'tblTempVendorCDR_20' ) start [2025-03-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725558', 'tblTempVendorCDR_20' ) end [2025-03-20 21:22:18] Production.INFO: ProcessCDR(1,14725558,1,1,2) [2025-03-20 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725558', 'tblTempUsageDetail_20' ) start [2025-03-20 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725558', 'tblTempUsageDetail_20' ) end [2025-03-20 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:22:23] Production.INFO: ==9077== Releasing lock... [2025-03-20 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:22:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-20 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:23:05 [end_date_ymd] => 2025-03-20 21:23:05 [RateCDR] => 1 ) [2025-03-20 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:23:05' and `end` < '2025-03-20 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:23:18] Production.INFO: count ==1659 [2025-03-20 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:23:05 - End Time 2025-03-20 21:23:05 [2025-03-20 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725563', 'tblTempUsageDetail_20' ) start [2025-03-20 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725563', 'tblTempUsageDetail_20' ) end [2025-03-20 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725563', 'tblTempVendorCDR_20' ) start [2025-03-20 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725563', 'tblTempVendorCDR_20' ) end [2025-03-20 21:23:18] Production.INFO: ProcessCDR(1,14725563,1,1,2) [2025-03-20 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725563', 'tblTempUsageDetail_20' ) start [2025-03-20 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725563', 'tblTempUsageDetail_20' ) end [2025-03-20 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:23:22] Production.INFO: ==9174== Releasing lock... [2025-03-20 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:23:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-20 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:24:05 [end_date_ymd] => 2025-03-20 21:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:24:17] Production.INFO: count ==1654 [2025-03-20 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:24:05 - End Time 2025-03-20 21:24:05 [2025-03-20 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725568', 'tblTempUsageDetail_20' ) start [2025-03-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725568', 'tblTempUsageDetail_20' ) end [2025-03-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725568', 'tblTempVendorCDR_20' ) start [2025-03-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725568', 'tblTempVendorCDR_20' ) end [2025-03-20 21:24:18] Production.INFO: ProcessCDR(1,14725568,1,1,2) [2025-03-20 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725568', 'tblTempUsageDetail_20' ) start [2025-03-20 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725568', 'tblTempUsageDetail_20' ) end [2025-03-20 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:24:21] Production.INFO: ==9264== Releasing lock... [2025-03-20 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:24:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-20 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:25:05 [end_date_ymd] => 2025-03-20 21:25:05 [RateCDR] => 1 ) [2025-03-20 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:25:05' and `end` < '2025-03-20 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:25:18] Production.INFO: count ==1650 [2025-03-20 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:25:05 - End Time 2025-03-20 21:25:05 [2025-03-20 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725573', 'tblTempUsageDetail_20' ) start [2025-03-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725573', 'tblTempUsageDetail_20' ) end [2025-03-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725573', 'tblTempVendorCDR_20' ) start [2025-03-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725573', 'tblTempVendorCDR_20' ) end [2025-03-20 21:25:18] Production.INFO: ProcessCDR(1,14725573,1,1,2) [2025-03-20 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725573', 'tblTempUsageDetail_20' ) start [2025-03-20 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725573', 'tblTempUsageDetail_20' ) end [2025-03-20 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:25:22] Production.INFO: ==9351== Releasing lock... [2025-03-20 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-20 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:26:05 [end_date_ymd] => 2025-03-20 21:26:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:26:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:26:18] Production.INFO: count ==1636 [2025-03-20 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:26:05 - End Time 2025-03-20 21:26:05 [2025-03-20 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725578', 'tblTempUsageDetail_20' ) start [2025-03-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725578', 'tblTempUsageDetail_20' ) end [2025-03-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725578', 'tblTempVendorCDR_20' ) start [2025-03-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725578', 'tblTempVendorCDR_20' ) end [2025-03-20 21:26:18] Production.INFO: ProcessCDR(1,14725578,1,1,2) [2025-03-20 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725578', 'tblTempUsageDetail_20' ) start [2025-03-20 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725578', 'tblTempUsageDetail_20' ) end [2025-03-20 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:26:22] Production.INFO: ==9433== Releasing lock... [2025-03-20 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:26:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-20 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:27:05 [end_date_ymd] => 2025-03-20 21:27:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:27:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:27:18] Production.INFO: count ==1635 [2025-03-20 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:27:05 - End Time 2025-03-20 21:27:05 [2025-03-20 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725583', 'tblTempUsageDetail_20' ) start [2025-03-20 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725583', 'tblTempUsageDetail_20' ) end [2025-03-20 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725583', 'tblTempVendorCDR_20' ) start [2025-03-20 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725583', 'tblTempVendorCDR_20' ) end [2025-03-20 21:27:18] Production.INFO: ProcessCDR(1,14725583,1,1,2) [2025-03-20 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725583', 'tblTempUsageDetail_20' ) start [2025-03-20 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725583', 'tblTempUsageDetail_20' ) end [2025-03-20 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:27:21] Production.INFO: ==9521== Releasing lock... [2025-03-20 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:27:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-20 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:28:05 [end_date_ymd] => 2025-03-20 21:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:28:17] Production.INFO: count ==1636 [2025-03-20 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:28:05 - End Time 2025-03-20 21:28:05 [2025-03-20 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725588', 'tblTempUsageDetail_20' ) start [2025-03-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725588', 'tblTempUsageDetail_20' ) end [2025-03-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725588', 'tblTempVendorCDR_20' ) start [2025-03-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725588', 'tblTempVendorCDR_20' ) end [2025-03-20 21:28:18] Production.INFO: ProcessCDR(1,14725588,1,1,2) [2025-03-20 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725588', 'tblTempUsageDetail_20' ) start [2025-03-20 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725588', 'tblTempUsageDetail_20' ) end [2025-03-20 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:28:23] Production.INFO: ==9616== Releasing lock... [2025-03-20 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:28:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-20 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:29:05 [end_date_ymd] => 2025-03-20 21:29:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:29:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:29:18] Production.INFO: count ==1632 [2025-03-20 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:29:05 - End Time 2025-03-20 21:29:05 [2025-03-20 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725593', 'tblTempUsageDetail_20' ) start [2025-03-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725593', 'tblTempUsageDetail_20' ) end [2025-03-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725593', 'tblTempVendorCDR_20' ) start [2025-03-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725593', 'tblTempVendorCDR_20' ) end [2025-03-20 21:29:18] Production.INFO: ProcessCDR(1,14725593,1,1,2) [2025-03-20 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725593', 'tblTempUsageDetail_20' ) start [2025-03-20 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725593', 'tblTempUsageDetail_20' ) end [2025-03-20 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:29:23] Production.INFO: ==9700== Releasing lock... [2025-03-20 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:29:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-20 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:30:06 [end_date_ymd] => 2025-03-20 21:30:06 [RateCDR] => 1 ) [2025-03-20 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:30:06' and `end` < '2025-03-20 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:30:18] Production.INFO: count ==1623 [2025-03-20 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:30:06 - End Time 2025-03-20 21:30:06 [2025-03-20 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725599', 'tblTempUsageDetail_20' ) start [2025-03-20 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725599', 'tblTempUsageDetail_20' ) end [2025-03-20 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725599', 'tblTempVendorCDR_20' ) start [2025-03-20 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725599', 'tblTempVendorCDR_20' ) end [2025-03-20 21:30:19] Production.INFO: ProcessCDR(1,14725599,1,1,2) [2025-03-20 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725599', 'tblTempUsageDetail_20' ) start [2025-03-20 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725599', 'tblTempUsageDetail_20' ) end [2025-03-20 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:30:24] Production.INFO: ==9791== Releasing lock... [2025-03-20 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:30:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-20 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:31:06 [end_date_ymd] => 2025-03-20 21:31:06 [RateCDR] => 1 ) [2025-03-20 21:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:31:06' and `end` < '2025-03-20 21:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:31:18] Production.INFO: count ==1600 [2025-03-20 21:31:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:31:06 - End Time 2025-03-20 21:31:06 [2025-03-20 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725604', 'tblTempUsageDetail_20' ) start [2025-03-20 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725604', 'tblTempUsageDetail_20' ) end [2025-03-20 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725604', 'tblTempVendorCDR_20' ) start [2025-03-20 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725604', 'tblTempVendorCDR_20' ) end [2025-03-20 21:31:19] Production.INFO: ProcessCDR(1,14725604,1,1,2) [2025-03-20 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725604', 'tblTempUsageDetail_20' ) start [2025-03-20 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725604', 'tblTempUsageDetail_20' ) end [2025-03-20 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:31:22] Production.INFO: ==9883== Releasing lock... [2025-03-20 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:31:22] Production.INFO: 40 MB #Memory Used# [2025-03-20 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:32:05 [end_date_ymd] => 2025-03-20 21:32:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:32:18] Production.INFO: count ==1606 [2025-03-20 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:32:05 - End Time 2025-03-20 21:32:05 [2025-03-20 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725609', 'tblTempUsageDetail_20' ) start [2025-03-20 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725609', 'tblTempUsageDetail_20' ) end [2025-03-20 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725609', 'tblTempVendorCDR_20' ) start [2025-03-20 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725609', 'tblTempVendorCDR_20' ) end [2025-03-20 21:32:18] Production.INFO: ProcessCDR(1,14725609,1,1,2) [2025-03-20 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725609', 'tblTempUsageDetail_20' ) start [2025-03-20 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725609', 'tblTempUsageDetail_20' ) end [2025-03-20 21:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:32:24] Production.INFO: ==9973== Releasing lock... [2025-03-20 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:32:24] Production.INFO: 40 MB #Memory Used# [2025-03-20 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:33:06 [end_date_ymd] => 2025-03-20 21:33:06 [RateCDR] => 1 ) [2025-03-20 21:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:33:06' and `end` < '2025-03-20 21:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:33:18] Production.INFO: count ==1604 [2025-03-20 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:33:06 - End Time 2025-03-20 21:33:06 [2025-03-20 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725614', 'tblTempUsageDetail_20' ) start [2025-03-20 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725614', 'tblTempUsageDetail_20' ) end [2025-03-20 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725614', 'tblTempVendorCDR_20' ) start [2025-03-20 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725614', 'tblTempVendorCDR_20' ) end [2025-03-20 21:33:19] Production.INFO: ProcessCDR(1,14725614,1,1,2) [2025-03-20 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725614', 'tblTempUsageDetail_20' ) start [2025-03-20 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725614', 'tblTempUsageDetail_20' ) end [2025-03-20 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:33:23] Production.INFO: ==10065== Releasing lock... [2025-03-20 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:33:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-20 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:34:05 [end_date_ymd] => 2025-03-20 21:34:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:34:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:34:17] Production.INFO: count ==1593 [2025-03-20 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:34:05 - End Time 2025-03-20 21:34:05 [2025-03-20 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725619', 'tblTempUsageDetail_20' ) start [2025-03-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725619', 'tblTempUsageDetail_20' ) end [2025-03-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725619', 'tblTempVendorCDR_20' ) start [2025-03-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725619', 'tblTempVendorCDR_20' ) end [2025-03-20 21:34:18] Production.INFO: ProcessCDR(1,14725619,1,1,2) [2025-03-20 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725619', 'tblTempUsageDetail_20' ) start [2025-03-20 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725619', 'tblTempUsageDetail_20' ) end [2025-03-20 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:34:21] Production.INFO: ==10194== Releasing lock... [2025-03-20 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:34:21] Production.INFO: 40 MB #Memory Used# [2025-03-20 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:35:05 [end_date_ymd] => 2025-03-20 21:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:35:17] Production.INFO: count ==1596 [2025-03-20 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:35:05 - End Time 2025-03-20 21:35:05 [2025-03-20 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725624', 'tblTempUsageDetail_20' ) start [2025-03-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725624', 'tblTempUsageDetail_20' ) end [2025-03-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725624', 'tblTempVendorCDR_20' ) start [2025-03-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725624', 'tblTempVendorCDR_20' ) end [2025-03-20 21:35:18] Production.INFO: ProcessCDR(1,14725624,1,1,2) [2025-03-20 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725624', 'tblTempUsageDetail_20' ) start [2025-03-20 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725624', 'tblTempUsageDetail_20' ) end [2025-03-20 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:35:21] Production.INFO: ==10289== Releasing lock... [2025-03-20 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:35:21] Production.INFO: 40 MB #Memory Used# [2025-03-20 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:36:05 [end_date_ymd] => 2025-03-20 21:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:36:18] Production.INFO: count ==1593 [2025-03-20 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:36:05 - End Time 2025-03-20 21:36:05 [2025-03-20 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725629', 'tblTempUsageDetail_20' ) start [2025-03-20 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725629', 'tblTempUsageDetail_20' ) end [2025-03-20 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725629', 'tblTempVendorCDR_20' ) start [2025-03-20 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725629', 'tblTempVendorCDR_20' ) end [2025-03-20 21:36:18] Production.INFO: ProcessCDR(1,14725629,1,1,2) [2025-03-20 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725629', 'tblTempUsageDetail_20' ) start [2025-03-20 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725629', 'tblTempUsageDetail_20' ) end [2025-03-20 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:36:23] Production.INFO: ==10379== Releasing lock... [2025-03-20 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:36:23] Production.INFO: 40 MB #Memory Used# [2025-03-20 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:37:05 [end_date_ymd] => 2025-03-20 21:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:37:17] Production.INFO: count ==1582 [2025-03-20 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:37:05 - End Time 2025-03-20 21:37:05 [2025-03-20 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725634', 'tblTempUsageDetail_20' ) start [2025-03-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725634', 'tblTempUsageDetail_20' ) end [2025-03-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725634', 'tblTempVendorCDR_20' ) start [2025-03-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725634', 'tblTempVendorCDR_20' ) end [2025-03-20 21:37:18] Production.INFO: ProcessCDR(1,14725634,1,1,2) [2025-03-20 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725634', 'tblTempUsageDetail_20' ) start [2025-03-20 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725634', 'tblTempUsageDetail_20' ) end [2025-03-20 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:37:21] Production.INFO: ==10470== Releasing lock... [2025-03-20 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:37:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-20 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:38:06 [end_date_ymd] => 2025-03-20 21:38:06 [RateCDR] => 1 ) [2025-03-20 21:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:38:06' and `end` < '2025-03-20 21:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:38:18] Production.INFO: count ==1576 [2025-03-20 21:38:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:38:06 - End Time 2025-03-20 21:38:06 [2025-03-20 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725639', 'tblTempUsageDetail_20' ) start [2025-03-20 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725639', 'tblTempUsageDetail_20' ) end [2025-03-20 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725639', 'tblTempVendorCDR_20' ) start [2025-03-20 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725639', 'tblTempVendorCDR_20' ) end [2025-03-20 21:38:19] Production.INFO: ProcessCDR(1,14725639,1,1,2) [2025-03-20 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725639', 'tblTempUsageDetail_20' ) start [2025-03-20 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725639', 'tblTempUsageDetail_20' ) end [2025-03-20 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:38:22] Production.INFO: ==10559== Releasing lock... [2025-03-20 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:38:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:39:05 [end_date_ymd] => 2025-03-20 21:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:39:18] Production.INFO: count ==1565 [2025-03-20 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:39:05 - End Time 2025-03-20 21:39:05 [2025-03-20 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725644', 'tblTempUsageDetail_20' ) start [2025-03-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725644', 'tblTempUsageDetail_20' ) end [2025-03-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725644', 'tblTempVendorCDR_20' ) start [2025-03-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725644', 'tblTempVendorCDR_20' ) end [2025-03-20 21:39:18] Production.INFO: ProcessCDR(1,14725644,1,1,2) [2025-03-20 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725644', 'tblTempUsageDetail_20' ) start [2025-03-20 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725644', 'tblTempUsageDetail_20' ) end [2025-03-20 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:39:22] Production.INFO: ==10647== Releasing lock... [2025-03-20 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:39:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-20 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:40:06 [end_date_ymd] => 2025-03-20 21:40:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:40:06' and `end` < '2025-03-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 ,'') [2025-03-20 21:40:19] Production.INFO: count ==1565 [2025-03-20 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:40:06 - End Time 2025-03-20 21:40:06 [2025-03-20 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725650', 'tblTempUsageDetail_20' ) start [2025-03-20 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725650', 'tblTempUsageDetail_20' ) end [2025-03-20 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725650', 'tblTempVendorCDR_20' ) start [2025-03-20 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725650', 'tblTempVendorCDR_20' ) end [2025-03-20 21:40:19] Production.INFO: ProcessCDR(1,14725650,1,1,2) [2025-03-20 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725650', 'tblTempUsageDetail_20' ) start [2025-03-20 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725650', 'tblTempUsageDetail_20' ) end [2025-03-20 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:40:23] Production.INFO: ==10743== Releasing lock... [2025-03-20 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:40:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-20 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:41:05 [end_date_ymd] => 2025-03-20 21:41:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:41:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:41:18] Production.INFO: count ==1531 [2025-03-20 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:41:05 - End Time 2025-03-20 21:41:05 [2025-03-20 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725655', 'tblTempUsageDetail_20' ) start [2025-03-20 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725655', 'tblTempUsageDetail_20' ) end [2025-03-20 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725655', 'tblTempVendorCDR_20' ) start [2025-03-20 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725655', 'tblTempVendorCDR_20' ) end [2025-03-20 21:41:18] Production.INFO: ProcessCDR(1,14725655,1,1,2) [2025-03-20 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725655', 'tblTempUsageDetail_20' ) start [2025-03-20 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725655', 'tblTempUsageDetail_20' ) end [2025-03-20 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:41:23] Production.INFO: ==10866== Releasing lock... [2025-03-20 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:41:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:42:05 [end_date_ymd] => 2025-03-20 21:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:42:18] Production.INFO: count ==1536 [2025-03-20 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:42:05 - End Time 2025-03-20 21:42:05 [2025-03-20 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725660', 'tblTempUsageDetail_20' ) start [2025-03-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725660', 'tblTempUsageDetail_20' ) end [2025-03-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725660', 'tblTempVendorCDR_20' ) start [2025-03-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725660', 'tblTempVendorCDR_20' ) end [2025-03-20 21:42:18] Production.INFO: ProcessCDR(1,14725660,1,1,2) [2025-03-20 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725660', 'tblTempUsageDetail_20' ) start [2025-03-20 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725660', 'tblTempUsageDetail_20' ) end [2025-03-20 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:42:23] Production.INFO: ==10993== Releasing lock... [2025-03-20 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:42:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:43:05 [end_date_ymd] => 2025-03-20 21:43:05 [RateCDR] => 1 ) [2025-03-20 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:43:05' and `end` < '2025-03-20 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:43:17] Production.INFO: count ==1533 [2025-03-20 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:43:05 - End Time 2025-03-20 21:43:05 [2025-03-20 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725665', 'tblTempUsageDetail_20' ) start [2025-03-20 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725665', 'tblTempUsageDetail_20' ) end [2025-03-20 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725665', 'tblTempVendorCDR_20' ) start [2025-03-20 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725665', 'tblTempVendorCDR_20' ) end [2025-03-20 21:43:18] Production.INFO: ProcessCDR(1,14725665,1,1,2) [2025-03-20 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725665', 'tblTempUsageDetail_20' ) start [2025-03-20 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725665', 'tblTempUsageDetail_20' ) end [2025-03-20 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:43:21] Production.INFO: ==11099== Releasing lock... [2025-03-20 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:43:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:44:06 [end_date_ymd] => 2025-03-20 21:44:06 [RateCDR] => 1 ) [2025-03-20 21:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:44:06' and `end` < '2025-03-20 21:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:44:18] Production.INFO: count ==1530 [2025-03-20 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:44:06 - End Time 2025-03-20 21:44:06 [2025-03-20 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725670', 'tblTempUsageDetail_20' ) start [2025-03-20 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725670', 'tblTempUsageDetail_20' ) end [2025-03-20 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725670', 'tblTempVendorCDR_20' ) start [2025-03-20 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725670', 'tblTempVendorCDR_20' ) end [2025-03-20 21:44:18] Production.INFO: ProcessCDR(1,14725670,1,1,2) [2025-03-20 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725670', 'tblTempUsageDetail_20' ) start [2025-03-20 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725670', 'tblTempUsageDetail_20' ) end [2025-03-20 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:44:22] Production.INFO: ==11210== Releasing lock... [2025-03-20 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:44:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:45:05 [end_date_ymd] => 2025-03-20 21:45:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:45:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:45:17] Production.INFO: count ==1525 [2025-03-20 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:45:05 - End Time 2025-03-20 21:45:05 [2025-03-20 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725675', 'tblTempUsageDetail_20' ) start [2025-03-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725675', 'tblTempUsageDetail_20' ) end [2025-03-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725675', 'tblTempVendorCDR_20' ) start [2025-03-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725675', 'tblTempVendorCDR_20' ) end [2025-03-20 21:45:18] Production.INFO: ProcessCDR(1,14725675,1,1,2) [2025-03-20 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725675', 'tblTempUsageDetail_20' ) start [2025-03-20 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725675', 'tblTempUsageDetail_20' ) end [2025-03-20 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:45:21] Production.INFO: ==11314== Releasing lock... [2025-03-20 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:45:21] Production.INFO: 40 MB #Memory Used# [2025-03-20 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:46:06 [end_date_ymd] => 2025-03-20 21:46:06 [RateCDR] => 1 ) [2025-03-20 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:46:06' and `end` < '2025-03-20 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:46:18] Production.INFO: count ==1510 [2025-03-20 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:46:06 - End Time 2025-03-20 21:46:06 [2025-03-20 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725680', 'tblTempUsageDetail_20' ) start [2025-03-20 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725680', 'tblTempUsageDetail_20' ) end [2025-03-20 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725680', 'tblTempVendorCDR_20' ) start [2025-03-20 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725680', 'tblTempVendorCDR_20' ) end [2025-03-20 21:46:18] Production.INFO: ProcessCDR(1,14725680,1,1,2) [2025-03-20 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725680', 'tblTempUsageDetail_20' ) start [2025-03-20 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725680', 'tblTempUsageDetail_20' ) end [2025-03-20 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:46:22] Production.INFO: ==11404== Releasing lock... [2025-03-20 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:46:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:47:05 [end_date_ymd] => 2025-03-20 21:47:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:47:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:47:18] Production.INFO: count ==1508 [2025-03-20 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:47:05 - End Time 2025-03-20 21:47:05 [2025-03-20 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725685', 'tblTempUsageDetail_20' ) start [2025-03-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725685', 'tblTempUsageDetail_20' ) end [2025-03-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725685', 'tblTempVendorCDR_20' ) start [2025-03-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725685', 'tblTempVendorCDR_20' ) end [2025-03-20 21:47:18] Production.INFO: ProcessCDR(1,14725685,1,1,2) [2025-03-20 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725685', 'tblTempUsageDetail_20' ) start [2025-03-20 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725685', 'tblTempUsageDetail_20' ) end [2025-03-20 21:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:47:24] Production.INFO: ==11490== Releasing lock... [2025-03-20 21:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:47:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:48:05 [end_date_ymd] => 2025-03-20 21:48:05 [RateCDR] => 1 ) [2025-03-20 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:48:05' and `end` < '2025-03-20 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:48:18] Production.INFO: count ==1508 [2025-03-20 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:48:05 - End Time 2025-03-20 21:48:05 [2025-03-20 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725690', 'tblTempUsageDetail_20' ) start [2025-03-20 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725690', 'tblTempUsageDetail_20' ) end [2025-03-20 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725690', 'tblTempVendorCDR_20' ) start [2025-03-20 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725690', 'tblTempVendorCDR_20' ) end [2025-03-20 21:48:18] Production.INFO: ProcessCDR(1,14725690,1,1,2) [2025-03-20 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725690', 'tblTempUsageDetail_20' ) start [2025-03-20 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725690', 'tblTempUsageDetail_20' ) end [2025-03-20 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:48:21] Production.INFO: ==11580== Releasing lock... [2025-03-20 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:48:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:49:05 [end_date_ymd] => 2025-03-20 21:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:49:17] Production.INFO: count ==1520 [2025-03-20 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:49:05 - End Time 2025-03-20 21:49:05 [2025-03-20 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725695', 'tblTempUsageDetail_20' ) start [2025-03-20 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725695', 'tblTempUsageDetail_20' ) end [2025-03-20 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725695', 'tblTempVendorCDR_20' ) start [2025-03-20 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725695', 'tblTempVendorCDR_20' ) end [2025-03-20 21:49:18] Production.INFO: ProcessCDR(1,14725695,1,1,2) [2025-03-20 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725695', 'tblTempUsageDetail_20' ) start [2025-03-20 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725695', 'tblTempUsageDetail_20' ) end [2025-03-20 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:49:23] Production.INFO: ==11664== Releasing lock... [2025-03-20 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:49:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:50:06 [end_date_ymd] => 2025-03-20 21:50:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:50:06' and `end` < '2025-03-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 ,'') [2025-03-20 21:50:19] Production.INFO: count ==1527 [2025-03-20 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:50:06 - End Time 2025-03-20 21:50:06 [2025-03-20 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725700', 'tblTempUsageDetail_20' ) start [2025-03-20 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725700', 'tblTempUsageDetail_20' ) end [2025-03-20 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725700', 'tblTempVendorCDR_20' ) start [2025-03-20 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725700', 'tblTempVendorCDR_20' ) end [2025-03-20 21:50:19] Production.INFO: ProcessCDR(1,14725700,1,1,2) [2025-03-20 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725700', 'tblTempUsageDetail_20' ) start [2025-03-20 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725700', 'tblTempUsageDetail_20' ) end [2025-03-20 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:50:22] Production.INFO: ==11800== Releasing lock... [2025-03-20 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:50:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-20 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:51:05 [end_date_ymd] => 2025-03-20 21:51:05 [RateCDR] => 1 ) [2025-03-20 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:51:05' and `end` < '2025-03-20 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:51:17] Production.INFO: count ==1500 [2025-03-20 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:51:05 - End Time 2025-03-20 21:51:05 [2025-03-20 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725706', 'tblTempUsageDetail_20' ) start [2025-03-20 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725706', 'tblTempUsageDetail_20' ) end [2025-03-20 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725706', 'tblTempVendorCDR_20' ) start [2025-03-20 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725706', 'tblTempVendorCDR_20' ) end [2025-03-20 21:51:18] Production.INFO: ProcessCDR(1,14725706,1,1,2) [2025-03-20 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725706', 'tblTempUsageDetail_20' ) start [2025-03-20 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725706', 'tblTempUsageDetail_20' ) end [2025-03-20 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:51:21] Production.INFO: ==11893== Releasing lock... [2025-03-20 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:51:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:52:06 [end_date_ymd] => 2025-03-20 21:52:06 [RateCDR] => 1 ) [2025-03-20 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:52:06' and `end` < '2025-03-20 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:52:18] Production.INFO: count ==1498 [2025-03-20 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:52:06 - End Time 2025-03-20 21:52:06 [2025-03-20 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725711', 'tblTempUsageDetail_20' ) start [2025-03-20 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725711', 'tblTempUsageDetail_20' ) end [2025-03-20 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725711', 'tblTempVendorCDR_20' ) start [2025-03-20 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725711', 'tblTempVendorCDR_20' ) end [2025-03-20 21:52:18] Production.INFO: ProcessCDR(1,14725711,1,1,2) [2025-03-20 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725711', 'tblTempUsageDetail_20' ) start [2025-03-20 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725711', 'tblTempUsageDetail_20' ) end [2025-03-20 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:52:22] Production.INFO: ==11973== Releasing lock... [2025-03-20 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:52:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:53:05 [end_date_ymd] => 2025-03-20 21:53:05 [RateCDR] => 1 ) [2025-03-20 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:53:05' and `end` < '2025-03-20 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:53:17] Production.INFO: count ==1506 [2025-03-20 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:53:05 - End Time 2025-03-20 21:53:05 [2025-03-20 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725716', 'tblTempUsageDetail_20' ) start [2025-03-20 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725716', 'tblTempUsageDetail_20' ) end [2025-03-20 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725716', 'tblTempVendorCDR_20' ) start [2025-03-20 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725716', 'tblTempVendorCDR_20' ) end [2025-03-20 21:53:18] Production.INFO: ProcessCDR(1,14725716,1,1,2) [2025-03-20 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725716', 'tblTempUsageDetail_20' ) start [2025-03-20 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725716', 'tblTempUsageDetail_20' ) end [2025-03-20 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:53:23] Production.INFO: ==12059== Releasing lock... [2025-03-20 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:53:23] Production.INFO: 39 MB #Memory Used# [2025-03-20 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:54:06 [end_date_ymd] => 2025-03-20 21:54:06 [RateCDR] => 1 ) [2025-03-20 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:54:06' and `end` < '2025-03-20 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:54:19] Production.INFO: count ==1504 [2025-03-20 21:54:19] Production.ERROR: pbx CDR StartTime 2025-03-20 18:54:06 - End Time 2025-03-20 21:54:06 [2025-03-20 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725721', 'tblTempUsageDetail_20' ) start [2025-03-20 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725721', 'tblTempUsageDetail_20' ) end [2025-03-20 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725721', 'tblTempVendorCDR_20' ) start [2025-03-20 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725721', 'tblTempVendorCDR_20' ) end [2025-03-20 21:54:19] Production.INFO: ProcessCDR(1,14725721,1,1,2) [2025-03-20 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725721', 'tblTempUsageDetail_20' ) start [2025-03-20 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725721', 'tblTempUsageDetail_20' ) end [2025-03-20 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:54:22] Production.INFO: ==12150== Releasing lock... [2025-03-20 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:54:22] Production.INFO: 39 MB #Memory Used# [2025-03-20 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:55:05 [end_date_ymd] => 2025-03-20 21:55:05 [RateCDR] => 1 ) [2025-03-20 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:55:05' and `end` < '2025-03-20 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:55:17] Production.INFO: count ==1498 [2025-03-20 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:55:05 - End Time 2025-03-20 21:55:05 [2025-03-20 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725726', 'tblTempUsageDetail_20' ) start [2025-03-20 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725726', 'tblTempUsageDetail_20' ) end [2025-03-20 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725726', 'tblTempVendorCDR_20' ) start [2025-03-20 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725726', 'tblTempVendorCDR_20' ) end [2025-03-20 21:55:18] Production.INFO: ProcessCDR(1,14725726,1,1,2) [2025-03-20 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725726', 'tblTempUsageDetail_20' ) start [2025-03-20 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725726', 'tblTempUsageDetail_20' ) end [2025-03-20 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:55:21] Production.INFO: ==12244== Releasing lock... [2025-03-20 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:55:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:56:05 [end_date_ymd] => 2025-03-20 21:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:56:18] Production.INFO: count ==1498 [2025-03-20 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:56:05 - End Time 2025-03-20 21:56:05 [2025-03-20 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725731', 'tblTempUsageDetail_20' ) start [2025-03-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725731', 'tblTempUsageDetail_20' ) end [2025-03-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725731', 'tblTempVendorCDR_20' ) start [2025-03-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725731', 'tblTempVendorCDR_20' ) end [2025-03-20 21:56:18] Production.INFO: ProcessCDR(1,14725731,1,1,2) [2025-03-20 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725731', 'tblTempUsageDetail_20' ) start [2025-03-20 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725731', 'tblTempUsageDetail_20' ) end [2025-03-20 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:56:22] Production.INFO: ==12331== Releasing lock... [2025-03-20 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:56:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-20 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:57:05 [end_date_ymd] => 2025-03-20 21:57:05 [RateCDR] => 1 ) [2025-03-20 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:57:05' and `end` < '2025-03-20 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:57:17] Production.INFO: count ==1497 [2025-03-20 21:57:17] Production.ERROR: pbx CDR StartTime 2025-03-20 18:57:05 - End Time 2025-03-20 21:57:05 [2025-03-20 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725736', 'tblTempUsageDetail_20' ) start [2025-03-20 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725736', 'tblTempUsageDetail_20' ) end [2025-03-20 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725736', 'tblTempVendorCDR_20' ) start [2025-03-20 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725736', 'tblTempVendorCDR_20' ) end [2025-03-20 21:57:17] Production.INFO: ProcessCDR(1,14725736,1,1,2) [2025-03-20 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725736', 'tblTempUsageDetail_20' ) start [2025-03-20 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725736', 'tblTempUsageDetail_20' ) end [2025-03-20 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:57:21] Production.INFO: ==12420== Releasing lock... [2025-03-20 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:57:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-20 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:58:05 [end_date_ymd] => 2025-03-20 21:58:05 [RateCDR] => 1 ) [2025-03-20 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 18:58:05' and `end` < '2025-03-20 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 21:58:18] Production.INFO: count ==1496 [2025-03-20 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:58:05 - End Time 2025-03-20 21:58:05 [2025-03-20 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725741', 'tblTempUsageDetail_20' ) start [2025-03-20 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725741', 'tblTempUsageDetail_20' ) end [2025-03-20 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725741', 'tblTempVendorCDR_20' ) start [2025-03-20 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725741', 'tblTempVendorCDR_20' ) end [2025-03-20 21:58:18] Production.INFO: ProcessCDR(1,14725741,1,1,2) [2025-03-20 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725741', 'tblTempUsageDetail_20' ) start [2025-03-20 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725741', 'tblTempUsageDetail_20' ) end [2025-03-20 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:58:23] Production.INFO: ==12513== Releasing lock... [2025-03-20 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:58:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 18:59:05 [end_date_ymd] => 2025-03-20 21:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 18:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 21:59:18] Production.INFO: count ==1494 [2025-03-20 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-20 18:59:05 - End Time 2025-03-20 21:59:05 [2025-03-20 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725746', 'tblTempUsageDetail_20' ) start [2025-03-20 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725746', 'tblTempUsageDetail_20' ) end [2025-03-20 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725746', 'tblTempVendorCDR_20' ) start [2025-03-20 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725746', 'tblTempVendorCDR_20' ) end [2025-03-20 21:59:18] Production.INFO: ProcessCDR(1,14725746,1,1,2) [2025-03-20 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725746', 'tblTempUsageDetail_20' ) start [2025-03-20 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725746', 'tblTempUsageDetail_20' ) end [2025-03-20 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 21:59:22] Production.INFO: ==12598== Releasing lock... [2025-03-20 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 21:59:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-20 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:00:06 [end_date_ymd] => 2025-03-20 22:00:06 [RateCDR] => 1 ) [2025-03-20 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:00:06' and `end` < '2025-03-20 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:00:18] Production.INFO: count ==1498 [2025-03-20 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 19:00:06 - End Time 2025-03-20 22:00:06 [2025-03-20 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725752', 'tblTempUsageDetail_20' ) start [2025-03-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725752', 'tblTempUsageDetail_20' ) end [2025-03-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725752', 'tblTempVendorCDR_20' ) start [2025-03-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725752', 'tblTempVendorCDR_20' ) end [2025-03-20 22:00:19] Production.INFO: ProcessCDR(1,14725752,1,1,2) [2025-03-20 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725752', 'tblTempUsageDetail_20' ) start [2025-03-20 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725752', 'tblTempUsageDetail_20' ) end [2025-03-20 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:00:24] Production.INFO: ==12688== Releasing lock... [2025-03-20 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:00:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-20 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:01:06 [end_date_ymd] => 2025-03-20 22:01:06 [RateCDR] => 1 ) [2025-03-20 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:01:06' and `end` < '2025-03-20 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:01:18] Production.INFO: count ==1448 [2025-03-20 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:01:06 - End Time 2025-03-20 22:01:06 [2025-03-20 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725757', 'tblTempUsageDetail_20' ) start [2025-03-20 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725757', 'tblTempUsageDetail_20' ) end [2025-03-20 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725757', 'tblTempVendorCDR_20' ) start [2025-03-20 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725757', 'tblTempVendorCDR_20' ) end [2025-03-20 22:01:18] Production.INFO: ProcessCDR(1,14725757,1,1,2) [2025-03-20 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725757', 'tblTempUsageDetail_20' ) start [2025-03-20 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725757', 'tblTempUsageDetail_20' ) end [2025-03-20 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:01:23] Production.INFO: ==12791== Releasing lock... [2025-03-20 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:01:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:02:05 [end_date_ymd] => 2025-03-20 22:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:02:18] Production.INFO: count ==1440 [2025-03-20 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:02:05 - End Time 2025-03-20 22:02:05 [2025-03-20 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725762', 'tblTempUsageDetail_20' ) start [2025-03-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725762', 'tblTempUsageDetail_20' ) end [2025-03-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725762', 'tblTempVendorCDR_20' ) start [2025-03-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725762', 'tblTempVendorCDR_20' ) end [2025-03-20 22:02:18] Production.INFO: ProcessCDR(1,14725762,1,1,2) [2025-03-20 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725762', 'tblTempUsageDetail_20' ) start [2025-03-20 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725762', 'tblTempUsageDetail_20' ) end [2025-03-20 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:02:22] Production.INFO: ==12876== Releasing lock... [2025-03-20 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:02:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:03:05 [end_date_ymd] => 2025-03-20 22:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:03:18] Production.INFO: count ==1440 [2025-03-20 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:03:05 - End Time 2025-03-20 22:03:05 [2025-03-20 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725767', 'tblTempUsageDetail_20' ) start [2025-03-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725767', 'tblTempUsageDetail_20' ) end [2025-03-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725767', 'tblTempVendorCDR_20' ) start [2025-03-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725767', 'tblTempVendorCDR_20' ) end [2025-03-20 22:03:18] Production.INFO: ProcessCDR(1,14725767,1,1,2) [2025-03-20 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725767', 'tblTempUsageDetail_20' ) start [2025-03-20 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725767', 'tblTempUsageDetail_20' ) end [2025-03-20 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:03:23] Production.INFO: ==12969== Releasing lock... [2025-03-20 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:04:06 [end_date_ymd] => 2025-03-20 22:04:06 [RateCDR] => 1 ) [2025-03-20 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:04:06' and `end` < '2025-03-20 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:04:18] Production.INFO: count ==1447 [2025-03-20 22:04:19] Production.ERROR: pbx CDR StartTime 2025-03-20 19:04:06 - End Time 2025-03-20 22:04:06 [2025-03-20 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725772', 'tblTempUsageDetail_20' ) start [2025-03-20 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725772', 'tblTempUsageDetail_20' ) end [2025-03-20 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725772', 'tblTempVendorCDR_20' ) start [2025-03-20 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725772', 'tblTempVendorCDR_20' ) end [2025-03-20 22:04:19] Production.INFO: ProcessCDR(1,14725772,1,1,2) [2025-03-20 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725772', 'tblTempUsageDetail_20' ) start [2025-03-20 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725772', 'tblTempUsageDetail_20' ) end [2025-03-20 22:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:04:24] Production.INFO: ==13059== Releasing lock... [2025-03-20 22:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:04:24] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:05:06 [end_date_ymd] => 2025-03-20 22:05:06 [RateCDR] => 1 ) [2025-03-20 22:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:05:06' and `end` < '2025-03-20 22:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:05:18] Production.INFO: count ==1438 [2025-03-20 22:05:19] Production.ERROR: pbx CDR StartTime 2025-03-20 19:05:06 - End Time 2025-03-20 22:05:06 [2025-03-20 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725777', 'tblTempUsageDetail_20' ) start [2025-03-20 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725777', 'tblTempUsageDetail_20' ) end [2025-03-20 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725777', 'tblTempVendorCDR_20' ) start [2025-03-20 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725777', 'tblTempVendorCDR_20' ) end [2025-03-20 22:05:19] Production.INFO: ProcessCDR(1,14725777,1,1,2) [2025-03-20 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725777', 'tblTempUsageDetail_20' ) start [2025-03-20 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725777', 'tblTempUsageDetail_20' ) end [2025-03-20 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:05:22] Production.INFO: ==13178== Releasing lock... [2025-03-20 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:05:22] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:06:05 [end_date_ymd] => 2025-03-20 22:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:06:18] Production.INFO: count ==1438 [2025-03-20 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:06:05 - End Time 2025-03-20 22:06:05 [2025-03-20 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725782', 'tblTempUsageDetail_20' ) start [2025-03-20 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725782', 'tblTempUsageDetail_20' ) end [2025-03-20 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725782', 'tblTempVendorCDR_20' ) start [2025-03-20 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725782', 'tblTempVendorCDR_20' ) end [2025-03-20 22:06:18] Production.INFO: ProcessCDR(1,14725782,1,1,2) [2025-03-20 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725782', 'tblTempUsageDetail_20' ) start [2025-03-20 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725782', 'tblTempUsageDetail_20' ) end [2025-03-20 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:06:23] Production.INFO: ==13279== Releasing lock... [2025-03-20 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:06:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:07:05 [end_date_ymd] => 2025-03-20 22:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:07:18] Production.INFO: count ==1431 [2025-03-20 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:07:05 - End Time 2025-03-20 22:07:05 [2025-03-20 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725787', 'tblTempUsageDetail_20' ) start [2025-03-20 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725787', 'tblTempUsageDetail_20' ) end [2025-03-20 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725787', 'tblTempVendorCDR_20' ) start [2025-03-20 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725787', 'tblTempVendorCDR_20' ) end [2025-03-20 22:07:18] Production.INFO: ProcessCDR(1,14725787,1,1,2) [2025-03-20 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725787', 'tblTempUsageDetail_20' ) start [2025-03-20 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725787', 'tblTempUsageDetail_20' ) end [2025-03-20 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:07:22] Production.INFO: ==13368== Releasing lock... [2025-03-20 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:07:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:08:05 [end_date_ymd] => 2025-03-20 22:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:08:17] Production.INFO: count ==1428 [2025-03-20 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:08:05 - End Time 2025-03-20 22:08:05 [2025-03-20 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725792', 'tblTempUsageDetail_20' ) start [2025-03-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725792', 'tblTempUsageDetail_20' ) end [2025-03-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725792', 'tblTempVendorCDR_20' ) start [2025-03-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725792', 'tblTempVendorCDR_20' ) end [2025-03-20 22:08:18] Production.INFO: ProcessCDR(1,14725792,1,1,2) [2025-03-20 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725792', 'tblTempUsageDetail_20' ) start [2025-03-20 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725792', 'tblTempUsageDetail_20' ) end [2025-03-20 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:08:21] Production.INFO: ==13452== Releasing lock... [2025-03-20 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:08:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-20 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:09:06 [end_date_ymd] => 2025-03-20 22:09:06 [RateCDR] => 1 ) [2025-03-20 22:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:09:06' and `end` < '2025-03-20 22:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:09:18] Production.INFO: count ==1434 [2025-03-20 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:09:06 - End Time 2025-03-20 22:09:06 [2025-03-20 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725797', 'tblTempUsageDetail_20' ) start [2025-03-20 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725797', 'tblTempUsageDetail_20' ) end [2025-03-20 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725797', 'tblTempVendorCDR_20' ) start [2025-03-20 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725797', 'tblTempVendorCDR_20' ) end [2025-03-20 22:09:19] Production.INFO: ProcessCDR(1,14725797,1,1,2) [2025-03-20 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725797', 'tblTempUsageDetail_20' ) start [2025-03-20 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725797', 'tblTempUsageDetail_20' ) end [2025-03-20 22:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:09:24] Production.INFO: ==13543== Releasing lock... [2025-03-20 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:09:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:10:05 [end_date_ymd] => 2025-03-20 22:10:05 [RateCDR] => 1 ) [2025-03-20 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:10:05' and `end` < '2025-03-20 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:10:18] Production.INFO: count ==1437 [2025-03-20 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:10:05 - End Time 2025-03-20 22:10:05 [2025-03-20 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725802', 'tblTempUsageDetail_20' ) start [2025-03-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725802', 'tblTempUsageDetail_20' ) end [2025-03-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725802', 'tblTempVendorCDR_20' ) start [2025-03-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725802', 'tblTempVendorCDR_20' ) end [2025-03-20 22:10:18] Production.INFO: ProcessCDR(1,14725802,1,1,2) [2025-03-20 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725802', 'tblTempUsageDetail_20' ) start [2025-03-20 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725802', 'tblTempUsageDetail_20' ) end [2025-03-20 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:10:21] Production.INFO: ==13630== Releasing lock... [2025-03-20 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:10:21] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:11:06 [end_date_ymd] => 2025-03-20 22:11:06 [RateCDR] => 1 ) [2025-03-20 22:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:11:06' and `end` < '2025-03-20 22:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:11:18] Production.INFO: count ==1425 [2025-03-20 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:11:06 - End Time 2025-03-20 22:11:06 [2025-03-20 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725808', 'tblTempUsageDetail_20' ) start [2025-03-20 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725808', 'tblTempUsageDetail_20' ) end [2025-03-20 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725808', 'tblTempVendorCDR_20' ) start [2025-03-20 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725808', 'tblTempVendorCDR_20' ) end [2025-03-20 22:11:18] Production.INFO: ProcessCDR(1,14725808,1,1,2) [2025-03-20 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725808', 'tblTempUsageDetail_20' ) start [2025-03-20 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725808', 'tblTempUsageDetail_20' ) end [2025-03-20 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:11:22] Production.INFO: ==13721== Releasing lock... [2025-03-20 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:11:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:12:05 [end_date_ymd] => 2025-03-20 22:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:12:18] Production.INFO: count ==1425 [2025-03-20 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:12:05 - End Time 2025-03-20 22:12:05 [2025-03-20 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725813', 'tblTempUsageDetail_20' ) start [2025-03-20 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725813', 'tblTempUsageDetail_20' ) end [2025-03-20 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725813', 'tblTempVendorCDR_20' ) start [2025-03-20 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725813', 'tblTempVendorCDR_20' ) end [2025-03-20 22:12:18] Production.INFO: ProcessCDR(1,14725813,1,1,2) [2025-03-20 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725813', 'tblTempUsageDetail_20' ) start [2025-03-20 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725813', 'tblTempUsageDetail_20' ) end [2025-03-20 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:12:21] Production.INFO: ==13804== Releasing lock... [2025-03-20 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:12:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:13:05 [end_date_ymd] => 2025-03-20 22:13:05 [RateCDR] => 1 ) [2025-03-20 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:13:05' and `end` < '2025-03-20 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:13:18] Production.INFO: count ==1430 [2025-03-20 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:13:05 - End Time 2025-03-20 22:13:05 [2025-03-20 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725818', 'tblTempUsageDetail_20' ) start [2025-03-20 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725818', 'tblTempUsageDetail_20' ) end [2025-03-20 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725818', 'tblTempVendorCDR_20' ) start [2025-03-20 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725818', 'tblTempVendorCDR_20' ) end [2025-03-20 22:13:18] Production.INFO: ProcessCDR(1,14725818,1,1,2) [2025-03-20 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725818', 'tblTempUsageDetail_20' ) start [2025-03-20 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725818', 'tblTempUsageDetail_20' ) end [2025-03-20 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:13:22] Production.INFO: ==13894== Releasing lock... [2025-03-20 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:13:22] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:14:05 [end_date_ymd] => 2025-03-20 22:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:14:17] Production.INFO: count ==1431 [2025-03-20 22:14:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:14:05 - End Time 2025-03-20 22:14:05 [2025-03-20 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725823', 'tblTempUsageDetail_20' ) start [2025-03-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725823', 'tblTempUsageDetail_20' ) end [2025-03-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725823', 'tblTempVendorCDR_20' ) start [2025-03-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725823', 'tblTempVendorCDR_20' ) end [2025-03-20 22:14:17] Production.INFO: ProcessCDR(1,14725823,1,1,2) [2025-03-20 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725823', 'tblTempUsageDetail_20' ) start [2025-03-20 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725823', 'tblTempUsageDetail_20' ) end [2025-03-20 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:14:21] Production.INFO: ==13973== Releasing lock... [2025-03-20 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:14:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:15:05 [end_date_ymd] => 2025-03-20 22:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:15:17] Production.INFO: count ==1430 [2025-03-20 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:15:05 - End Time 2025-03-20 22:15:05 [2025-03-20 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725828', 'tblTempUsageDetail_20' ) start [2025-03-20 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725828', 'tblTempUsageDetail_20' ) end [2025-03-20 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725828', 'tblTempVendorCDR_20' ) start [2025-03-20 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725828', 'tblTempVendorCDR_20' ) end [2025-03-20 22:15:18] Production.INFO: ProcessCDR(1,14725828,1,1,2) [2025-03-20 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725828', 'tblTempUsageDetail_20' ) start [2025-03-20 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725828', 'tblTempUsageDetail_20' ) end [2025-03-20 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:15:21] Production.INFO: ==14067== Releasing lock... [2025-03-20 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:15:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:16:05 [end_date_ymd] => 2025-03-20 22:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:16:17] Production.INFO: count ==1432 [2025-03-20 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:16:05 - End Time 2025-03-20 22:16:05 [2025-03-20 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725833', 'tblTempUsageDetail_20' ) start [2025-03-20 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725833', 'tblTempUsageDetail_20' ) end [2025-03-20 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725833', 'tblTempVendorCDR_20' ) start [2025-03-20 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725833', 'tblTempVendorCDR_20' ) end [2025-03-20 22:16:18] Production.INFO: ProcessCDR(1,14725833,1,1,2) [2025-03-20 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725833', 'tblTempUsageDetail_20' ) start [2025-03-20 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725833', 'tblTempUsageDetail_20' ) end [2025-03-20 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:16:21] Production.INFO: ==14154== Releasing lock... [2025-03-20 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:16:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:17:05 [end_date_ymd] => 2025-03-20 22:17:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:17:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:17:18] Production.INFO: count ==1439 [2025-03-20 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:17:05 - End Time 2025-03-20 22:17:05 [2025-03-20 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725838', 'tblTempUsageDetail_20' ) start [2025-03-20 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725838', 'tblTempUsageDetail_20' ) end [2025-03-20 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725838', 'tblTempVendorCDR_20' ) start [2025-03-20 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725838', 'tblTempVendorCDR_20' ) end [2025-03-20 22:17:18] Production.INFO: ProcessCDR(1,14725838,1,1,2) [2025-03-20 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725838', 'tblTempUsageDetail_20' ) start [2025-03-20 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725838', 'tblTempUsageDetail_20' ) end [2025-03-20 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:17:22] Production.INFO: ==14247== Releasing lock... [2025-03-20 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:17:22] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:18:06 [end_date_ymd] => 2025-03-20 22:18:06 [RateCDR] => 1 ) [2025-03-20 22:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:18:06' and `end` < '2025-03-20 22:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:18:18] Production.INFO: count ==1437 [2025-03-20 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:18:06 - End Time 2025-03-20 22:18:06 [2025-03-20 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725843', 'tblTempUsageDetail_20' ) start [2025-03-20 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725843', 'tblTempUsageDetail_20' ) end [2025-03-20 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725843', 'tblTempVendorCDR_20' ) start [2025-03-20 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725843', 'tblTempVendorCDR_20' ) end [2025-03-20 22:18:18] Production.INFO: ProcessCDR(1,14725843,1,1,2) [2025-03-20 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725843', 'tblTempUsageDetail_20' ) start [2025-03-20 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725843', 'tblTempUsageDetail_20' ) end [2025-03-20 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:18:22] Production.INFO: ==14345== Releasing lock... [2025-03-20 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:18:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:19:05 [end_date_ymd] => 2025-03-20 22:19:05 [RateCDR] => 1 ) [2025-03-20 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:19:05' and `end` < '2025-03-20 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:19:17] Production.INFO: count ==1434 [2025-03-20 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:19:05 - End Time 2025-03-20 22:19:05 [2025-03-20 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725848', 'tblTempUsageDetail_20' ) start [2025-03-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725848', 'tblTempUsageDetail_20' ) end [2025-03-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725848', 'tblTempVendorCDR_20' ) start [2025-03-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725848', 'tblTempVendorCDR_20' ) end [2025-03-20 22:19:18] Production.INFO: ProcessCDR(1,14725848,1,1,2) [2025-03-20 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725848', 'tblTempUsageDetail_20' ) start [2025-03-20 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725848', 'tblTempUsageDetail_20' ) end [2025-03-20 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:19:21] Production.INFO: ==14431== Releasing lock... [2025-03-20 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:19:21] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:20:07 [end_date_ymd] => 2025-03-20 22:20:07 [RateCDR] => 1 ) [2025-03-20 22:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:20:07' and `end` < '2025-03-20 22:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:20:19] Production.INFO: count ==1436 [2025-03-20 22:20:20] Production.ERROR: pbx CDR StartTime 2025-03-20 19:20:07 - End Time 2025-03-20 22:20:07 [2025-03-20 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725854', 'tblTempUsageDetail_20' ) start [2025-03-20 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725854', 'tblTempUsageDetail_20' ) end [2025-03-20 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725854', 'tblTempVendorCDR_20' ) start [2025-03-20 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725854', 'tblTempVendorCDR_20' ) end [2025-03-20 22:20:20] Production.INFO: ProcessCDR(1,14725854,1,1,2) [2025-03-20 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725854', 'tblTempUsageDetail_20' ) start [2025-03-20 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725854', 'tblTempUsageDetail_20' ) end [2025-03-20 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:20:23] Production.INFO: ==14515== Releasing lock... [2025-03-20 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:20:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:21:05 [end_date_ymd] => 2025-03-20 22:21:05 [RateCDR] => 1 ) [2025-03-20 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:21:05' and `end` < '2025-03-20 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:21:18] Production.INFO: count ==1428 [2025-03-20 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:21:05 - End Time 2025-03-20 22:21:05 [2025-03-20 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725859', 'tblTempUsageDetail_20' ) start [2025-03-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725859', 'tblTempUsageDetail_20' ) end [2025-03-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725859', 'tblTempVendorCDR_20' ) start [2025-03-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725859', 'tblTempVendorCDR_20' ) end [2025-03-20 22:21:18] Production.INFO: ProcessCDR(1,14725859,1,1,2) [2025-03-20 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725859', 'tblTempUsageDetail_20' ) start [2025-03-20 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725859', 'tblTempUsageDetail_20' ) end [2025-03-20 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:21:21] Production.INFO: ==14640== Releasing lock... [2025-03-20 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:21:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:22:05 [end_date_ymd] => 2025-03-20 22:22:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:22:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:22:17] Production.INFO: count ==1431 [2025-03-20 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:22:05 - End Time 2025-03-20 22:22:05 [2025-03-20 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725864', 'tblTempUsageDetail_20' ) start [2025-03-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725864', 'tblTempUsageDetail_20' ) end [2025-03-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725864', 'tblTempVendorCDR_20' ) start [2025-03-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725864', 'tblTempVendorCDR_20' ) end [2025-03-20 22:22:18] Production.INFO: ProcessCDR(1,14725864,1,1,2) [2025-03-20 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725864', 'tblTempUsageDetail_20' ) start [2025-03-20 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725864', 'tblTempUsageDetail_20' ) end [2025-03-20 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:22:21] Production.INFO: ==14725== Releasing lock... [2025-03-20 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:22:21] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:23:06 [end_date_ymd] => 2025-03-20 22:23:06 [RateCDR] => 1 ) [2025-03-20 22:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:23:06' and `end` < '2025-03-20 22:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:23:18] Production.INFO: count ==1433 [2025-03-20 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:23:06 - End Time 2025-03-20 22:23:06 [2025-03-20 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725869', 'tblTempUsageDetail_20' ) start [2025-03-20 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725869', 'tblTempUsageDetail_20' ) end [2025-03-20 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725869', 'tblTempVendorCDR_20' ) start [2025-03-20 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725869', 'tblTempVendorCDR_20' ) end [2025-03-20 22:23:18] Production.INFO: ProcessCDR(1,14725869,1,1,2) [2025-03-20 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725869', 'tblTempUsageDetail_20' ) start [2025-03-20 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725869', 'tblTempUsageDetail_20' ) end [2025-03-20 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:23:23] Production.INFO: ==14805== Releasing lock... [2025-03-20 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:23:23] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:24:05 [end_date_ymd] => 2025-03-20 22:24:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:24:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:24:17] Production.INFO: count ==1427 [2025-03-20 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:24:05 - End Time 2025-03-20 22:24:05 [2025-03-20 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725874', 'tblTempUsageDetail_20' ) start [2025-03-20 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725874', 'tblTempUsageDetail_20' ) end [2025-03-20 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725874', 'tblTempVendorCDR_20' ) start [2025-03-20 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725874', 'tblTempVendorCDR_20' ) end [2025-03-20 22:24:18] Production.INFO: ProcessCDR(1,14725874,1,1,2) [2025-03-20 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725874', 'tblTempUsageDetail_20' ) start [2025-03-20 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725874', 'tblTempUsageDetail_20' ) end [2025-03-20 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:24:23] Production.INFO: ==14884== Releasing lock... [2025-03-20 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:24:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:25:06 [end_date_ymd] => 2025-03-20 22:25:06 [RateCDR] => 1 ) [2025-03-20 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:25:06' and `end` < '2025-03-20 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:25:18] Production.INFO: count ==1426 [2025-03-20 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:25:06 - End Time 2025-03-20 22:25:06 [2025-03-20 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725879', 'tblTempUsageDetail_20' ) start [2025-03-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725879', 'tblTempUsageDetail_20' ) end [2025-03-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725879', 'tblTempVendorCDR_20' ) start [2025-03-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725879', 'tblTempVendorCDR_20' ) end [2025-03-20 22:25:18] Production.INFO: ProcessCDR(1,14725879,1,1,2) [2025-03-20 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725879', 'tblTempUsageDetail_20' ) start [2025-03-20 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725879', 'tblTempUsageDetail_20' ) end [2025-03-20 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:25:23] Production.INFO: ==14984== Releasing lock... [2025-03-20 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:25:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:26:05 [end_date_ymd] => 2025-03-20 22:26:05 [RateCDR] => 1 ) [2025-03-20 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:26:05' and `end` < '2025-03-20 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:26:18] Production.INFO: count ==1427 [2025-03-20 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:26:05 - End Time 2025-03-20 22:26:05 [2025-03-20 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725884', 'tblTempUsageDetail_20' ) start [2025-03-20 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725884', 'tblTempUsageDetail_20' ) end [2025-03-20 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725884', 'tblTempVendorCDR_20' ) start [2025-03-20 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725884', 'tblTempVendorCDR_20' ) end [2025-03-20 22:26:18] Production.INFO: ProcessCDR(1,14725884,1,1,2) [2025-03-20 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725884', 'tblTempUsageDetail_20' ) start [2025-03-20 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725884', 'tblTempUsageDetail_20' ) end [2025-03-20 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:26:21] Production.INFO: ==15067== Releasing lock... [2025-03-20 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:26:21] Production.INFO: 39 MB #Memory Used# [2025-03-20 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:27:05 [end_date_ymd] => 2025-03-20 22:27:05 [RateCDR] => 1 ) [2025-03-20 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:27:05' and `end` < '2025-03-20 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:27:18] Production.INFO: count ==1422 [2025-03-20 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:27:05 - End Time 2025-03-20 22:27:05 [2025-03-20 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725889', 'tblTempUsageDetail_20' ) start [2025-03-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725889', 'tblTempUsageDetail_20' ) end [2025-03-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725889', 'tblTempVendorCDR_20' ) start [2025-03-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725889', 'tblTempVendorCDR_20' ) end [2025-03-20 22:27:18] Production.INFO: ProcessCDR(1,14725889,1,1,2) [2025-03-20 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725889', 'tblTempUsageDetail_20' ) start [2025-03-20 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725889', 'tblTempUsageDetail_20' ) end [2025-03-20 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:27:23] Production.INFO: ==15169== Releasing lock... [2025-03-20 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:27:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:28:06 [end_date_ymd] => 2025-03-20 22:28:06 [RateCDR] => 1 ) [2025-03-20 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:28:06' and `end` < '2025-03-20 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:28:18] Production.INFO: count ==1423 [2025-03-20 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:28:06 - End Time 2025-03-20 22:28:06 [2025-03-20 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725894', 'tblTempUsageDetail_20' ) start [2025-03-20 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725894', 'tblTempUsageDetail_20' ) end [2025-03-20 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725894', 'tblTempVendorCDR_20' ) start [2025-03-20 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725894', 'tblTempVendorCDR_20' ) end [2025-03-20 22:28:18] Production.INFO: ProcessCDR(1,14725894,1,1,2) [2025-03-20 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725894', 'tblTempUsageDetail_20' ) start [2025-03-20 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725894', 'tblTempUsageDetail_20' ) end [2025-03-20 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:28:22] Production.INFO: ==15259== Releasing lock... [2025-03-20 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:28:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:29:06 [end_date_ymd] => 2025-03-20 22:29:06 [RateCDR] => 1 ) [2025-03-20 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:29:06' and `end` < '2025-03-20 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:29:18] Production.INFO: count ==1422 [2025-03-20 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:29:06 - End Time 2025-03-20 22:29:06 [2025-03-20 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725899', 'tblTempUsageDetail_20' ) start [2025-03-20 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725899', 'tblTempUsageDetail_20' ) end [2025-03-20 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725899', 'tblTempVendorCDR_20' ) start [2025-03-20 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725899', 'tblTempVendorCDR_20' ) end [2025-03-20 22:29:18] Production.INFO: ProcessCDR(1,14725899,1,1,2) [2025-03-20 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725899', 'tblTempUsageDetail_20' ) start [2025-03-20 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725899', 'tblTempUsageDetail_20' ) end [2025-03-20 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:29:22] Production.INFO: ==15355== Releasing lock... [2025-03-20 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:29:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:30:07 [end_date_ymd] => 2025-03-20 22:30:07 [RateCDR] => 1 ) [2025-03-20 22:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:30:07' and `end` < '2025-03-20 22:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:30:19] Production.INFO: count ==1423 [2025-03-20 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 19:30:07 - End Time 2025-03-20 22:30:07 [2025-03-20 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725905', 'tblTempUsageDetail_20' ) start [2025-03-20 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725905', 'tblTempUsageDetail_20' ) end [2025-03-20 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725905', 'tblTempVendorCDR_20' ) start [2025-03-20 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725905', 'tblTempVendorCDR_20' ) end [2025-03-20 22:30:20] Production.INFO: ProcessCDR(1,14725905,1,1,2) [2025-03-20 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725905', 'tblTempUsageDetail_20' ) start [2025-03-20 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725905', 'tblTempUsageDetail_20' ) end [2025-03-20 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:30:23] Production.INFO: ==15450== Releasing lock... [2025-03-20 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:30:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-20 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:31:05 [end_date_ymd] => 2025-03-20 22:31:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:31:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:31:17] Production.INFO: count ==1362 [2025-03-20 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:31:05 - End Time 2025-03-20 22:31:05 [2025-03-20 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725910', 'tblTempUsageDetail_20' ) start [2025-03-20 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725910', 'tblTempUsageDetail_20' ) end [2025-03-20 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725910', 'tblTempVendorCDR_20' ) start [2025-03-20 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725910', 'tblTempVendorCDR_20' ) end [2025-03-20 22:31:18] Production.INFO: ProcessCDR(1,14725910,1,1,2) [2025-03-20 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725910', 'tblTempUsageDetail_20' ) start [2025-03-20 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725910', 'tblTempUsageDetail_20' ) end [2025-03-20 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:31:21] Production.INFO: ==15554== Releasing lock... [2025-03-20 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:31:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-20 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:32:05 [end_date_ymd] => 2025-03-20 22:32:05 [RateCDR] => 1 ) [2025-03-20 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:32:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:32:18] Production.INFO: count ==1357 [2025-03-20 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:32:05 - End Time 2025-03-20 22:32:05 [2025-03-20 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725915', 'tblTempUsageDetail_20' ) start [2025-03-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725915', 'tblTempUsageDetail_20' ) end [2025-03-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725915', 'tblTempVendorCDR_20' ) start [2025-03-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725915', 'tblTempVendorCDR_20' ) end [2025-03-20 22:32:18] Production.INFO: ProcessCDR(1,14725915,1,1,2) [2025-03-20 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725915', 'tblTempUsageDetail_20' ) start [2025-03-20 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725915', 'tblTempUsageDetail_20' ) end [2025-03-20 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:32:23] Production.INFO: ==15660== Releasing lock... [2025-03-20 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:32:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:33:05 [end_date_ymd] => 2025-03-20 22:33:05 [RateCDR] => 1 ) [2025-03-20 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:33:05' and `end` < '2025-03-20 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:33:18] Production.INFO: count ==1344 [2025-03-20 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:33:05 - End Time 2025-03-20 22:33:05 [2025-03-20 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725920', 'tblTempUsageDetail_20' ) start [2025-03-20 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725920', 'tblTempUsageDetail_20' ) end [2025-03-20 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725920', 'tblTempVendorCDR_20' ) start [2025-03-20 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725920', 'tblTempVendorCDR_20' ) end [2025-03-20 22:33:18] Production.INFO: ProcessCDR(1,14725920,1,1,2) [2025-03-20 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725920', 'tblTempUsageDetail_20' ) start [2025-03-20 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725920', 'tblTempUsageDetail_20' ) end [2025-03-20 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:33:21] Production.INFO: ==15769== Releasing lock... [2025-03-20 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:33:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:34:06 [end_date_ymd] => 2025-03-20 22:34:06 [RateCDR] => 1 ) [2025-03-20 22:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:34:06' and `end` < '2025-03-20 22:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:34:18] Production.INFO: count ==1341 [2025-03-20 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:34:06 - End Time 2025-03-20 22:34:06 [2025-03-20 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725925', 'tblTempUsageDetail_20' ) start [2025-03-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725925', 'tblTempUsageDetail_20' ) end [2025-03-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725925', 'tblTempVendorCDR_20' ) start [2025-03-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725925', 'tblTempVendorCDR_20' ) end [2025-03-20 22:34:18] Production.INFO: ProcessCDR(1,14725925,1,1,2) [2025-03-20 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725925', 'tblTempUsageDetail_20' ) start [2025-03-20 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725925', 'tblTempUsageDetail_20' ) end [2025-03-20 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:34:22] Production.INFO: ==15877== Releasing lock... [2025-03-20 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:34:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:35:05 [end_date_ymd] => 2025-03-20 22:35:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:35:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:35:17] Production.INFO: count ==1340 [2025-03-20 22:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:35:05 - End Time 2025-03-20 22:35:05 [2025-03-20 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725930', 'tblTempUsageDetail_20' ) start [2025-03-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725930', 'tblTempUsageDetail_20' ) end [2025-03-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725930', 'tblTempVendorCDR_20' ) start [2025-03-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725930', 'tblTempVendorCDR_20' ) end [2025-03-20 22:35:17] Production.INFO: ProcessCDR(1,14725930,1,1,2) [2025-03-20 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725930', 'tblTempUsageDetail_20' ) start [2025-03-20 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725930', 'tblTempUsageDetail_20' ) end [2025-03-20 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:35:21] Production.INFO: ==15967== Releasing lock... [2025-03-20 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:35:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:36:05 [end_date_ymd] => 2025-03-20 22:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:36:18] Production.INFO: count ==1337 [2025-03-20 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:36:05 - End Time 2025-03-20 22:36:05 [2025-03-20 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725935', 'tblTempUsageDetail_20' ) start [2025-03-20 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725935', 'tblTempUsageDetail_20' ) end [2025-03-20 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725935', 'tblTempVendorCDR_20' ) start [2025-03-20 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725935', 'tblTempVendorCDR_20' ) end [2025-03-20 22:36:18] Production.INFO: ProcessCDR(1,14725935,1,1,2) [2025-03-20 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725935', 'tblTempUsageDetail_20' ) start [2025-03-20 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725935', 'tblTempUsageDetail_20' ) end [2025-03-20 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:36:23] Production.INFO: ==16118== Releasing lock... [2025-03-20 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:36:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:37:05 [end_date_ymd] => 2025-03-20 22:37:05 [RateCDR] => 1 ) [2025-03-20 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:37:05' and `end` < '2025-03-20 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:37:17] Production.INFO: count ==1339 [2025-03-20 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:37:05 - End Time 2025-03-20 22:37:05 [2025-03-20 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725940', 'tblTempUsageDetail_20' ) start [2025-03-20 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725940', 'tblTempUsageDetail_20' ) end [2025-03-20 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725940', 'tblTempVendorCDR_20' ) start [2025-03-20 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725940', 'tblTempVendorCDR_20' ) end [2025-03-20 22:37:17] Production.INFO: ProcessCDR(1,14725940,1,1,2) [2025-03-20 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725940', 'tblTempUsageDetail_20' ) start [2025-03-20 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725940', 'tblTempUsageDetail_20' ) end [2025-03-20 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:37:23] Production.INFO: ==16217== Releasing lock... [2025-03-20 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:37:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:38:05 [end_date_ymd] => 2025-03-20 22:38:05 [RateCDR] => 1 ) [2025-03-20 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:38:05' and `end` < '2025-03-20 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:38:18] Production.INFO: count ==1340 [2025-03-20 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:38:05 - End Time 2025-03-20 22:38:05 [2025-03-20 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725945', 'tblTempUsageDetail_20' ) start [2025-03-20 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725945', 'tblTempUsageDetail_20' ) end [2025-03-20 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725945', 'tblTempVendorCDR_20' ) start [2025-03-20 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725945', 'tblTempVendorCDR_20' ) end [2025-03-20 22:38:18] Production.INFO: ProcessCDR(1,14725945,1,1,2) [2025-03-20 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725945', 'tblTempUsageDetail_20' ) start [2025-03-20 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725945', 'tblTempUsageDetail_20' ) end [2025-03-20 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:38:21] Production.INFO: ==16324== Releasing lock... [2025-03-20 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:38:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-20 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:39:05 [end_date_ymd] => 2025-03-20 22:39:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:39:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:39:17] Production.INFO: count ==1330 [2025-03-20 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:39:05 - End Time 2025-03-20 22:39:05 [2025-03-20 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725950', 'tblTempUsageDetail_20' ) start [2025-03-20 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725950', 'tblTempUsageDetail_20' ) end [2025-03-20 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725950', 'tblTempVendorCDR_20' ) start [2025-03-20 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725950', 'tblTempVendorCDR_20' ) end [2025-03-20 22:39:18] Production.INFO: ProcessCDR(1,14725950,1,1,2) [2025-03-20 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725950', 'tblTempUsageDetail_20' ) start [2025-03-20 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725950', 'tblTempUsageDetail_20' ) end [2025-03-20 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:39:21] Production.INFO: ==16422== Releasing lock... [2025-03-20 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:39:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:40:06 [end_date_ymd] => 2025-03-20 22:40:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:40:06' and `end` < '2025-03-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 ,'') [2025-03-20 22:40:18] Production.INFO: count ==1329 [2025-03-20 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-20 19:40:06 - End Time 2025-03-20 22:40:06 [2025-03-20 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725956', 'tblTempUsageDetail_20' ) start [2025-03-20 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725956', 'tblTempUsageDetail_20' ) end [2025-03-20 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725956', 'tblTempVendorCDR_20' ) start [2025-03-20 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725956', 'tblTempVendorCDR_20' ) end [2025-03-20 22:40:19] Production.INFO: ProcessCDR(1,14725956,1,1,2) [2025-03-20 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725956', 'tblTempUsageDetail_20' ) start [2025-03-20 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725956', 'tblTempUsageDetail_20' ) end [2025-03-20 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:40:22] Production.INFO: ==16523== Releasing lock... [2025-03-20 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:40:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:41:05 [end_date_ymd] => 2025-03-20 22:41:05 [RateCDR] => 1 ) [2025-03-20 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:41:05' and `end` < '2025-03-20 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:41:17] Production.INFO: count ==1310 [2025-03-20 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:41:05 - End Time 2025-03-20 22:41:05 [2025-03-20 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725961', 'tblTempUsageDetail_20' ) start [2025-03-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725961', 'tblTempUsageDetail_20' ) end [2025-03-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725961', 'tblTempVendorCDR_20' ) start [2025-03-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725961', 'tblTempVendorCDR_20' ) end [2025-03-20 22:41:17] Production.INFO: ProcessCDR(1,14725961,1,1,2) [2025-03-20 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725961', 'tblTempUsageDetail_20' ) start [2025-03-20 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725961', 'tblTempUsageDetail_20' ) end [2025-03-20 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:41:21] Production.INFO: ==16616== Releasing lock... [2025-03-20 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:41:21] Production.INFO: 38 MB #Memory Used# [2025-03-20 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:42:05 [end_date_ymd] => 2025-03-20 22:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:42:18] Production.INFO: count ==1307 [2025-03-20 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:42:05 - End Time 2025-03-20 22:42:05 [2025-03-20 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725966', 'tblTempUsageDetail_20' ) start [2025-03-20 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725966', 'tblTempUsageDetail_20' ) end [2025-03-20 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725966', 'tblTempVendorCDR_20' ) start [2025-03-20 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725966', 'tblTempVendorCDR_20' ) end [2025-03-20 22:42:18] Production.INFO: ProcessCDR(1,14725966,1,1,2) [2025-03-20 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725966', 'tblTempUsageDetail_20' ) start [2025-03-20 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725966', 'tblTempUsageDetail_20' ) end [2025-03-20 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:42:21] Production.INFO: ==16733== Releasing lock... [2025-03-20 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:42:21] Production.INFO: 38 MB #Memory Used# [2025-03-20 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:43:05 [end_date_ymd] => 2025-03-20 22:43:05 [RateCDR] => 1 ) [2025-03-20 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:43:05' and `end` < '2025-03-20 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:43:17] Production.INFO: count ==1301 [2025-03-20 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:43:05 - End Time 2025-03-20 22:43:05 [2025-03-20 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725971', 'tblTempUsageDetail_20' ) start [2025-03-20 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725971', 'tblTempUsageDetail_20' ) end [2025-03-20 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725971', 'tblTempVendorCDR_20' ) start [2025-03-20 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725971', 'tblTempVendorCDR_20' ) end [2025-03-20 22:43:18] Production.INFO: ProcessCDR(1,14725971,1,1,2) [2025-03-20 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725971', 'tblTempUsageDetail_20' ) start [2025-03-20 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725971', 'tblTempUsageDetail_20' ) end [2025-03-20 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:43:21] Production.INFO: ==16831== Releasing lock... [2025-03-20 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:43:21] Production.INFO: 38 MB #Memory Used# [2025-03-20 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:44:05 [end_date_ymd] => 2025-03-20 22:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:44:18] Production.INFO: count ==1291 [2025-03-20 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:44:05 - End Time 2025-03-20 22:44:05 [2025-03-20 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725976', 'tblTempUsageDetail_20' ) start [2025-03-20 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725976', 'tblTempUsageDetail_20' ) end [2025-03-20 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725976', 'tblTempVendorCDR_20' ) start [2025-03-20 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725976', 'tblTempVendorCDR_20' ) end [2025-03-20 22:44:18] Production.INFO: ProcessCDR(1,14725976,1,1,2) [2025-03-20 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725976', 'tblTempUsageDetail_20' ) start [2025-03-20 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725976', 'tblTempUsageDetail_20' ) end [2025-03-20 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:44:21] Production.INFO: ==16929== Releasing lock... [2025-03-20 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:44:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-20 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:45:04 [end_date_ymd] => 2025-03-20 22:45:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:45:04' and `end` < '2025-03-20 22:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:45:17] Production.INFO: count ==1289 [2025-03-20 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:45:04 - End Time 2025-03-20 22:45:04 [2025-03-20 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725981', 'tblTempUsageDetail_20' ) start [2025-03-20 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725981', 'tblTempUsageDetail_20' ) end [2025-03-20 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725981', 'tblTempVendorCDR_20' ) start [2025-03-20 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725981', 'tblTempVendorCDR_20' ) end [2025-03-20 22:45:17] Production.INFO: ProcessCDR(1,14725981,1,1,2) [2025-03-20 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725981', 'tblTempUsageDetail_20' ) start [2025-03-20 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725981', 'tblTempUsageDetail_20' ) end [2025-03-20 22:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:45:20] Production.INFO: ==17028== Releasing lock... [2025-03-20 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:45:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-20 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:46:05 [end_date_ymd] => 2025-03-20 22:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:46:18] Production.INFO: count ==1298 [2025-03-20 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:46:05 - End Time 2025-03-20 22:46:05 [2025-03-20 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725986', 'tblTempUsageDetail_20' ) start [2025-03-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725986', 'tblTempUsageDetail_20' ) end [2025-03-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725986', 'tblTempVendorCDR_20' ) start [2025-03-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725986', 'tblTempVendorCDR_20' ) end [2025-03-20 22:46:18] Production.INFO: ProcessCDR(1,14725986,1,1,2) [2025-03-20 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725986', 'tblTempUsageDetail_20' ) start [2025-03-20 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725986', 'tblTempUsageDetail_20' ) end [2025-03-20 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:46:23] Production.INFO: ==17124== Releasing lock... [2025-03-20 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:46:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:47:04 [end_date_ymd] => 2025-03-20 22:47:04 [RateCDR] => 1 ) [2025-03-20 22:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:47:04' and `end` < '2025-03-20 22:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:47:17] Production.INFO: count ==1299 [2025-03-20 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:47:04 - End Time 2025-03-20 22:47:04 [2025-03-20 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725991', 'tblTempUsageDetail_20' ) start [2025-03-20 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725991', 'tblTempUsageDetail_20' ) end [2025-03-20 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725991', 'tblTempVendorCDR_20' ) start [2025-03-20 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725991', 'tblTempVendorCDR_20' ) end [2025-03-20 22:47:17] Production.INFO: ProcessCDR(1,14725991,1,1,2) [2025-03-20 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725991', 'tblTempUsageDetail_20' ) start [2025-03-20 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725991', 'tblTempUsageDetail_20' ) end [2025-03-20 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:47:22] Production.INFO: ==17233== Releasing lock... [2025-03-20 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:47:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-20 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:48:05 [end_date_ymd] => 2025-03-20 22:48:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:48:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:48:18] Production.INFO: count ==1303 [2025-03-20 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:48:05 - End Time 2025-03-20 22:48:05 [2025-03-20 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725996', 'tblTempUsageDetail_20' ) start [2025-03-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14725996', 'tblTempUsageDetail_20' ) end [2025-03-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725996', 'tblTempVendorCDR_20' ) start [2025-03-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14725996', 'tblTempVendorCDR_20' ) end [2025-03-20 22:48:18] Production.INFO: ProcessCDR(1,14725996,1,1,2) [2025-03-20 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14725996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14725996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14725996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14725996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725996', 'tblTempUsageDetail_20' ) start [2025-03-20 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14725996', 'tblTempUsageDetail_20' ) end [2025-03-20 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:48:22] Production.INFO: ==17336== Releasing lock... [2025-03-20 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:48:22] Production.INFO: 38 MB #Memory Used# [2025-03-20 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:49:06 [end_date_ymd] => 2025-03-20 22:49:06 [RateCDR] => 1 ) [2025-03-20 22:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:49:06' and `end` < '2025-03-20 22:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:49:18] Production.INFO: count ==1297 [2025-03-20 22:49:19] Production.ERROR: pbx CDR StartTime 2025-03-20 19:49:06 - End Time 2025-03-20 22:49:06 [2025-03-20 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726001', 'tblTempUsageDetail_20' ) start [2025-03-20 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726001', 'tblTempUsageDetail_20' ) end [2025-03-20 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726001', 'tblTempVendorCDR_20' ) start [2025-03-20 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726001', 'tblTempVendorCDR_20' ) end [2025-03-20 22:49:19] Production.INFO: ProcessCDR(1,14726001,1,1,2) [2025-03-20 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726001', 'tblTempUsageDetail_20' ) start [2025-03-20 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726001', 'tblTempUsageDetail_20' ) end [2025-03-20 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:49:22] Production.INFO: ==17416== Releasing lock... [2025-03-20 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:49:22] Production.INFO: 38 MB #Memory Used# [2025-03-20 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:50:06 [end_date_ymd] => 2025-03-20 22:50:06 [RateCDR] => 1 ) [2025-03-20 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:50:06' and `end` < '2025-03-20 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:50:19] Production.INFO: count ==1293 [2025-03-20 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-20 19:50:06 - End Time 2025-03-20 22:50:06 [2025-03-20 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726006', 'tblTempUsageDetail_20' ) start [2025-03-20 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726006', 'tblTempUsageDetail_20' ) end [2025-03-20 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726006', 'tblTempVendorCDR_20' ) start [2025-03-20 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726006', 'tblTempVendorCDR_20' ) end [2025-03-20 22:50:19] Production.INFO: ProcessCDR(1,14726006,1,1,2) [2025-03-20 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726006', 'tblTempUsageDetail_20' ) start [2025-03-20 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726006', 'tblTempUsageDetail_20' ) end [2025-03-20 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:50:23] Production.INFO: ==17496== Releasing lock... [2025-03-20 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:50:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-20 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:51:06 [end_date_ymd] => 2025-03-20 22:51:06 [RateCDR] => 1 ) [2025-03-20 22:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:51:06' and `end` < '2025-03-20 22:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:51:18] Production.INFO: count ==1234 [2025-03-20 22:51:19] Production.ERROR: pbx CDR StartTime 2025-03-20 19:51:06 - End Time 2025-03-20 22:51:06 [2025-03-20 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726012', 'tblTempUsageDetail_20' ) start [2025-03-20 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726012', 'tblTempUsageDetail_20' ) end [2025-03-20 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726012', 'tblTempVendorCDR_20' ) start [2025-03-20 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726012', 'tblTempVendorCDR_20' ) end [2025-03-20 22:51:19] Production.INFO: ProcessCDR(1,14726012,1,1,2) [2025-03-20 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726012', 'tblTempUsageDetail_20' ) start [2025-03-20 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726012', 'tblTempUsageDetail_20' ) end [2025-03-20 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:51:22] Production.INFO: ==17621== Releasing lock... [2025-03-20 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:51:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-20 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:52:05 [end_date_ymd] => 2025-03-20 22:52:05 [RateCDR] => 1 ) [2025-03-20 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:52:05' and `end` < '2025-03-20 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:52:17] Production.INFO: count ==1229 [2025-03-20 22:52:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:52:05 - End Time 2025-03-20 22:52:05 [2025-03-20 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726017', 'tblTempUsageDetail_20' ) start [2025-03-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726017', 'tblTempUsageDetail_20' ) end [2025-03-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726017', 'tblTempVendorCDR_20' ) start [2025-03-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726017', 'tblTempVendorCDR_20' ) end [2025-03-20 22:52:17] Production.INFO: ProcessCDR(1,14726017,1,1,2) [2025-03-20 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726017', 'tblTempUsageDetail_20' ) start [2025-03-20 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726017', 'tblTempUsageDetail_20' ) end [2025-03-20 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:52:21] Production.INFO: ==17700== Releasing lock... [2025-03-20 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:52:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:53:04 [end_date_ymd] => 2025-03-20 22:53:04 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:53:04' and `end` < '2025-03-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 ,'') [2025-03-20 22:53:17] Production.INFO: count ==1219 [2025-03-20 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:53:04 - End Time 2025-03-20 22:53:04 [2025-03-20 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726022', 'tblTempUsageDetail_20' ) start [2025-03-20 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726022', 'tblTempUsageDetail_20' ) end [2025-03-20 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726022', 'tblTempVendorCDR_20' ) start [2025-03-20 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726022', 'tblTempVendorCDR_20' ) end [2025-03-20 22:53:17] Production.INFO: ProcessCDR(1,14726022,1,1,2) [2025-03-20 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726022', 'tblTempUsageDetail_20' ) start [2025-03-20 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726022', 'tblTempUsageDetail_20' ) end [2025-03-20 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:53:20] Production.INFO: ==17783== Releasing lock... [2025-03-20 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:53:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-20 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:54:05 [end_date_ymd] => 2025-03-20 22:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:54:17] Production.INFO: count ==1221 [2025-03-20 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:54:05 - End Time 2025-03-20 22:54:05 [2025-03-20 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726027', 'tblTempUsageDetail_20' ) start [2025-03-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726027', 'tblTempUsageDetail_20' ) end [2025-03-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726027', 'tblTempVendorCDR_20' ) start [2025-03-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726027', 'tblTempVendorCDR_20' ) end [2025-03-20 22:54:18] Production.INFO: ProcessCDR(1,14726027,1,1,2) [2025-03-20 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726027', 'tblTempUsageDetail_20' ) start [2025-03-20 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726027', 'tblTempUsageDetail_20' ) end [2025-03-20 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:54:21] Production.INFO: ==17869== Releasing lock... [2025-03-20 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:54:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-20 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:55:05 [end_date_ymd] => 2025-03-20 22:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:55:17] Production.INFO: count ==1221 [2025-03-20 22:55:17] Production.ERROR: pbx CDR StartTime 2025-03-20 19:55:05 - End Time 2025-03-20 22:55:05 [2025-03-20 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726032', 'tblTempUsageDetail_20' ) start [2025-03-20 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726032', 'tblTempUsageDetail_20' ) end [2025-03-20 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726032', 'tblTempVendorCDR_20' ) start [2025-03-20 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726032', 'tblTempVendorCDR_20' ) end [2025-03-20 22:55:18] Production.INFO: ProcessCDR(1,14726032,1,1,2) [2025-03-20 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726032', 'tblTempUsageDetail_20' ) start [2025-03-20 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726032', 'tblTempUsageDetail_20' ) end [2025-03-20 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:55:21] Production.INFO: ==17952== Releasing lock... [2025-03-20 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:55:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-20 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:56:05 [end_date_ymd] => 2025-03-20 22:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:56:17] Production.INFO: count ==1218 [2025-03-20 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:56:05 - End Time 2025-03-20 22:56:05 [2025-03-20 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726037', 'tblTempUsageDetail_20' ) start [2025-03-20 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726037', 'tblTempUsageDetail_20' ) end [2025-03-20 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726037', 'tblTempVendorCDR_20' ) start [2025-03-20 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726037', 'tblTempVendorCDR_20' ) end [2025-03-20 22:56:18] Production.INFO: ProcessCDR(1,14726037,1,1,2) [2025-03-20 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726037', 'tblTempUsageDetail_20' ) start [2025-03-20 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726037', 'tblTempUsageDetail_20' ) end [2025-03-20 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:56:21] Production.INFO: ==18036== Releasing lock... [2025-03-20 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:56:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-20 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:57:05 [end_date_ymd] => 2025-03-20 22:57:05 [RateCDR] => 1 ) [2025-03-20 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:57:05' and `end` < '2025-03-20 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:57:18] Production.INFO: count ==1210 [2025-03-20 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:57:05 - End Time 2025-03-20 22:57:05 [2025-03-20 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726042', 'tblTempUsageDetail_20' ) start [2025-03-20 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726042', 'tblTempUsageDetail_20' ) end [2025-03-20 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726042', 'tblTempVendorCDR_20' ) start [2025-03-20 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726042', 'tblTempVendorCDR_20' ) end [2025-03-20 22:57:18] Production.INFO: ProcessCDR(1,14726042,1,1,2) [2025-03-20 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726042', 'tblTempUsageDetail_20' ) start [2025-03-20 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726042', 'tblTempUsageDetail_20' ) end [2025-03-20 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:57:21] Production.INFO: ==18114== Releasing lock... [2025-03-20 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:57:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:58:05 [end_date_ymd] => 2025-03-20 22:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 19:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 22:58:17] Production.INFO: count ==1205 [2025-03-20 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:58:05 - End Time 2025-03-20 22:58:05 [2025-03-20 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726047', 'tblTempUsageDetail_20' ) start [2025-03-20 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726047', 'tblTempUsageDetail_20' ) end [2025-03-20 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726047', 'tblTempVendorCDR_20' ) start [2025-03-20 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726047', 'tblTempVendorCDR_20' ) end [2025-03-20 22:58:18] Production.INFO: ProcessCDR(1,14726047,1,1,2) [2025-03-20 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726047', 'tblTempUsageDetail_20' ) start [2025-03-20 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726047', 'tblTempUsageDetail_20' ) end [2025-03-20 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:58:21] Production.INFO: ==18216== Releasing lock... [2025-03-20 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:58:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 19:59:05 [end_date_ymd] => 2025-03-20 22:59:05 [RateCDR] => 1 ) [2025-03-20 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 19:59:05' and `end` < '2025-03-20 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 22:59:18] Production.INFO: count ==1203 [2025-03-20 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-20 19:59:05 - End Time 2025-03-20 22:59:05 [2025-03-20 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726052', 'tblTempUsageDetail_20' ) start [2025-03-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726052', 'tblTempUsageDetail_20' ) end [2025-03-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726052', 'tblTempVendorCDR_20' ) start [2025-03-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726052', 'tblTempVendorCDR_20' ) end [2025-03-20 22:59:18] Production.INFO: ProcessCDR(1,14726052,1,1,2) [2025-03-20 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726052', 'tblTempUsageDetail_20' ) start [2025-03-20 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726052', 'tblTempUsageDetail_20' ) end [2025-03-20 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 22:59:22] Production.INFO: ==18303== Releasing lock... [2025-03-20 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 22:59:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-20 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:00:06 [end_date_ymd] => 2025-03-20 23:00:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:00:06' and `end` < '2025-03-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 ,'') [2025-03-20 23:00:18] Production.INFO: count ==1200 [2025-03-20 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:00:06 - End Time 2025-03-20 23:00:06 [2025-03-20 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726058', 'tblTempUsageDetail_20' ) start [2025-03-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726058', 'tblTempUsageDetail_20' ) end [2025-03-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726058', 'tblTempVendorCDR_20' ) start [2025-03-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726058', 'tblTempVendorCDR_20' ) end [2025-03-20 23:00:18] Production.INFO: ProcessCDR(1,14726058,1,1,2) [2025-03-20 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726058', 'tblTempUsageDetail_20' ) start [2025-03-20 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726058', 'tblTempUsageDetail_20' ) end [2025-03-20 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:00:22] Production.INFO: ==18393== Releasing lock... [2025-03-20 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:00:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:01:06 [end_date_ymd] => 2025-03-20 23:01:06 [RateCDR] => 1 ) [2025-03-20 23:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:01:06' and `end` < '2025-03-20 23:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:01:18] Production.INFO: count ==1160 [2025-03-20 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:01:06 - End Time 2025-03-20 23:01:06 [2025-03-20 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726063', 'tblTempUsageDetail_20' ) start [2025-03-20 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726063', 'tblTempUsageDetail_20' ) end [2025-03-20 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726063', 'tblTempVendorCDR_20' ) start [2025-03-20 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726063', 'tblTempVendorCDR_20' ) end [2025-03-20 23:01:18] Production.INFO: ProcessCDR(1,14726063,1,1,2) [2025-03-20 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726063', 'tblTempUsageDetail_20' ) start [2025-03-20 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726063', 'tblTempUsageDetail_20' ) end [2025-03-20 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:01:22] Production.INFO: ==18569== Releasing lock... [2025-03-20 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:01:22] Production.INFO: 37 MB #Memory Used# [2025-03-20 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:02:05 [end_date_ymd] => 2025-03-20 23:02:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:02:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:02:17] Production.INFO: count ==1158 [2025-03-20 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:02:05 - End Time 2025-03-20 23:02:05 [2025-03-20 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726068', 'tblTempUsageDetail_20' ) start [2025-03-20 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726068', 'tblTempUsageDetail_20' ) end [2025-03-20 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726068', 'tblTempVendorCDR_20' ) start [2025-03-20 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726068', 'tblTempVendorCDR_20' ) end [2025-03-20 23:02:18] Production.INFO: ProcessCDR(1,14726068,1,1,2) [2025-03-20 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726068', 'tblTempUsageDetail_20' ) start [2025-03-20 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726068', 'tblTempUsageDetail_20' ) end [2025-03-20 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:02:22] Production.INFO: ==18646== Releasing lock... [2025-03-20 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:02:22] Production.INFO: 37 MB #Memory Used# [2025-03-20 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:03:05 [end_date_ymd] => 2025-03-20 23:03:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:03:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:03:18] Production.INFO: count ==1158 [2025-03-20 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:03:05 - End Time 2025-03-20 23:03:05 [2025-03-20 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726073', 'tblTempUsageDetail_20' ) start [2025-03-20 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726073', 'tblTempUsageDetail_20' ) end [2025-03-20 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726073', 'tblTempVendorCDR_20' ) start [2025-03-20 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726073', 'tblTempVendorCDR_20' ) end [2025-03-20 23:03:18] Production.INFO: ProcessCDR(1,14726073,1,1,2) [2025-03-20 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726073', 'tblTempUsageDetail_20' ) start [2025-03-20 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726073', 'tblTempUsageDetail_20' ) end [2025-03-20 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:03:22] Production.INFO: ==18726== Releasing lock... [2025-03-20 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:04:05 [end_date_ymd] => 2025-03-20 23:04:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:04:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:04:18] Production.INFO: count ==1154 [2025-03-20 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:04:05 - End Time 2025-03-20 23:04:05 [2025-03-20 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726078', 'tblTempUsageDetail_20' ) start [2025-03-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726078', 'tblTempUsageDetail_20' ) end [2025-03-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726078', 'tblTempVendorCDR_20' ) start [2025-03-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726078', 'tblTempVendorCDR_20' ) end [2025-03-20 23:04:18] Production.INFO: ProcessCDR(1,14726078,1,1,2) [2025-03-20 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726078', 'tblTempUsageDetail_20' ) start [2025-03-20 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726078', 'tblTempUsageDetail_20' ) end [2025-03-20 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:04:21] Production.INFO: ==18807== Releasing lock... [2025-03-20 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:04:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-20 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:05:05 [end_date_ymd] => 2025-03-20 23:05:05 [RateCDR] => 1 ) [2025-03-20 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:05:05' and `end` < '2025-03-20 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:05:18] Production.INFO: count ==1141 [2025-03-20 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:05:05 - End Time 2025-03-20 23:05:05 [2025-03-20 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726083', 'tblTempUsageDetail_20' ) start [2025-03-20 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726083', 'tblTempUsageDetail_20' ) end [2025-03-20 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726083', 'tblTempVendorCDR_20' ) start [2025-03-20 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726083', 'tblTempVendorCDR_20' ) end [2025-03-20 23:05:18] Production.INFO: ProcessCDR(1,14726083,1,1,2) [2025-03-20 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726083', 'tblTempUsageDetail_20' ) start [2025-03-20 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726083', 'tblTempUsageDetail_20' ) end [2025-03-20 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:05:23] Production.INFO: ==18968== Releasing lock... [2025-03-20 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:05:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-20 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:06:05 [end_date_ymd] => 2025-03-20 23:06:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:06:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:06:17] Production.INFO: count ==1136 [2025-03-20 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:06:05 - End Time 2025-03-20 23:06:05 [2025-03-20 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726088', 'tblTempUsageDetail_20' ) start [2025-03-20 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726088', 'tblTempUsageDetail_20' ) end [2025-03-20 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726088', 'tblTempVendorCDR_20' ) start [2025-03-20 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726088', 'tblTempVendorCDR_20' ) end [2025-03-20 23:06:18] Production.INFO: ProcessCDR(1,14726088,1,1,2) [2025-03-20 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726088', 'tblTempUsageDetail_20' ) start [2025-03-20 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726088', 'tblTempUsageDetail_20' ) end [2025-03-20 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:06:21] Production.INFO: ==19055== Releasing lock... [2025-03-20 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:06:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:07:05 [end_date_ymd] => 2025-03-20 23:07:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:07:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:07:18] Production.INFO: count ==1136 [2025-03-20 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:07:05 - End Time 2025-03-20 23:07:05 [2025-03-20 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726093', 'tblTempUsageDetail_20' ) start [2025-03-20 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726093', 'tblTempUsageDetail_20' ) end [2025-03-20 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726093', 'tblTempVendorCDR_20' ) start [2025-03-20 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726093', 'tblTempVendorCDR_20' ) end [2025-03-20 23:07:18] Production.INFO: ProcessCDR(1,14726093,1,1,2) [2025-03-20 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726093', 'tblTempUsageDetail_20' ) start [2025-03-20 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726093', 'tblTempUsageDetail_20' ) end [2025-03-20 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:07:21] Production.INFO: ==19189== Releasing lock... [2025-03-20 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:07:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:08:05 [end_date_ymd] => 2025-03-20 23:08:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:08:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:08:17] Production.INFO: count ==1135 [2025-03-20 23:08:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:08:05 - End Time 2025-03-20 23:08:05 [2025-03-20 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726098', 'tblTempUsageDetail_20' ) start [2025-03-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726098', 'tblTempUsageDetail_20' ) end [2025-03-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726098', 'tblTempVendorCDR_20' ) start [2025-03-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726098', 'tblTempVendorCDR_20' ) end [2025-03-20 23:08:17] Production.INFO: ProcessCDR(1,14726098,1,1,2) [2025-03-20 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726098', 'tblTempUsageDetail_20' ) start [2025-03-20 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726098', 'tblTempUsageDetail_20' ) end [2025-03-20 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:08:21] Production.INFO: ==19348== Releasing lock... [2025-03-20 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:08:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:09:06 [end_date_ymd] => 2025-03-20 23:09:06 [RateCDR] => 1 ) [2025-03-20 23:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:09:06' and `end` < '2025-03-20 23:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:09:18] Production.INFO: count ==1126 [2025-03-20 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:09:06 - End Time 2025-03-20 23:09:06 [2025-03-20 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726103', 'tblTempUsageDetail_20' ) start [2025-03-20 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726103', 'tblTempUsageDetail_20' ) end [2025-03-20 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726103', 'tblTempVendorCDR_20' ) start [2025-03-20 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726103', 'tblTempVendorCDR_20' ) end [2025-03-20 23:09:18] Production.INFO: ProcessCDR(1,14726103,1,1,2) [2025-03-20 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726103', 'tblTempUsageDetail_20' ) start [2025-03-20 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726103', 'tblTempUsageDetail_20' ) end [2025-03-20 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:09:21] Production.INFO: ==19434== Releasing lock... [2025-03-20 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:09:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-20 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:10:05 [end_date_ymd] => 2025-03-20 23:10:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:10:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:10:18] Production.INFO: count ==1129 [2025-03-20 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:10:05 - End Time 2025-03-20 23:10:05 [2025-03-20 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726109', 'tblTempUsageDetail_20' ) start [2025-03-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726109', 'tblTempUsageDetail_20' ) end [2025-03-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726109', 'tblTempVendorCDR_20' ) start [2025-03-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726109', 'tblTempVendorCDR_20' ) end [2025-03-20 23:10:18] Production.INFO: ProcessCDR(1,14726109,1,1,2) [2025-03-20 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726109', 'tblTempUsageDetail_20' ) start [2025-03-20 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726109', 'tblTempUsageDetail_20' ) end [2025-03-20 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:10:21] Production.INFO: ==19523== Releasing lock... [2025-03-20 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:10:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-20 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:11:06 [end_date_ymd] => 2025-03-20 23:11:06 [RateCDR] => 1 ) [2025-03-20 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:11:06' and `end` < '2025-03-20 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:11:18] Production.INFO: count ==1106 [2025-03-20 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:11:06 - End Time 2025-03-20 23:11:06 [2025-03-20 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726114', 'tblTempUsageDetail_20' ) start [2025-03-20 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726114', 'tblTempUsageDetail_20' ) end [2025-03-20 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726114', 'tblTempVendorCDR_20' ) start [2025-03-20 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726114', 'tblTempVendorCDR_20' ) end [2025-03-20 23:11:18] Production.INFO: ProcessCDR(1,14726114,1,1,2) [2025-03-20 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726114', 'tblTempUsageDetail_20' ) start [2025-03-20 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726114', 'tblTempUsageDetail_20' ) end [2025-03-20 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:11:22] Production.INFO: ==19620== Releasing lock... [2025-03-20 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:11:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:12:05 [end_date_ymd] => 2025-03-20 23:12:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:12:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:12:18] Production.INFO: count ==1105 [2025-03-20 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:12:05 - End Time 2025-03-20 23:12:05 [2025-03-20 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726119', 'tblTempUsageDetail_20' ) start [2025-03-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726119', 'tblTempUsageDetail_20' ) end [2025-03-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726119', 'tblTempVendorCDR_20' ) start [2025-03-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726119', 'tblTempVendorCDR_20' ) end [2025-03-20 23:12:18] Production.INFO: ProcessCDR(1,14726119,1,1,2) [2025-03-20 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726119', 'tblTempUsageDetail_20' ) start [2025-03-20 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726119', 'tblTempUsageDetail_20' ) end [2025-03-20 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:12:23] Production.INFO: ==19794== Releasing lock... [2025-03-20 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:12:23] Production.INFO: 37 MB #Memory Used# [2025-03-20 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:13:05 [end_date_ymd] => 2025-03-20 23:13:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:13:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:13:18] Production.INFO: count ==1102 [2025-03-20 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:13:05 - End Time 2025-03-20 23:13:05 [2025-03-20 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726124', 'tblTempUsageDetail_20' ) start [2025-03-20 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726124', 'tblTempUsageDetail_20' ) end [2025-03-20 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726124', 'tblTempVendorCDR_20' ) start [2025-03-20 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726124', 'tblTempVendorCDR_20' ) end [2025-03-20 23:13:18] Production.INFO: ProcessCDR(1,14726124,1,1,2) [2025-03-20 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726124', 'tblTempUsageDetail_20' ) start [2025-03-20 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726124', 'tblTempUsageDetail_20' ) end [2025-03-20 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:13:21] Production.INFO: ==19879== Releasing lock... [2025-03-20 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:13:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-20 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:14:05 [end_date_ymd] => 2025-03-20 23:14:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:14:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:14:17] Production.INFO: count ==1100 [2025-03-20 23:14:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:14:05 - End Time 2025-03-20 23:14:05 [2025-03-20 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726129', 'tblTempUsageDetail_20' ) start [2025-03-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726129', 'tblTempUsageDetail_20' ) end [2025-03-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726129', 'tblTempVendorCDR_20' ) start [2025-03-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726129', 'tblTempVendorCDR_20' ) end [2025-03-20 23:14:17] Production.INFO: ProcessCDR(1,14726129,1,1,2) [2025-03-20 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726129', 'tblTempUsageDetail_20' ) start [2025-03-20 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726129', 'tblTempUsageDetail_20' ) end [2025-03-20 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:14:21] Production.INFO: ==19958== Releasing lock... [2025-03-20 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:14:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:15:05 [end_date_ymd] => 2025-03-20 23:15:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:15:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:15:18] Production.INFO: count ==1104 [2025-03-20 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:15:05 - End Time 2025-03-20 23:15:05 [2025-03-20 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726134', 'tblTempUsageDetail_20' ) start [2025-03-20 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726134', 'tblTempUsageDetail_20' ) end [2025-03-20 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726134', 'tblTempVendorCDR_20' ) start [2025-03-20 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726134', 'tblTempVendorCDR_20' ) end [2025-03-20 23:15:18] Production.INFO: ProcessCDR(1,14726134,1,1,2) [2025-03-20 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726134', 'tblTempUsageDetail_20' ) start [2025-03-20 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726134', 'tblTempUsageDetail_20' ) end [2025-03-20 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:15:23] Production.INFO: ==20123== Releasing lock... [2025-03-20 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:15:23] Production.INFO: 37 MB #Memory Used# [2025-03-20 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:16:05 [end_date_ymd] => 2025-03-20 23:16:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:16:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:16:17] Production.INFO: count ==1104 [2025-03-20 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:16:05 - End Time 2025-03-20 23:16:05 [2025-03-20 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726139', 'tblTempUsageDetail_20' ) start [2025-03-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726139', 'tblTempUsageDetail_20' ) end [2025-03-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726139', 'tblTempVendorCDR_20' ) start [2025-03-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726139', 'tblTempVendorCDR_20' ) end [2025-03-20 23:16:18] Production.INFO: ProcessCDR(1,14726139,1,1,2) [2025-03-20 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726139', 'tblTempUsageDetail_20' ) start [2025-03-20 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726139', 'tblTempUsageDetail_20' ) end [2025-03-20 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:16:22] Production.INFO: ==20208== Releasing lock... [2025-03-20 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:16:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-20 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:17:05 [end_date_ymd] => 2025-03-20 23:17:05 [RateCDR] => 1 ) [2025-03-20 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:17:05' and `end` < '2025-03-20 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:17:17] Production.INFO: count ==1099 [2025-03-20 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:17:05 - End Time 2025-03-20 23:17:05 [2025-03-20 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726144', 'tblTempUsageDetail_20' ) start [2025-03-20 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726144', 'tblTempUsageDetail_20' ) end [2025-03-20 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726144', 'tblTempVendorCDR_20' ) start [2025-03-20 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726144', 'tblTempVendorCDR_20' ) end [2025-03-20 23:17:18] Production.INFO: ProcessCDR(1,14726144,1,1,2) [2025-03-20 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726144', 'tblTempUsageDetail_20' ) start [2025-03-20 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726144', 'tblTempUsageDetail_20' ) end [2025-03-20 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:17:21] Production.INFO: ==20300== Releasing lock... [2025-03-20 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:17:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-20 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:18:06 [end_date_ymd] => 2025-03-20 23:18:06 [RateCDR] => 1 ) [2025-03-20 23:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:18:06' and `end` < '2025-03-20 23:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:18:18] Production.INFO: count ==1093 [2025-03-20 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:18:06 - End Time 2025-03-20 23:18:06 [2025-03-20 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726149', 'tblTempUsageDetail_20' ) start [2025-03-20 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726149', 'tblTempUsageDetail_20' ) end [2025-03-20 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726149', 'tblTempVendorCDR_20' ) start [2025-03-20 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726149', 'tblTempVendorCDR_20' ) end [2025-03-20 23:18:18] Production.INFO: ProcessCDR(1,14726149,1,1,2) [2025-03-20 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726149', 'tblTempUsageDetail_20' ) start [2025-03-20 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726149', 'tblTempUsageDetail_20' ) end [2025-03-20 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:18:22] Production.INFO: ==20380== Releasing lock... [2025-03-20 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-20 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:19:05 [end_date_ymd] => 2025-03-20 23:19:05 [RateCDR] => 1 ) [2025-03-20 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:19:05' and `end` < '2025-03-20 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:19:17] Production.INFO: count ==1092 [2025-03-20 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:19:05 - End Time 2025-03-20 23:19:05 [2025-03-20 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726154', 'tblTempUsageDetail_20' ) start [2025-03-20 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726154', 'tblTempUsageDetail_20' ) end [2025-03-20 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726154', 'tblTempVendorCDR_20' ) start [2025-03-20 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726154', 'tblTempVendorCDR_20' ) end [2025-03-20 23:19:17] Production.INFO: ProcessCDR(1,14726154,1,1,2) [2025-03-20 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726154', 'tblTempUsageDetail_20' ) start [2025-03-20 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726154', 'tblTempUsageDetail_20' ) end [2025-03-20 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:19:23] Production.INFO: ==20475== Releasing lock... [2025-03-20 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:19:23] Production.INFO: 37 MB #Memory Used# [2025-03-20 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:20:06 [end_date_ymd] => 2025-03-20 23:20:06 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:20:06' and `end` < '2025-03-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 ,'') [2025-03-20 23:20:19] Production.INFO: count ==1081 [2025-03-20 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-20 20:20:06 - End Time 2025-03-20 23:20:06 [2025-03-20 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726160', 'tblTempUsageDetail_20' ) start [2025-03-20 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726160', 'tblTempUsageDetail_20' ) end [2025-03-20 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726160', 'tblTempVendorCDR_20' ) start [2025-03-20 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726160', 'tblTempVendorCDR_20' ) end [2025-03-20 23:20:19] Production.INFO: ProcessCDR(1,14726160,1,1,2) [2025-03-20 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726160', 'tblTempUsageDetail_20' ) start [2025-03-20 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726160', 'tblTempUsageDetail_20' ) end [2025-03-20 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:20:23] Production.INFO: ==20575== Releasing lock... [2025-03-20 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:20:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:21:05 [end_date_ymd] => 2025-03-20 23:21:05 [RateCDR] => 1 ) [2025-03-20 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:21:05' and `end` < '2025-03-20 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:21:17] Production.INFO: count ==1016 [2025-03-20 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:21:05 - End Time 2025-03-20 23:21:05 [2025-03-20 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726165', 'tblTempUsageDetail_20' ) start [2025-03-20 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726165', 'tblTempUsageDetail_20' ) end [2025-03-20 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726165', 'tblTempVendorCDR_20' ) start [2025-03-20 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726165', 'tblTempVendorCDR_20' ) end [2025-03-20 23:21:17] Production.INFO: ProcessCDR(1,14726165,1,1,2) [2025-03-20 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726165', 'tblTempUsageDetail_20' ) start [2025-03-20 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726165', 'tblTempUsageDetail_20' ) end [2025-03-20 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:21:21] Production.INFO: ==20661== Releasing lock... [2025-03-20 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:21:21] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:22:06 [end_date_ymd] => 2025-03-20 23:22:06 [RateCDR] => 1 ) [2025-03-20 23:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:22:06' and `end` < '2025-03-20 23:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:22:18] Production.INFO: count ==1013 [2025-03-20 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:22:06 - End Time 2025-03-20 23:22:06 [2025-03-20 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726170', 'tblTempUsageDetail_20' ) start [2025-03-20 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726170', 'tblTempUsageDetail_20' ) end [2025-03-20 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726170', 'tblTempVendorCDR_20' ) start [2025-03-20 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726170', 'tblTempVendorCDR_20' ) end [2025-03-20 23:22:18] Production.INFO: ProcessCDR(1,14726170,1,1,2) [2025-03-20 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726170', 'tblTempUsageDetail_20' ) start [2025-03-20 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726170', 'tblTempUsageDetail_20' ) end [2025-03-20 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:22:22] Production.INFO: ==20790== Releasing lock... [2025-03-20 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:22:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:23:05 [end_date_ymd] => 2025-03-20 23:23:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:23:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:23:17] Production.INFO: count ==1016 [2025-03-20 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:23:05 - End Time 2025-03-20 23:23:05 [2025-03-20 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726175', 'tblTempUsageDetail_20' ) start [2025-03-20 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726175', 'tblTempUsageDetail_20' ) end [2025-03-20 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726175', 'tblTempVendorCDR_20' ) start [2025-03-20 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726175', 'tblTempVendorCDR_20' ) end [2025-03-20 23:23:17] Production.INFO: ProcessCDR(1,14726175,1,1,2) [2025-03-20 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726175', 'tblTempUsageDetail_20' ) start [2025-03-20 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726175', 'tblTempUsageDetail_20' ) end [2025-03-20 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:23:21] Production.INFO: ==20874== Releasing lock... [2025-03-20 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:23:21] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:24:06 [end_date_ymd] => 2025-03-20 23:24:06 [RateCDR] => 1 ) [2025-03-20 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:24:06' and `end` < '2025-03-20 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:24:18] Production.INFO: count ==1017 [2025-03-20 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:24:06 - End Time 2025-03-20 23:24:06 [2025-03-20 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726180', 'tblTempUsageDetail_20' ) start [2025-03-20 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726180', 'tblTempUsageDetail_20' ) end [2025-03-20 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726180', 'tblTempVendorCDR_20' ) start [2025-03-20 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726180', 'tblTempVendorCDR_20' ) end [2025-03-20 23:24:18] Production.INFO: ProcessCDR(1,14726180,1,1,2) [2025-03-20 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726180', 'tblTempUsageDetail_20' ) start [2025-03-20 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726180', 'tblTempUsageDetail_20' ) end [2025-03-20 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:24:22] Production.INFO: ==20961== Releasing lock... [2025-03-20 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:24:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:25:05 [end_date_ymd] => 2025-03-20 23:25:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:25:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:25:17] Production.INFO: count ==1011 [2025-03-20 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:25:05 - End Time 2025-03-20 23:25:05 [2025-03-20 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726185', 'tblTempUsageDetail_20' ) start [2025-03-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726185', 'tblTempUsageDetail_20' ) end [2025-03-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726185', 'tblTempVendorCDR_20' ) start [2025-03-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726185', 'tblTempVendorCDR_20' ) end [2025-03-20 23:25:18] Production.INFO: ProcessCDR(1,14726185,1,1,2) [2025-03-20 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726185', 'tblTempUsageDetail_20' ) start [2025-03-20 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726185', 'tblTempUsageDetail_20' ) end [2025-03-20 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:25:21] Production.INFO: ==21043== Releasing lock... [2025-03-20 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:25:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:26:05 [end_date_ymd] => 2025-03-20 23:26:05 [RateCDR] => 1 ) [2025-03-20 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:26:05' and `end` < '2025-03-20 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:26:18] Production.INFO: count ==1004 [2025-03-20 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:26:05 - End Time 2025-03-20 23:26:05 [2025-03-20 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726189', 'tblTempUsageDetail_20' ) start [2025-03-20 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726189', 'tblTempUsageDetail_20' ) end [2025-03-20 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726189', 'tblTempVendorCDR_20' ) start [2025-03-20 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726189', 'tblTempVendorCDR_20' ) end [2025-03-20 23:26:18] Production.INFO: ProcessCDR(1,14726189,1,1,2) [2025-03-20 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726189', 'tblTempUsageDetail_20' ) start [2025-03-20 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726189', 'tblTempUsageDetail_20' ) end [2025-03-20 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:26:21] Production.INFO: ==21132== Releasing lock... [2025-03-20 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:26:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:27:05 [end_date_ymd] => 2025-03-20 23:27:05 [RateCDR] => 1 ) [2025-03-20 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:27:05' and `end` < '2025-03-20 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:27:17] Production.INFO: count ==1000 [2025-03-20 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:27:05 - End Time 2025-03-20 23:27:05 [2025-03-20 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726195', 'tblTempUsageDetail_20' ) start [2025-03-20 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726195', 'tblTempUsageDetail_20' ) end [2025-03-20 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726195', 'tblTempVendorCDR_20' ) start [2025-03-20 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726195', 'tblTempVendorCDR_20' ) end [2025-03-20 23:27:18] Production.INFO: ProcessCDR(1,14726195,1,1,2) [2025-03-20 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726195', 'tblTempUsageDetail_20' ) start [2025-03-20 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726195', 'tblTempUsageDetail_20' ) end [2025-03-20 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:27:22] Production.INFO: ==21208== Releasing lock... [2025-03-20 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:27:22] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:28:05 [end_date_ymd] => 2025-03-20 23:28:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:28:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:28:18] Production.INFO: count ==1003 [2025-03-20 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:28:05 - End Time 2025-03-20 23:28:05 [2025-03-20 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726200', 'tblTempUsageDetail_20' ) start [2025-03-20 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726200', 'tblTempUsageDetail_20' ) end [2025-03-20 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726200', 'tblTempVendorCDR_20' ) start [2025-03-20 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726200', 'tblTempVendorCDR_20' ) end [2025-03-20 23:28:18] Production.INFO: ProcessCDR(1,14726200,1,1,2) [2025-03-20 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726200', 'tblTempUsageDetail_20' ) start [2025-03-20 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726200', 'tblTempUsageDetail_20' ) end [2025-03-20 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:28:21] Production.INFO: ==21291== Releasing lock... [2025-03-20 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:29:05 [end_date_ymd] => 2025-03-20 23:29:05 [RateCDR] => 1 ) [2025-03-20 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:29:05' and `end` < '2025-03-20 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:29:17] Production.INFO: count ==1009 [2025-03-20 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:29:05 - End Time 2025-03-20 23:29:05 [2025-03-20 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726205', 'tblTempUsageDetail_20' ) start [2025-03-20 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726205', 'tblTempUsageDetail_20' ) end [2025-03-20 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726205', 'tblTempVendorCDR_20' ) start [2025-03-20 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726205', 'tblTempVendorCDR_20' ) end [2025-03-20 23:29:18] Production.INFO: ProcessCDR(1,14726205,1,1,2) [2025-03-20 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726205', 'tblTempUsageDetail_20' ) start [2025-03-20 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726205', 'tblTempUsageDetail_20' ) end [2025-03-20 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:29:21] Production.INFO: ==21378== Releasing lock... [2025-03-20 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:29:21] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:30:07 [end_date_ymd] => 2025-03-20 23:30:07 [RateCDR] => 1 ) [2025-03-20 23:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:30:07' and `end` < '2025-03-20 23:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:30:19] Production.INFO: count ==1004 [2025-03-20 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 20:30:07 - End Time 2025-03-20 23:30:07 [2025-03-20 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726211', 'tblTempUsageDetail_20' ) start [2025-03-20 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726211', 'tblTempUsageDetail_20' ) end [2025-03-20 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726211', 'tblTempVendorCDR_20' ) start [2025-03-20 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726211', 'tblTempVendorCDR_20' ) end [2025-03-20 23:30:19] Production.INFO: ProcessCDR(1,14726211,1,1,2) [2025-03-20 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726211', 'tblTempUsageDetail_20' ) start [2025-03-20 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726211', 'tblTempUsageDetail_20' ) end [2025-03-20 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:30:22] Production.INFO: ==21472== Releasing lock... [2025-03-20 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:31:05 [end_date_ymd] => 2025-03-20 23:31:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:31:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:31:17] Production.INFO: count ==1003 [2025-03-20 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:31:05 - End Time 2025-03-20 23:31:05 [2025-03-20 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726216', 'tblTempUsageDetail_20' ) start [2025-03-20 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726216', 'tblTempUsageDetail_20' ) end [2025-03-20 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726216', 'tblTempVendorCDR_20' ) start [2025-03-20 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726216', 'tblTempVendorCDR_20' ) end [2025-03-20 23:31:17] Production.INFO: ProcessCDR(1,14726216,1,1,2) [2025-03-20 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726216', 'tblTempUsageDetail_20' ) start [2025-03-20 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726216', 'tblTempUsageDetail_20' ) end [2025-03-20 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:31:21] Production.INFO: ==21576== Releasing lock... [2025-03-20 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:32:06 [end_date_ymd] => 2025-03-20 23:32:06 [RateCDR] => 1 ) [2025-03-20 23:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:32:06' and `end` < '2025-03-20 23:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:32:18] Production.INFO: count ==1003 [2025-03-20 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:32:06 - End Time 2025-03-20 23:32:06 [2025-03-20 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726221', 'tblTempUsageDetail_20' ) start [2025-03-20 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726221', 'tblTempUsageDetail_20' ) end [2025-03-20 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726221', 'tblTempVendorCDR_20' ) start [2025-03-20 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726221', 'tblTempVendorCDR_20' ) end [2025-03-20 23:32:18] Production.INFO: ProcessCDR(1,14726221,1,1,2) [2025-03-20 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726221', 'tblTempUsageDetail_20' ) start [2025-03-20 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726221', 'tblTempUsageDetail_20' ) end [2025-03-20 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:32:22] Production.INFO: ==21671== Releasing lock... [2025-03-20 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:32:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:33:04 [end_date_ymd] => 2025-03-20 23:33:04 [RateCDR] => 1 ) [2025-03-20 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:33:04' and `end` < '2025-03-20 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:33:17] Production.INFO: count ==1003 [2025-03-20 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:33:04 - End Time 2025-03-20 23:33:04 [2025-03-20 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726226', 'tblTempUsageDetail_20' ) start [2025-03-20 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726226', 'tblTempUsageDetail_20' ) end [2025-03-20 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726226', 'tblTempVendorCDR_20' ) start [2025-03-20 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726226', 'tblTempVendorCDR_20' ) end [2025-03-20 23:33:17] Production.INFO: ProcessCDR(1,14726226,1,1,2) [2025-03-20 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726226', 'tblTempUsageDetail_20' ) start [2025-03-20 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726226', 'tblTempUsageDetail_20' ) end [2025-03-20 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:33:20] Production.INFO: ==21786== Releasing lock... [2025-03-20 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:33:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:34:06 [end_date_ymd] => 2025-03-20 23:34:06 [RateCDR] => 1 ) [2025-03-20 23:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:34:06' and `end` < '2025-03-20 23:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:34:18] Production.INFO: count ==1003 [2025-03-20 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:34:06 - End Time 2025-03-20 23:34:06 [2025-03-20 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726231', 'tblTempUsageDetail_20' ) start [2025-03-20 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726231', 'tblTempUsageDetail_20' ) end [2025-03-20 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726231', 'tblTempVendorCDR_20' ) start [2025-03-20 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726231', 'tblTempVendorCDR_20' ) end [2025-03-20 23:34:18] Production.INFO: ProcessCDR(1,14726231,1,1,2) [2025-03-20 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726231', 'tblTempUsageDetail_20' ) start [2025-03-20 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726231', 'tblTempUsageDetail_20' ) end [2025-03-20 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:34:22] Production.INFO: ==21879== Releasing lock... [2025-03-20 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:34:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:35:05 [end_date_ymd] => 2025-03-20 23:35:05 [RateCDR] => 1 ) [2025-03-20 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:35:05' and `end` < '2025-03-20 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:35:17] Production.INFO: count ==1004 [2025-03-20 23:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:35:05 - End Time 2025-03-20 23:35:05 [2025-03-20 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726236', 'tblTempUsageDetail_20' ) start [2025-03-20 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726236', 'tblTempUsageDetail_20' ) end [2025-03-20 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726236', 'tblTempVendorCDR_20' ) start [2025-03-20 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726236', 'tblTempVendorCDR_20' ) end [2025-03-20 23:35:18] Production.INFO: ProcessCDR(1,14726236,1,1,2) [2025-03-20 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726236', 'tblTempUsageDetail_20' ) start [2025-03-20 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726236', 'tblTempUsageDetail_20' ) end [2025-03-20 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:35:21] Production.INFO: ==21973== Releasing lock... [2025-03-20 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:35:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-20 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:36:05 [end_date_ymd] => 2025-03-20 23:36:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:36:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:36:17] Production.INFO: count ==1009 [2025-03-20 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:36:05 - End Time 2025-03-20 23:36:05 [2025-03-20 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726241', 'tblTempUsageDetail_20' ) start [2025-03-20 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726241', 'tblTempUsageDetail_20' ) end [2025-03-20 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726241', 'tblTempVendorCDR_20' ) start [2025-03-20 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726241', 'tblTempVendorCDR_20' ) end [2025-03-20 23:36:18] Production.INFO: ProcessCDR(1,14726241,1,1,2) [2025-03-20 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726241', 'tblTempUsageDetail_20' ) start [2025-03-20 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726241', 'tblTempUsageDetail_20' ) end [2025-03-20 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:36:21] Production.INFO: ==22073== Releasing lock... [2025-03-20 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:37:05 [end_date_ymd] => 2025-03-20 23:37:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:37:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:37:17] Production.INFO: count ==1005 [2025-03-20 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:37:05 - End Time 2025-03-20 23:37:05 [2025-03-20 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726246', 'tblTempUsageDetail_20' ) start [2025-03-20 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726246', 'tblTempUsageDetail_20' ) end [2025-03-20 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726246', 'tblTempVendorCDR_20' ) start [2025-03-20 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726246', 'tblTempVendorCDR_20' ) end [2025-03-20 23:37:17] Production.INFO: ProcessCDR(1,14726246,1,1,2) [2025-03-20 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726246', 'tblTempUsageDetail_20' ) start [2025-03-20 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726246', 'tblTempUsageDetail_20' ) end [2025-03-20 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:37:21] Production.INFO: ==22170== Releasing lock... [2025-03-20 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:37:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:38:05 [end_date_ymd] => 2025-03-20 23:38:05 [RateCDR] => 1 ) [2025-03-20 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:38:05' and `end` < '2025-03-20 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:38:17] Production.INFO: count ==1000 [2025-03-20 23:38:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:38:05 - End Time 2025-03-20 23:38:05 [2025-03-20 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726251', 'tblTempUsageDetail_20' ) start [2025-03-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726251', 'tblTempUsageDetail_20' ) end [2025-03-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726251', 'tblTempVendorCDR_20' ) start [2025-03-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726251', 'tblTempVendorCDR_20' ) end [2025-03-20 23:38:17] Production.INFO: ProcessCDR(1,14726251,1,1,2) [2025-03-20 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726251', 'tblTempUsageDetail_20' ) start [2025-03-20 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726251', 'tblTempUsageDetail_20' ) end [2025-03-20 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:38:21] Production.INFO: ==22304== Releasing lock... [2025-03-20 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:38:21] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:39:05 [end_date_ymd] => 2025-03-20 23:39:05 [RateCDR] => 1 ) [2025-03-20 23:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:39:05' and `end` < '2025-03-20 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:39:18] Production.INFO: count ==997 [2025-03-20 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:39:05 - End Time 2025-03-20 23:39:05 [2025-03-20 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726256', 'tblTempUsageDetail_20' ) start [2025-03-20 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726256', 'tblTempUsageDetail_20' ) end [2025-03-20 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726256', 'tblTempVendorCDR_20' ) start [2025-03-20 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726256', 'tblTempVendorCDR_20' ) end [2025-03-20 23:39:18] Production.INFO: ProcessCDR(1,14726256,1,1,2) [2025-03-20 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726256', 'tblTempUsageDetail_20' ) start [2025-03-20 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726256', 'tblTempUsageDetail_20' ) end [2025-03-20 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:39:21] Production.INFO: ==22401== Releasing lock... [2025-03-20 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:39:21] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:40:06 [end_date_ymd] => 2025-03-20 23:40:06 [RateCDR] => 1 ) [2025-03-20 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:40:06' and `end` < '2025-03-20 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:40:19] Production.INFO: count ==992 [2025-03-20 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-20 20:40:06 - End Time 2025-03-20 23:40:06 [2025-03-20 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726262', 'tblTempUsageDetail_20' ) start [2025-03-20 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726262', 'tblTempUsageDetail_20' ) end [2025-03-20 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726262', 'tblTempVendorCDR_20' ) start [2025-03-20 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726262', 'tblTempVendorCDR_20' ) end [2025-03-20 23:40:19] Production.INFO: ProcessCDR(1,14726262,1,1,2) [2025-03-20 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726262', 'tblTempUsageDetail_20' ) start [2025-03-20 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726262', 'tblTempUsageDetail_20' ) end [2025-03-20 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:40:22] Production.INFO: ==22493== Releasing lock... [2025-03-20 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:40:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-20 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:41:05 [end_date_ymd] => 2025-03-20 23:41:05 [RateCDR] => 1 ) [2025-03-20 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:41:05' and `end` < '2025-03-20 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:41:18] Production.INFO: count ==968 [2025-03-20 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:41:05 - End Time 2025-03-20 23:41:05 [2025-03-20 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726267', 'tblTempUsageDetail_20' ) start [2025-03-20 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726267', 'tblTempUsageDetail_20' ) end [2025-03-20 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726267', 'tblTempVendorCDR_20' ) start [2025-03-20 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726267', 'tblTempVendorCDR_20' ) end [2025-03-20 23:41:18] Production.INFO: ProcessCDR(1,14726267,1,1,2) [2025-03-20 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726267', 'tblTempUsageDetail_20' ) start [2025-03-20 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726267', 'tblTempUsageDetail_20' ) end [2025-03-20 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:41:21] Production.INFO: ==22579== Releasing lock... [2025-03-20 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:41:21] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:42:05 [end_date_ymd] => 2025-03-20 23:42:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:42:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:42:18] Production.INFO: count ==966 [2025-03-20 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:42:05 - End Time 2025-03-20 23:42:05 [2025-03-20 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726272', 'tblTempUsageDetail_20' ) start [2025-03-20 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726272', 'tblTempUsageDetail_20' ) end [2025-03-20 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726272', 'tblTempVendorCDR_20' ) start [2025-03-20 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726272', 'tblTempVendorCDR_20' ) end [2025-03-20 23:42:18] Production.INFO: ProcessCDR(1,14726272,1,1,2) [2025-03-20 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726272', 'tblTempUsageDetail_20' ) start [2025-03-20 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726272', 'tblTempUsageDetail_20' ) end [2025-03-20 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:42:21] Production.INFO: ==22672== Releasing lock... [2025-03-20 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:42:21] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:43:05 [end_date_ymd] => 2025-03-20 23:43:05 [RateCDR] => 1 ) [2025-03-20 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:43:05' and `end` < '2025-03-20 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:43:17] Production.INFO: count ==964 [2025-03-20 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:43:05 - End Time 2025-03-20 23:43:05 [2025-03-20 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726277', 'tblTempUsageDetail_20' ) start [2025-03-20 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726277', 'tblTempUsageDetail_20' ) end [2025-03-20 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726277', 'tblTempVendorCDR_20' ) start [2025-03-20 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726277', 'tblTempVendorCDR_20' ) end [2025-03-20 23:43:18] Production.INFO: ProcessCDR(1,14726277,1,1,2) [2025-03-20 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726277', 'tblTempUsageDetail_20' ) start [2025-03-20 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726277', 'tblTempUsageDetail_20' ) end [2025-03-20 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:43:21] Production.INFO: ==22764== Releasing lock... [2025-03-20 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:43:21] Production.INFO: 36 MB #Memory Used# [2025-03-20 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:44:05 [end_date_ymd] => 2025-03-20 23:44:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:44:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:44:17] Production.INFO: count ==968 [2025-03-20 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:44:05 - End Time 2025-03-20 23:44:05 [2025-03-20 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726282', 'tblTempUsageDetail_20' ) start [2025-03-20 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726282', 'tblTempUsageDetail_20' ) end [2025-03-20 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726282', 'tblTempVendorCDR_20' ) start [2025-03-20 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726282', 'tblTempVendorCDR_20' ) end [2025-03-20 23:44:18] Production.INFO: ProcessCDR(1,14726282,1,1,2) [2025-03-20 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726282', 'tblTempUsageDetail_20' ) start [2025-03-20 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726282', 'tblTempUsageDetail_20' ) end [2025-03-20 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:44:21] Production.INFO: ==22850== Releasing lock... [2025-03-20 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:44:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:45:05 [end_date_ymd] => 2025-03-20 23:45:05 [RateCDR] => 1 ) [2025-03-20 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:45:05' and `end` < '2025-03-20 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:45:18] Production.INFO: count ==968 [2025-03-20 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:45:05 - End Time 2025-03-20 23:45:05 [2025-03-20 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726287', 'tblTempUsageDetail_20' ) start [2025-03-20 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726287', 'tblTempUsageDetail_20' ) end [2025-03-20 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726287', 'tblTempVendorCDR_20' ) start [2025-03-20 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726287', 'tblTempVendorCDR_20' ) end [2025-03-20 23:45:18] Production.INFO: ProcessCDR(1,14726287,1,1,2) [2025-03-20 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726287', 'tblTempUsageDetail_20' ) start [2025-03-20 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726287', 'tblTempUsageDetail_20' ) end [2025-03-20 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:45:21] Production.INFO: ==22945== Releasing lock... [2025-03-20 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:45:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:46:05 [end_date_ymd] => 2025-03-20 23:46:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:46:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:46:17] Production.INFO: count ==954 [2025-03-20 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:46:05 - End Time 2025-03-20 23:46:05 [2025-03-20 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726292', 'tblTempUsageDetail_20' ) start [2025-03-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726292', 'tblTempUsageDetail_20' ) end [2025-03-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726292', 'tblTempVendorCDR_20' ) start [2025-03-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726292', 'tblTempVendorCDR_20' ) end [2025-03-20 23:46:17] Production.INFO: ProcessCDR(1,14726292,1,1,2) [2025-03-20 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726292', 'tblTempUsageDetail_20' ) start [2025-03-20 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726292', 'tblTempUsageDetail_20' ) end [2025-03-20 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:46:21] Production.INFO: ==23030== Releasing lock... [2025-03-20 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:46:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:47:06 [end_date_ymd] => 2025-03-20 23:47:06 [RateCDR] => 1 ) [2025-03-20 23:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:47:06' and `end` < '2025-03-20 23:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:47:18] Production.INFO: count ==954 [2025-03-20 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:47:06 - End Time 2025-03-20 23:47:06 [2025-03-20 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726297', 'tblTempUsageDetail_20' ) start [2025-03-20 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726297', 'tblTempUsageDetail_20' ) end [2025-03-20 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726297', 'tblTempVendorCDR_20' ) start [2025-03-20 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726297', 'tblTempVendorCDR_20' ) end [2025-03-20 23:47:18] Production.INFO: ProcessCDR(1,14726297,1,1,2) [2025-03-20 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726297', 'tblTempUsageDetail_20' ) start [2025-03-20 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726297', 'tblTempUsageDetail_20' ) end [2025-03-20 23:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:47:24] Production.INFO: ==23118== Releasing lock... [2025-03-20 23:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:47:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:48:04 [end_date_ymd] => 2025-03-20 23:48:04 [RateCDR] => 1 ) [2025-03-20 23: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` >= '2025-03-20 20:48:04' and `end` < '2025-03-20 23: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 ,'') [2025-03-20 23:48:17] Production.INFO: count ==954 [2025-03-20 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:48:04 - End Time 2025-03-20 23:48:04 [2025-03-20 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726302', 'tblTempUsageDetail_20' ) start [2025-03-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726302', 'tblTempUsageDetail_20' ) end [2025-03-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726302', 'tblTempVendorCDR_20' ) start [2025-03-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726302', 'tblTempVendorCDR_20' ) end [2025-03-20 23:48:17] Production.INFO: ProcessCDR(1,14726302,1,1,2) [2025-03-20 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726302', 'tblTempUsageDetail_20' ) start [2025-03-20 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726302', 'tblTempUsageDetail_20' ) end [2025-03-20 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:48:20] Production.INFO: ==23203== Releasing lock... [2025-03-20 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:48:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:49:05 [end_date_ymd] => 2025-03-20 23:49:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:49:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:49:18] Production.INFO: count ==952 [2025-03-20 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:49:05 - End Time 2025-03-20 23:49:05 [2025-03-20 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726307', 'tblTempUsageDetail_20' ) start [2025-03-20 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726307', 'tblTempUsageDetail_20' ) end [2025-03-20 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726307', 'tblTempVendorCDR_20' ) start [2025-03-20 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726307', 'tblTempVendorCDR_20' ) end [2025-03-20 23:49:18] Production.INFO: ProcessCDR(1,14726307,1,1,2) [2025-03-20 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726307', 'tblTempUsageDetail_20' ) start [2025-03-20 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726307', 'tblTempUsageDetail_20' ) end [2025-03-20 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:49:21] Production.INFO: ==23297== Releasing lock... [2025-03-20 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:49:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:50:07 [end_date_ymd] => 2025-03-20 23:50:07 [RateCDR] => 1 ) [2025-03-20 23:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:50:07' and `end` < '2025-03-20 23:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:50:19] Production.INFO: count ==952 [2025-03-20 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-20 20:50:07 - End Time 2025-03-20 23:50:07 [2025-03-20 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726313', 'tblTempUsageDetail_20' ) start [2025-03-20 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726313', 'tblTempUsageDetail_20' ) end [2025-03-20 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726313', 'tblTempVendorCDR_20' ) start [2025-03-20 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726313', 'tblTempVendorCDR_20' ) end [2025-03-20 23:50:19] Production.INFO: ProcessCDR(1,14726313,1,1,2) [2025-03-20 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726313', 'tblTempUsageDetail_20' ) start [2025-03-20 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726313', 'tblTempUsageDetail_20' ) end [2025-03-20 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:50:23] Production.INFO: ==23388== Releasing lock... [2025-03-20 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:50:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-20 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:51:05 [end_date_ymd] => 2025-03-20 23:51:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:51:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:51:18] Production.INFO: count ==931 [2025-03-20 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:51:05 - End Time 2025-03-20 23:51:05 [2025-03-20 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726318', 'tblTempUsageDetail_20' ) start [2025-03-20 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726318', 'tblTempUsageDetail_20' ) end [2025-03-20 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726318', 'tblTempVendorCDR_20' ) start [2025-03-20 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726318', 'tblTempVendorCDR_20' ) end [2025-03-20 23:51:18] Production.INFO: ProcessCDR(1,14726318,1,1,2) [2025-03-20 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726318', 'tblTempUsageDetail_20' ) start [2025-03-20 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726318', 'tblTempUsageDetail_20' ) end [2025-03-20 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:51:22] Production.INFO: ==23481== Releasing lock... [2025-03-20 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:51:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:52:06 [end_date_ymd] => 2025-03-20 23:52:06 [RateCDR] => 1 ) [2025-03-20 23:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:52:06' and `end` < '2025-03-20 23:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:52:18] Production.INFO: count ==933 [2025-03-20 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:52:06 - End Time 2025-03-20 23:52:06 [2025-03-20 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726323', 'tblTempUsageDetail_20' ) start [2025-03-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726323', 'tblTempUsageDetail_20' ) end [2025-03-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726323', 'tblTempVendorCDR_20' ) start [2025-03-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726323', 'tblTempVendorCDR_20' ) end [2025-03-20 23:52:18] Production.INFO: ProcessCDR(1,14726323,1,1,2) [2025-03-20 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726323', 'tblTempUsageDetail_20' ) start [2025-03-20 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726323', 'tblTempUsageDetail_20' ) end [2025-03-20 23:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:52:23] Production.INFO: ==23574== Releasing lock... [2025-03-20 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:52:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:53:05 [end_date_ymd] => 2025-03-20 23:53:05 [RateCDR] => 1 ) [2025-03-20 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:53:05' and `end` < '2025-03-20 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:53:17] Production.INFO: count ==936 [2025-03-20 23:53:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:53:05 - End Time 2025-03-20 23:53:05 [2025-03-20 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726328', 'tblTempUsageDetail_20' ) start [2025-03-20 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726328', 'tblTempUsageDetail_20' ) end [2025-03-20 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726328', 'tblTempVendorCDR_20' ) start [2025-03-20 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726328', 'tblTempVendorCDR_20' ) end [2025-03-20 23:53:17] Production.INFO: ProcessCDR(1,14726328,1,1,2) [2025-03-20 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726328', 'tblTempUsageDetail_20' ) start [2025-03-20 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726328', 'tblTempUsageDetail_20' ) end [2025-03-20 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:53:21] Production.INFO: ==23700== Releasing lock... [2025-03-20 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:53:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:54:05 [end_date_ymd] => 2025-03-20 23:54:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:54:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:54:18] Production.INFO: count ==933 [2025-03-20 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:54:05 - End Time 2025-03-20 23:54:05 [2025-03-20 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726333', 'tblTempUsageDetail_20' ) start [2025-03-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726333', 'tblTempUsageDetail_20' ) end [2025-03-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726333', 'tblTempVendorCDR_20' ) start [2025-03-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726333', 'tblTempVendorCDR_20' ) end [2025-03-20 23:54:18] Production.INFO: ProcessCDR(1,14726333,1,1,2) [2025-03-20 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726333', 'tblTempUsageDetail_20' ) start [2025-03-20 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726333', 'tblTempUsageDetail_20' ) end [2025-03-20 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:54:21] Production.INFO: ==23793== Releasing lock... [2025-03-20 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:54:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:55:05 [end_date_ymd] => 2025-03-20 23:55:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:55:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:55:17] Production.INFO: count ==932 [2025-03-20 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:55:05 - End Time 2025-03-20 23:55:05 [2025-03-20 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726338', 'tblTempUsageDetail_20' ) start [2025-03-20 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726338', 'tblTempUsageDetail_20' ) end [2025-03-20 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726338', 'tblTempVendorCDR_20' ) start [2025-03-20 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726338', 'tblTempVendorCDR_20' ) end [2025-03-20 23:55:17] Production.INFO: ProcessCDR(1,14726338,1,1,2) [2025-03-20 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726338', 'tblTempUsageDetail_20' ) start [2025-03-20 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726338', 'tblTempUsageDetail_20' ) end [2025-03-20 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:55:21] Production.INFO: ==23882== Releasing lock... [2025-03-20 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:55:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:56:05 [end_date_ymd] => 2025-03-20 23:56:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:56:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:56:17] Production.INFO: count ==931 [2025-03-20 23:56:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:56:05 - End Time 2025-03-20 23:56:05 [2025-03-20 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726343', 'tblTempUsageDetail_20' ) start [2025-03-20 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726343', 'tblTempUsageDetail_20' ) end [2025-03-20 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726343', 'tblTempVendorCDR_20' ) start [2025-03-20 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726343', 'tblTempVendorCDR_20' ) end [2025-03-20 23:56:18] Production.INFO: ProcessCDR(1,14726343,1,1,2) [2025-03-20 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726343', 'tblTempUsageDetail_20' ) start [2025-03-20 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726343', 'tblTempUsageDetail_20' ) end [2025-03-20 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:56:21] Production.INFO: ==23968== Releasing lock... [2025-03-20 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:56:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:57:05 [end_date_ymd] => 2025-03-20 23:57:05 [RateCDR] => 1 ) [2025-03-20 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 20:57:05' and `end` < '2025-03-20 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-20 23:57:17] Production.INFO: count ==926 [2025-03-20 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:57:05 - End Time 2025-03-20 23:57:05 [2025-03-20 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726348', 'tblTempUsageDetail_20' ) start [2025-03-20 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726348', 'tblTempUsageDetail_20' ) end [2025-03-20 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726348', 'tblTempVendorCDR_20' ) start [2025-03-20 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726348', 'tblTempVendorCDR_20' ) end [2025-03-20 23:57:17] Production.INFO: ProcessCDR(1,14726348,1,1,2) [2025-03-20 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726348', 'tblTempUsageDetail_20' ) start [2025-03-20 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726348', 'tblTempUsageDetail_20' ) end [2025-03-20 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:57:21] Production.INFO: ==24046== Releasing lock... [2025-03-20 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:57:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-20 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:58:05 [end_date_ymd] => 2025-03-20 23:58:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:58:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:58:18] Production.INFO: count ==931 [2025-03-20 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-20 20:58:05 - End Time 2025-03-20 23:58:05 [2025-03-20 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726353', 'tblTempUsageDetail_20' ) start [2025-03-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726353', 'tblTempUsageDetail_20' ) end [2025-03-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726353', 'tblTempVendorCDR_20' ) start [2025-03-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726353', 'tblTempVendorCDR_20' ) end [2025-03-20 23:58:18] Production.INFO: ProcessCDR(1,14726353,1,1,2) [2025-03-20 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726353', 'tblTempUsageDetail_20' ) start [2025-03-20 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726353', 'tblTempUsageDetail_20' ) end [2025-03-20 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:58:23] Production.INFO: ==24126== Releasing lock... [2025-03-20 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:58:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-20 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 20:59:05 [end_date_ymd] => 2025-03-20 23:59:05 [RateCDR] => 1 ) [2025-03-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` >= '2025-03-20 20:59:05' and `end` < '2025-03-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 ,'') [2025-03-20 23:59:17] Production.INFO: count ==927 [2025-03-20 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-20 20:59:05 - End Time 2025-03-20 23:59:05 [2025-03-20 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726358', 'tblTempUsageDetail_20' ) start [2025-03-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726358', 'tblTempUsageDetail_20' ) end [2025-03-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726358', 'tblTempVendorCDR_20' ) start [2025-03-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726358', 'tblTempVendorCDR_20' ) end [2025-03-20 23:59:17] Production.INFO: ProcessCDR(1,14726358,1,1,2) [2025-03-20 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-20 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-20 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726358', 'tblTempUsageDetail_20' ) start [2025-03-20 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726358', 'tblTempUsageDetail_20' ) end [2025-03-20 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-20 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-20 23:59:20] Production.INFO: ==24216== Releasing lock... [2025-03-20 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-20 23:59:20] Production.INFO: 35 MB #Memory Used#